Delen via


PolicySettings Class

Definition

Defines contents of a web application firewall global configuration

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)

Initializes a new instance of the PolicySettings class.

Properties

DefaultCustomBlockResponseBody

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

DefaultCustomBlockResponseStatusCode

Gets or sets if the action type is block, this field defines the default customer overridable http response status code.

DefaultRedirectUrl

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

EnabledState

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

Mode

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

Methods

Validate()

Validate the object.

Applies to