ArmNetworkModelFactory.PolicySettings 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.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
The state of the policy.
The mode of the policy.
Max inspection limit in KB for request body inspection for WAF.
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.
Web Application Firewall JavaScript Challenge Cookie Expiration time in minutes.
Web Application Firewall CAPTCHA Cookie Expiration time in minutes.
Returns
A new PolicySettings instance for mocking.