UrlRedirectActionParameters Class
Defines the parameters for the url redirect action.
Constructor
UrlRedirectActionParameters(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
redirect_type
|
str or
RedirectType
The redirect type the rule will use when redirecting traffic. Required. Known values are: "Moved", "Found", "TemporaryRedirect", and "PermanentRedirect". |
|
destination_protocol
|
Protocol to use for the redirect. The default value is MatchRequest. Known values are: "MatchRequest", "Http", and "Https". |
|
custom_path
|
The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. |
|
custom_hostname
|
Host to redirect. Leave empty to use the incoming host as the destination host. |
|
custom_query_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. |
|
custom_fragment
|
Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. |
|
type_name
|
str or
<xref:azure.mgmt.cdn.models.DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS>
Required. DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS. |
Attributes
custom_fragment
Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.
custom_fragment: str | None
custom_hostname
Host to redirect. Leave empty to use the incoming host as the destination host.
custom_hostname: str | None
custom_path
The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.
custom_path: str | None
custom_query_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.
custom_query_string: str | None
destination_protocol
Protocol to use for the redirect. The default value is MatchRequest. Known values are: "MatchRequest", "Http", and "Https".
destination_protocol: str | _models.DestinationProtocol | None
redirect_type
The redirect type the rule will use when redirecting traffic. Required. Known values are: "Moved", "Found", "TemporaryRedirect", and "PermanentRedirect".
redirect_type: str | _models.RedirectType
type_name
Required. DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS.
type_name: DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS: 'DeliveryRuleUrlRedirectActionParameters'>]