PolicySettings Class

Defines contents of a web application firewall global configuration.

Constructor

PolicySettings(*args: Any, **kwargs: Any)

Variables

Name Description
enabled_state

describes if the policy is in enabled state or disabled state. Known values are: "Disabled" and "Enabled".

mode

Describes if it is in detection mode or prevention mode at policy level. Known values are: "Prevention" and "Detection".

default_redirect_url
str

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
str

If the action type is block, customer can override the response body. The body must be specified in base64 encoding.

Attributes

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.

default_custom_block_response_body: str | None

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_status_code: int | _models.PolicySettingsDefaultCustomBlockResponseStatusCode | None

default_redirect_url

If action type is redirect, this field represents the default redirect URL for the client.

default_redirect_url: str | None

enabled_state

"Disabled" and "Enabled".

enabled_state: str | _models.PolicyEnabledState | None

mode

Describes if it is in detection mode or prevention mode at policy level. Known values are: "Prevention" and "Detection".

mode: str | _models.PolicyMode | None