PolicySettingsResponse

data class PolicySettingsResponse(val customBlockResponseBody: String? = null, val customBlockResponseStatusCode: Int? = null, val enabledState: String? = null, val javascriptChallengeExpirationInMinutes: Int? = null, val mode: String? = null, val redirectUrl: String? = null, val requestBodyCheck: String? = null, val scrubbingRules: List<WebApplicationFirewallScrubbingRulesResponse>? = null, val state: String? = null)

Defines top-level WebApplicationFirewallPolicy configuration settings.

Constructors

Link copied to clipboard
constructor(customBlockResponseBody: String? = null, customBlockResponseStatusCode: Int? = null, enabledState: String? = null, javascriptChallengeExpirationInMinutes: Int? = null, mode: String? = null, redirectUrl: String? = null, requestBodyCheck: String? = null, scrubbingRules: List<WebApplicationFirewallScrubbingRulesResponse>? = null, state: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val enabledState: String? = null

Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.

Link copied to clipboard

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.

Link copied to clipboard
val mode: String? = null

Describes if it is in detection mode or prevention mode at policy level.

Link copied to clipboard
val redirectUrl: String? = null

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

Link copied to clipboard

Describes if policy managed rules will inspect the request body content.

Link copied to clipboard

List of log scrubbing rules applied to the Web Application Firewall logs.

Link copied to clipboard
val state: String? = null

State of the log scrubbing config. Default value is Enabled.