UrlRedirectAction Class

Definition

Defines the url redirect action for the delivery rule.

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

Constructors

UrlRedirectAction()

Creates an new UrlRedirectAction instance.

Properties

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

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.Api20230501.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