WafPolicySettings Class
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.
Defines contents of a web application firewall global configuration.
public class WafPolicySettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Cdn.Models.WafPolicySettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Cdn.Models.WafPolicySettings>
type WafPolicySettings = class
interface IJsonModel<WafPolicySettings>
interface IPersistableModel<WafPolicySettings>
Public Class WafPolicySettings
Implements IJsonModel(Of WafPolicySettings), IPersistableModel(Of WafPolicySettings)
- Inheritance
-
WafPolicySettings
- Implements
Constructors
| Name | Description |
|---|---|
| WafPolicySettings() |
Initializes a new instance of WafPolicySettings. |
Properties
| Name | Description |
|---|---|
| DefaultCustomBlockResponseBody |
If the action type is block, customer can override the response body. The body must be specified in base64 encoding. To assign a byte[] to this property use FromBytes(Byte[]). The byte[] will be serialized to a Base64 encoded string. Examples:
|
| DefaultCustomBlockResponseStatusCode |
If the action type is block, this field defines the default customer overridable http response status code. |
| DefaultRedirectUri |
If action type is redirect, this field represents the default redirect URL for the client. |
| EnabledState |
describes if the policy is in enabled state or disabled state. |
| Mode |
Describes if it is in detection mode or prevention mode at policy level. |
Methods
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<WafPolicySettings>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<WafPolicySettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<WafPolicySettings>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<WafPolicySettings>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<WafPolicySettings>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |