RateLimitAction

data class RateLimitAction(val mode: String, val response: RateLimitActionResponse? = null, val timeout: Int? = null)

Constructors

Link copied to clipboard
constructor(mode: String, response: RateLimitActionResponse? = null, timeout: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The type of action to perform. Available values: simulate, ban, challenge, js_challenge, managed_challenge.

Link copied to clipboard

Custom content-type and body to return, this overrides the custom error for the zone. This field is not required. Omission will result in default HTML error page.

Link copied to clipboard
val timeout: Int? = null

The time in seconds as an integer to perform the mitigation action. This field is required if the mode is either simulate or ban. Must be the same or greater than the period.