Share via


RedirectConfiguration Class

Definition

Describes Redirect Route.

public class RedirectConfiguration : Azure.ResourceManager.FrontDoor.Models.RouteConfiguration, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.FrontDoor.Models.RedirectConfiguration>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.FrontDoor.Models.RedirectConfiguration>
public class RedirectConfiguration : Azure.ResourceManager.FrontDoor.Models.RouteConfiguration
type RedirectConfiguration = class
    inherit RouteConfiguration
    interface IJsonModel<RedirectConfiguration>
    interface IPersistableModel<RedirectConfiguration>
type RedirectConfiguration = class
    inherit RouteConfiguration
Public Class RedirectConfiguration
Inherits RouteConfiguration
Implements IJsonModel(Of RedirectConfiguration), IPersistableModel(Of RedirectConfiguration)
Public Class RedirectConfiguration
Inherits RouteConfiguration
Inheritance
RedirectConfiguration
Implements

Constructors

RedirectConfiguration()

Initializes a new instance of RedirectConfiguration.

Properties

CustomFragment

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

CustomHost

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. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.

RedirectProtocol

The protocol of the destination to where the traffic is redirected.

RedirectType

The redirect type the rule will use when redirecting traffic.

Explicit Interface Implementations

IJsonModel<RedirectConfiguration>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RedirectConfiguration>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<RouteConfiguration>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from RouteConfiguration)
IJsonModel<RouteConfiguration>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from RouteConfiguration)
IPersistableModel<RedirectConfiguration>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RedirectConfiguration>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RedirectConfiguration>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<RouteConfiguration>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from RouteConfiguration)
IPersistableModel<RouteConfiguration>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from RouteConfiguration)
IPersistableModel<RouteConfiguration>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from RouteConfiguration)

Applies to