ArmFrontDoorModelFactory.FrontDoorWebApplicationFirewallPolicySettings Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
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.
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.
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 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.