DeliveryRule Class
A rule that specifies a set of actions and conditions.
Constructor
DeliveryRule()
Variables
| Name | Description |
|---|---|
|
name
|
Name of the rule. |
|
order
|
The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,.........}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. Required. |
|
conditions
|
list[<xref:"DeliveryRuleCondition">]
A list of conditions that must be matched for the actions to be executed. |
|
actions
|
list[<xref:"DeliveryRuleAction">]
A list of actions that are executed when all the conditions of a rule are satisfied. Required. |
Attributes
actions
A list of actions that are executed when all the conditions of a rule are satisfied. Required.
actions: list[Union[azure.mgmt.cdn.types.DeliveryRuleCacheExpirationAction, azure.mgmt.cdn.types.DeliveryRuleCacheKeyQueryStringAction, azure.mgmt.cdn.types.DeliveryRuleRequestHeaderAction, azure.mgmt.cdn.types.DeliveryRuleResponseHeaderAction, azure.mgmt.cdn.types.OriginGroupOverrideAction, azure.mgmt.cdn.types.DeliveryRuleRouteConfigurationOverrideAction, azure.mgmt.cdn.types.UrlRedirectAction, azure.mgmt.cdn.types.UrlRewriteAction, azure.mgmt.cdn.types.UrlSigningAction]]
conditions
A list of conditions that must be matched for the actions to be executed.
conditions: list[Union[azure.mgmt.cdn.types.DeliveryRuleClientPortCondition, azure.mgmt.cdn.types.DeliveryRuleCookiesCondition, azure.mgmt.cdn.types.DeliveryRuleHostNameCondition, azure.mgmt.cdn.types.DeliveryRuleHttpVersionCondition, azure.mgmt.cdn.types.DeliveryRuleIsDeviceCondition, azure.mgmt.cdn.types.DeliveryRulePostArgsCondition, azure.mgmt.cdn.types.DeliveryRuleQueryStringCondition, azure.mgmt.cdn.types.DeliveryRuleRemoteAddressCondition, azure.mgmt.cdn.types.DeliveryRuleRequestBodyCondition, azure.mgmt.cdn.types.DeliveryRuleRequestHeaderCondition, azure.mgmt.cdn.types.DeliveryRuleRequestMethodCondition, azure.mgmt.cdn.types.DeliveryRuleRequestSchemeCondition, azure.mgmt.cdn.types.DeliveryRuleRequestUriCondition, azure.mgmt.cdn.types.DeliveryRuleServerPortCondition, azure.mgmt.cdn.types.DeliveryRuleSocketAddrCondition, azure.mgmt.cdn.types.DeliveryRuleSslProtocolCondition, azure.mgmt.cdn.types.DeliveryRuleUrlFileExtensionCondition, azure.mgmt.cdn.types.DeliveryRuleUrlFileNameCondition, azure.mgmt.cdn.types.DeliveryRuleUrlPathCondition]]
name
Name of the rule.
name: str
order
The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,.........}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. Required.
order: int