IPolicySettings Interface

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.PolicySettingsTypeConverter))]
public interface IPolicySettings : Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.PolicySettingsTypeConverter))>]
type IPolicySettings = interface
    interface IJsonSerializable
Public Interface IPolicySettings
Implements IJsonSerializable
Derived
Attributes
Implements

Properties

Name Description
DefaultCustomBlockResponseBody

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

DefaultCustomBlockResponseStatusCode

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

DefaultRedirectUrl

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

Name Description
ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to