PolicySettings Class
Defines contents of a web application firewall global configuration.
- Inheritance
-
azure.mgmt.cdn._serialization.ModelPolicySettings
Constructor
PolicySettings(*, enabled_state: str | _models.PolicyEnabledState | None = None, mode: str | _models.PolicyMode | None = None, default_redirect_url: str | None = None, default_custom_block_response_status_code: int | _models.PolicySettingsDefaultCustomBlockResponseStatusCode | None = None, default_custom_block_response_body: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
enabled_state
|
describes if the policy is in enabled state or disabled state. Known values are: "Disabled" and "Enabled". |
mode
|
str or
PolicyMode
Describes if it is in detection mode or prevention mode at policy level. Known values are: "Prevention" and "Detection". |
default_redirect_url
|
If action type is redirect, this field represents the default redirect URL for the client. |
default_custom_block_response_status_code
|
If the action type is block, this field defines the default customer overridable http response status code. Known values are: 200, 403, 405, 406, and 429. |
default_custom_block_response_body
|
If the action type is block, customer can override the response body. The body must be specified in base64 encoding. |
Variables
Name | Description |
---|---|
enabled_state
|
describes if the policy is in enabled state or disabled state. Known values are: "Disabled" and "Enabled". |
mode
|
str or
PolicyMode
Describes if it is in detection mode or prevention mode at policy level. Known values are: "Prevention" and "Detection". |
default_redirect_url
|
If action type is redirect, this field represents the default redirect URL for the client. |
default_custom_block_response_status_code
|
If the action type is block, this field defines the default customer overridable http response status code. Known values are: 200, 403, 405, 406, and 429. |
default_custom_block_response_body
|
If the action type is block, customer can override the response body. The body must be specified in base64 encoding. |
Azure SDK for Python