Share via


PolicySettings Class

Definition

Defines contents of a web application firewall global configuration.

public class PolicySettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.Models.PolicySettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.Models.PolicySettings>
public class PolicySettings
type PolicySettings = class
    interface IJsonModel<PolicySettings>
    interface IPersistableModel<PolicySettings>
type PolicySettings = class
Public Class PolicySettings
Implements IJsonModel(Of PolicySettings), IPersistableModel(Of PolicySettings)
Public Class PolicySettings
Inheritance
PolicySettings
Implements

Constructors

PolicySettings()

Initializes a new instance of PolicySettings.

Properties

CustomBlockResponseBody

If the action type is block, customer can override the response body. The body must be specified in base64 encoding.

CustomBlockResponseStatusCode

If the action type is block, customer can override the response status code.

FileUploadEnforcement

Whether allow WAF to enforce file upload limits.

FileUploadLimitInMb

Maximum file upload size in Mb for WAF.

JsChallengeCookieExpirationInMins

Web Application Firewall JavaScript Challenge Cookie Expiration time in minutes.

LogScrubbing

To scrub sensitive log fields.

MaxRequestBodySizeInKb

Maximum request body size in Kb for WAF.

Mode

The mode of the policy.

RequestBodyCheck

Whether to allow WAF to check request Body.

RequestBodyEnforcement

Whether allow WAF to enforce request body limits.

RequestBodyInspectLimitInKB

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

State

The state of the policy.

Explicit Interface Implementations

IJsonModel<PolicySettings>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<PolicySettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PolicySettings>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PolicySettings>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<PolicySettings>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to