Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

UrlRedirectAction Class

Definition

Namespace:
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models
Assembly:
Az.Cdn.private.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Defines the url redirect action for the delivery rule.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRedirectActionTypeConverter))]
public class UrlRedirectAction : Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUrlRedirectAction, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.UrlRedirectActionTypeConverter))>]
type UrlRedirectAction = class
 interface IUrlRedirectAction
 interface IJsonSerializable
 interface IDeliveryRuleAction
 interface IValidates
Public Class UrlRedirectAction
Implements IUrlRedirectAction, IValidates
Inheritance
UrlRedirectAction
Attributes
Implements

Constructors

Name Description
UrlRedirectAction()

Creates an new UrlRedirectAction instance.

Properties

Name Description
Name

The name of the action for the delivery rule.

ParameterCustomFragment

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

ParameterCustomHostname

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

ParameterCustomPath

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

ParameterCustomQueryString
ParameterDestinationProtocol

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

ParameterRedirectType

The redirect type the rule will use when redirecting traffic.

ParameterTypeName

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of UrlRedirectAction.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of UrlRedirectAction.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IUrlRedirectAction.

FromJsonString(String)

Creates a new instance of UrlRedirectAction, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of UrlRedirectAction into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to