RateLimitRule Class
Defines a rate limiting rule that can be included in a waf policy.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.cdn.models._models_py3.CustomRuleRateLimitRule
Constructor
RateLimitRule(*, name: str, priority: int, match_conditions: List[azure.mgmt.cdn.models._models_py3.MatchCondition], action: Union[str, azure.mgmt.cdn.models._cdn_management_client_enums.ActionType], rate_limit_threshold: int, rate_limit_duration_in_minutes: int, enabled_state: Optional[Union[str, azure.mgmt.cdn.models._cdn_management_client_enums.CustomRuleEnabledState]] = None, **kwargs)
Variables
- name
- str
Required. Defines the name of the custom rule.
- enabled_state
- str or CustomRuleEnabledState
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: "Disabled", "Enabled".
- priority
- int
Required. Defines in what order this rule be evaluated in the overall list of custom rules.
- match_conditions
- list[MatchCondition]
Required. List of match conditions.
- action
- str or ActionType
Required. Describes what action to be applied when rule matches. Possible values include: "Allow", "Block", "Log", "Redirect".
- rate_limit_threshold
- int
Required. Defines rate limit threshold.
- rate_limit_duration_in_minutes
- int
Required. Defines rate limit duration. Default is 1 minute.
Feedback
Submit and view feedback for