PolicySettings Class

Defines contents of a web application firewall global configuration.

Constructor

PolicySettings()

Variables

Name Description
enabled_state
Union[str, <xref:"PolicyEnabledState">]

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

mode
Union[str, <xref:"PolicyMode">]

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
Union[int, <xref:"PolicySettingsDefaultCustomBlockResponseStatusCode">]

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

defaultCustomBlockResponseBody

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

defaultCustomBlockResponseBody: str

defaultCustomBlockResponseStatusCode

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.

defaultCustomBlockResponseStatusCode: int | PolicySettingsDefaultCustomBlockResponseStatusCode

defaultRedirectUrl

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

defaultRedirectUrl: str

enabledState

"Disabled" and "Enabled".

enabledState: str | PolicyEnabledState

mode

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

mode: str | PolicyMode