Partager via


RedirectConfiguration Class

Definition

Describes Redirect Route.

[Newtonsoft.Json.JsonObject("#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration")]
public class RedirectConfiguration : Microsoft.Azure.Management.FrontDoor.Models.RouteConfiguration
[<Newtonsoft.Json.JsonObject("#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration")>]
type RedirectConfiguration = class
    inherit RouteConfiguration
Public Class RedirectConfiguration
Inherits RouteConfiguration
Inheritance
RedirectConfiguration
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

RedirectConfiguration()

Initializes a new instance of the RedirectConfiguration class.

RedirectConfiguration(String, String, String, String, String, String)

Initializes a new instance of the RedirectConfiguration class.

Properties

CustomFragment

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

CustomHost

Gets or sets host to redirect. Leave empty to use the incoming host as the destination host.

CustomPath

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

CustomQueryString

Gets or sets 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

Gets or sets the protocol of the destination to where the traffic is redirected Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'

RedirectType

Gets or sets the redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect'

Applies to