Condividi tramite


UriRedirectActionProperties Class

Definition

Defines the parameters for the url redirect action.

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

Constructors

UriRedirectActionProperties(UriRedirectActionType, RedirectType)

Initializes a new instance of UriRedirectActionProperties.

Properties

ActionType

Gets or sets the action type.

CustomFragment

Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.

CustomHostname

Host to redirect. Leave empty to use the incoming host as the destination host.

CustomPath

The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.

CustomQueryString

The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in <key>=<value> format. ? and & will be added automatically so do not include them.

DestinationProtocol

Protocol to use for the redirect. The default value is MatchRequest.

RedirectType

The redirect type the rule will use when redirecting traffic.

Explicit Interface Implementations

IJsonModel<UriRedirectActionProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<UriRedirectActionProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<UriRedirectActionProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<UriRedirectActionProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<UriRedirectActionProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to