Udostępnij za pośrednictwem


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(WebApplicationFirewallEnabledState, WebApplicationFirewallMode, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the PolicySettings class.

Properties

FileUploadLimitInMb

Gets or sets maximum file upload size in Mb for WAF.

MaxRequestBodySizeInKb

Gets or sets maximum request body size in Kb for WAF.

Mode

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

RequestBodyCheck

Gets or sets whether to allow WAF to check request Body.

State

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

Methods

Validate()

Validate the object.

Applies to