Aracılığıyla paylaş


PolicySettings Class

Definition

Defines top-level WebApplicationFirewallPolicy configuration settings.

public class PolicySettings
type PolicySettings = class
Public Class PolicySettings
Inheritance
PolicySettings

Constructors

PolicySettings()

Initializes a new instance of the PolicySettings class.

PolicySettings(String, String, String, Nullable<Int32>, String, String, Nullable<Int32>, PolicySettingsLogScrubbing)

Initializes a new instance of the PolicySettings class.

Properties

CustomBlockResponseBody

Gets or sets if the action type is block, customer can override the response body. The body must be specified in base64 encoding.

CustomBlockResponseStatusCode

Gets or sets if the action type is block, customer can override the response status code.

EnabledState

Gets or sets describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'Disabled', 'Enabled'

JavascriptChallengeExpirationInMinutes

Gets or sets 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.

LogScrubbing

Gets or sets defines rules that scrub sensitive fields in the Web Application Firewall logs.

Mode

Gets or sets describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'

RedirectUrl

Gets or sets if action type is redirect, this field represents redirect URL for the client.

RequestBodyCheck

Gets or sets describes if policy managed rules will inspect the request body content. Possible values include: 'Disabled', 'Enabled'

Methods

Validate()

Validate the object.

Applies to