ArmFrontDoorModelFactory.FrontDoorWebApplicationFirewallPolicySettings Method

Definition

public static Azure.ResourceManager.FrontDoor.Models.FrontDoorWebApplicationFirewallPolicySettings FrontDoorWebApplicationFirewallPolicySettings(Azure.ResourceManager.FrontDoor.Models.PolicyEnabledState? enabledState = default, Azure.ResourceManager.FrontDoor.Models.FrontDoorWebApplicationFirewallPolicyMode? mode = default, Uri redirectUri = default, int? customBlockResponseStatusCode = default, string customBlockResponseBody = default, Azure.ResourceManager.FrontDoor.Models.PolicyRequestBodyCheck? requestBodyCheck = default, int? javascriptChallengeExpirationInMinutes = default, int? captchaExpirationInMinutes = default, Azure.ResourceManager.FrontDoor.Models.WebApplicationFirewallScrubbingState? state = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.FrontDoor.Models.WebApplicationFirewallScrubbingRules> scrubbingRules = default);
static member FrontDoorWebApplicationFirewallPolicySettings : Nullable<Azure.ResourceManager.FrontDoor.Models.PolicyEnabledState> * Nullable<Azure.ResourceManager.FrontDoor.Models.FrontDoorWebApplicationFirewallPolicyMode> * Uri * Nullable<int> * string * Nullable<Azure.ResourceManager.FrontDoor.Models.PolicyRequestBodyCheck> * Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.FrontDoor.Models.WebApplicationFirewallScrubbingState> * seq<Azure.ResourceManager.FrontDoor.Models.WebApplicationFirewallScrubbingRules> -> Azure.ResourceManager.FrontDoor.Models.FrontDoorWebApplicationFirewallPolicySettings
Public Shared Function FrontDoorWebApplicationFirewallPolicySettings (Optional enabledState As Nullable(Of PolicyEnabledState) = Nothing, Optional mode As Nullable(Of FrontDoorWebApplicationFirewallPolicyMode) = Nothing, Optional redirectUri As Uri = Nothing, Optional customBlockResponseStatusCode As Nullable(Of Integer) = Nothing, Optional customBlockResponseBody As String = Nothing, Optional requestBodyCheck As Nullable(Of PolicyRequestBodyCheck) = Nothing, Optional javascriptChallengeExpirationInMinutes As Nullable(Of Integer) = Nothing, Optional captchaExpirationInMinutes As Nullable(Of Integer) = Nothing, Optional state As Nullable(Of WebApplicationFirewallScrubbingState) = Nothing, Optional scrubbingRules As IEnumerable(Of WebApplicationFirewallScrubbingRules) = Nothing) As FrontDoorWebApplicationFirewallPolicySettings

Parameters

enabledState
Nullable<PolicyEnabledState>

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

mode
Nullable<FrontDoorWebApplicationFirewallPolicyMode>

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

redirectUri
Uri

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
Nullable<PolicyRequestBodyCheck>

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

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.

captchaExpirationInMinutes
Nullable<Int32>

Defines the Captcha 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.

state
Nullable<WebApplicationFirewallScrubbingState>

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

scrubbingRules
IEnumerable<WebApplicationFirewallScrubbingRules>

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

Returns

A new FrontDoorWebApplicationFirewallPolicySettings instance for mocking.

Applies to