Udostępnij za pośrednictwem


PolicySettings Constructors

Definition

Overloads

PolicySettings()

Initializes a new instance of the PolicySettings class.

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

Initializes a new instance of the PolicySettings class.

PolicySettings()

Initializes a new instance of the PolicySettings class.

public PolicySettings ();
Public Sub New ()

Applies to

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

Initializes a new instance of the PolicySettings class.

public PolicySettings (string enabledState = default, string mode = default, string defaultRedirectUrl = default, int? defaultCustomBlockResponseStatusCode = default, string defaultCustomBlockResponseBody = default);
new Microsoft.Azure.Management.Cdn.Models.PolicySettings : string * string * string * Nullable<int> * string -> Microsoft.Azure.Management.Cdn.Models.PolicySettings
Public Sub New (Optional enabledState As String = Nothing, Optional mode As String = Nothing, Optional defaultRedirectUrl As String = Nothing, Optional defaultCustomBlockResponseStatusCode As Nullable(Of Integer) = Nothing, Optional defaultCustomBlockResponseBody As String = Nothing)

Parameters

enabledState
String

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

mode
String

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

defaultRedirectUrl
String

If action type is redirect, this field represents the default redirect URL for the client.

defaultCustomBlockResponseStatusCode
Nullable<Int32>

If the action type is block, this field defines the default customer overridable http response status code.

defaultCustomBlockResponseBody
String

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

Applies to