PolicyPolicySettings

data class PolicyPolicySettings(val enabled: Boolean? = null, val fileUploadEnforcement: Boolean? = null, val fileUploadLimitInMb: Int? = null, val jsChallengeCookieExpirationInMinutes: Int? = null, val logScrubbing: PolicyPolicySettingsLogScrubbing? = null, val maxRequestBodySizeInKb: Int? = null, val mode: String? = null, val requestBodyCheck: Boolean? = null, val requestBodyEnforcement: Boolean? = null, val requestBodyInspectLimitInKb: Int? = null)

Constructors

Link copied to clipboard
constructor(enabled: Boolean? = null, fileUploadEnforcement: Boolean? = null, fileUploadLimitInMb: Int? = null, jsChallengeCookieExpirationInMinutes: Int? = null, logScrubbing: PolicyPolicySettingsLogScrubbing? = null, maxRequestBodySizeInKb: Int? = null, mode: String? = null, requestBodyCheck: Boolean? = null, requestBodyEnforcement: Boolean? = null, requestBodyInspectLimitInKb: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val enabled: Boolean? = null

Describes if the policy is in enabled state or disabled state. Defaults to true.

Link copied to clipboard

Whether the firewall should block a request with upload size greater then file_upload_limit_in_mb.

Link copied to clipboard

The File Upload Limit in MB. Accepted values are in the range 1 to 4000. Defaults to 100.

Link copied to clipboard

Specifies the JavaScript challenge cookie validity lifetime in minutes. The user is challenged after the lifetime expires. Accepted values are in the range 5 to 1440. Defaults to 30.

Link copied to clipboard

One log_scrubbing block as defined below.

Link copied to clipboard

The Maximum Request Body Size in KB. Accepted values are in the range 8 to 2000. Defaults to 128.

Link copied to clipboard
val mode: String? = null

Describes if it is in detection mode or prevention mode at the policy level. Valid values are Detection and Prevention. Defaults to Prevention.

Link copied to clipboard

Is Request Body Inspection enabled? Defaults to true.

Link copied to clipboard

Whether the firewall should block a request with body size greater then max_request_body_size_in_kb. Defaults to true.

Link copied to clipboard

Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to 128.