PolicySettings interface
Defines top-level WebApplicationFirewallPolicy configuration settings.
Properties
custom |
If the action type is block, customer can override the response body. The body must be specified in base64 encoding. |
custom |
If the action type is block, customer can override the response status code. |
enabled |
Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. |
javascript |
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. |
mode | Describes if it is in detection mode or prevention mode at policy level. |
redirect |
If action type is redirect, this field represents redirect URL for the client. |
request |
Describes if policy managed rules will inspect the request body content. |
scrubbing |
List of log scrubbing rules applied to the Web Application Firewall logs. |
state | State of the log scrubbing config. Default value is Enabled. |
Property Details
customBlockResponseBody
If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
customBlockResponseBody?: string
Property Value
string
customBlockResponseStatusCode
If the action type is block, customer can override the response status code.
customBlockResponseStatusCode?: number
Property Value
number
enabledState
Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
enabledState?: string
Property Value
string
javascriptChallengeExpirationInMinutes
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.
javascriptChallengeExpirationInMinutes?: number
Property Value
number
mode
Describes if it is in detection mode or prevention mode at policy level.
mode?: string
Property Value
string
redirectUrl
If action type is redirect, this field represents redirect URL for the client.
redirectUrl?: string
Property Value
string
requestBodyCheck
Describes if policy managed rules will inspect the request body content.
requestBodyCheck?: string
Property Value
string
scrubbingRules
List of log scrubbing rules applied to the Web Application Firewall logs.
scrubbingRules?: WebApplicationFirewallScrubbingRules[]
Property Value
state
State of the log scrubbing config. Default value is Enabled.
state?: string
Property Value
string