ArmCdnModelFactory.UriRedirectActionProperties Method
Definition
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 parameters for the url redirect action.
public static Azure.ResourceManager.Cdn.Models.UriRedirectActionProperties UriRedirectActionProperties(Azure.ResourceManager.Cdn.Models.RedirectType redirectType = default, Azure.ResourceManager.Cdn.Models.DestinationProtocol? destinationProtocol = default, string customPath = default, string customHostname = default, string customQueryString = default, string customFragment = default);
static member UriRedirectActionProperties : Azure.ResourceManager.Cdn.Models.RedirectType * Nullable<Azure.ResourceManager.Cdn.Models.DestinationProtocol> * string * string * string * string -> Azure.ResourceManager.Cdn.Models.UriRedirectActionProperties
Public Shared Function UriRedirectActionProperties (Optional redirectType As RedirectType = Nothing, Optional destinationProtocol As Nullable(Of DestinationProtocol) = Nothing, Optional customPath As String = Nothing, Optional customHostname As String = Nothing, Optional customQueryString As String = Nothing, Optional customFragment As String = Nothing) As UriRedirectActionProperties
Parameters
- redirectType
- RedirectType
The redirect type the rule will use when redirecting traffic.
- destinationProtocol
- Nullable<DestinationProtocol>
Protocol to use for the redirect. The default value is MatchRequest.
- customPath
- String
The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.
- customHostname
- String
Host to redirect. Leave empty to use the incoming host as the destination host.
- customQueryString
- String
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.
- customFragment
- String
Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.
Returns
A new UriRedirectActionProperties instance for mocking.