Partager via


PolicySettings Constructors

Definition

Overloads

PolicySettings()

Initializes a new instance of the PolicySettings class.

PolicySettings(String, String, String, Nullable<Int32>, String, String, Nullable<Int32>, PolicySettingsLogScrubbing)

Initializes a new instance of the PolicySettings class.

PolicySettings()

Initializes a new instance of the PolicySettings class.

public PolicySettings ();
Public Sub New ()

Applies to

PolicySettings(String, String, String, Nullable<Int32>, String, String, Nullable<Int32>, PolicySettingsLogScrubbing)

Initializes a new instance of the PolicySettings class.

public PolicySettings (string enabledState = default, string mode = default, string redirectUrl = default, int? customBlockResponseStatusCode = default, string customBlockResponseBody = default, string requestBodyCheck = default, int? javascriptChallengeExpirationInMinutes = default, Microsoft.Azure.Management.FrontDoor.Models.PolicySettingsLogScrubbing logScrubbing = default);
new Microsoft.Azure.Management.FrontDoor.Models.PolicySettings : string * string * string * Nullable<int> * string * string * Nullable<int> * Microsoft.Azure.Management.FrontDoor.Models.PolicySettingsLogScrubbing -> Microsoft.Azure.Management.FrontDoor.Models.PolicySettings
Public Sub New (Optional enabledState As String = Nothing, Optional mode As String = Nothing, Optional redirectUrl As String = Nothing, Optional customBlockResponseStatusCode As Nullable(Of Integer) = Nothing, Optional customBlockResponseBody As String = Nothing, Optional requestBodyCheck As String = Nothing, Optional javascriptChallengeExpirationInMinutes As Nullable(Of Integer) = Nothing, Optional logScrubbing As PolicySettingsLogScrubbing = Nothing)

Parameters

enabledState
String

Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'Disabled', 'Enabled'

mode
String

Describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'

redirectUrl
String

If action type is redirect, this field represents redirect URL for the client.

customBlockResponseStatusCode
Nullable<Int32>

If the action type is block, customer can override the response status code.

customBlockResponseBody
String

If the action type is block, customer can override the response body. The body must be specified in base64 encoding.

requestBodyCheck
String

Describes if policy managed rules will inspect the request body content. Possible values include: 'Disabled', 'Enabled'

javascriptChallengeExpirationInMinutes
Nullable<Int32>

Defines the JavaScript challenge cookie validity lifetime in minutes. This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30.

logScrubbing
PolicySettingsLogScrubbing

Defines rules that scrub sensitive fields in the Web Application Firewall logs.

Applies to