DeliveryRule Class

A rule that specifies a set of actions and conditions.

All required parameters must be populated in order to send to Azure.

Inheritance
DeliveryRule

Constructor

DeliveryRule(*, order: int, actions: List[azure.mgmt.cdn.models._models_py3.DeliveryRuleAction], name: Optional[str] = None, conditions: Optional[List[azure.mgmt.cdn.models._models_py3.DeliveryRuleCondition]] = None, **kwargs)

Variables

name
str

Name of the rule.

order
int

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

conditions
list[DeliveryRuleCondition]

A list of conditions that must be matched for the actions to be executed.

actions
list[DeliveryRuleAction]

Required. A list of actions that are executed when all the conditions of a rule are satisfied.