ArmNetworkModelFactory.PolicySettings Method

Definition

public static Azure.ResourceManager.Network.Models.PolicySettings PolicySettings(Azure.ResourceManager.Network.Models.WebApplicationFirewallEnabledState? state = default, Azure.ResourceManager.Network.Models.WebApplicationFirewallMode? mode = default, bool? requestBodyCheck = default, int? requestBodyInspectLimitInKB = default, bool? requestBodyEnforcement = default, int? maxRequestBodySizeInKb = default, bool? fileUploadEnforcement = default, int? fileUploadLimitInMb = default, int? customBlockResponseStatusCode = default, string customBlockResponseBody = default, Azure.ResourceManager.Network.Models.PolicySettingsLogScrubbing logScrubbing = default, int? jsChallengeCookieExpirationInMins = default, int? captchaExpirationInMins = default);
static member PolicySettings : Nullable<Azure.ResourceManager.Network.Models.WebApplicationFirewallEnabledState> * Nullable<Azure.ResourceManager.Network.Models.WebApplicationFirewallMode> * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<int> * Nullable<int> * string * Azure.ResourceManager.Network.Models.PolicySettingsLogScrubbing * Nullable<int> * Nullable<int> -> Azure.ResourceManager.Network.Models.PolicySettings
Public Shared Function PolicySettings (Optional state As Nullable(Of WebApplicationFirewallEnabledState) = Nothing, Optional mode As Nullable(Of WebApplicationFirewallMode) = Nothing, Optional requestBodyCheck As Nullable(Of Boolean) = Nothing, Optional requestBodyInspectLimitInKB As Nullable(Of Integer) = Nothing, Optional requestBodyEnforcement As Nullable(Of Boolean) = Nothing, Optional maxRequestBodySizeInKb As Nullable(Of Integer) = Nothing, Optional fileUploadEnforcement As Nullable(Of Boolean) = Nothing, Optional fileUploadLimitInMb As Nullable(Of Integer) = Nothing, Optional customBlockResponseStatusCode As Nullable(Of Integer) = Nothing, Optional customBlockResponseBody As String = Nothing, Optional logScrubbing As PolicySettingsLogScrubbing = Nothing, Optional jsChallengeCookieExpirationInMins As Nullable(Of Integer) = Nothing, Optional captchaExpirationInMins As Nullable(Of Integer) = Nothing) As PolicySettings

Parameters

state
Nullable<WebApplicationFirewallEnabledState>

The state of the policy.

mode
Nullable<WebApplicationFirewallMode>

The mode of the policy.

requestBodyCheck
Nullable<Boolean>

Whether to allow WAF to check request Body.

requestBodyInspectLimitInKB
Nullable<Int32>

Max inspection limit in KB for request body inspection for WAF.

requestBodyEnforcement
Nullable<Boolean>

Whether allow WAF to enforce request body limits.

maxRequestBodySizeInKb
Nullable<Int32>

Maximum request body size in Kb for WAF.

fileUploadEnforcement
Nullable<Boolean>

Whether allow WAF to enforce file upload limits.

fileUploadLimitInMb
Nullable<Int32>

Maximum file upload size in Mb for WAF.

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.

logScrubbing
PolicySettingsLogScrubbing

To scrub sensitive log fields.

jsChallengeCookieExpirationInMins
Nullable<Int32>

Web Application Firewall JavaScript Challenge Cookie Expiration time in minutes.

captchaExpirationInMins
Nullable<Int32>

Web Application Firewall CAPTCHA Cookie Expiration time in minutes.

Returns

A new PolicySettings instance for mocking.

Applies to