Create a rate limit
Creates a new rate limit for a zone.string
required
The zone identifier
number
required
The threshold that triggers the rate limit mitigation. Configure this value along with the
period property to establish a threshold per period.number
required
The time in seconds to count matching traffic. If the count exceeds the threshold within this period, Cloudflare performs the configured action.
object
required
The action to perform when the threshold is exceeded.
string
required
The action to perform:
simulate, ban, challenge, js_challenge, or managed_challengenumber
The time in seconds during which Cloudflare will perform the mitigation action. Must be greater than or equal to the period.
object
required
Determines which traffic the rate limit counts toward the threshold.
object
object
Response matching criteria.
boolean
When true, only uncached traffic served from origin servers counts toward rate limiting.
string
An informative summary of the rate limit rule.
boolean
When true, the rate limit is currently disabled.
array
string
The unique identifier of the rate limit
object
The configured action
number
The request threshold
number
The time period in seconds
object
The traffic matching criteria
boolean
Whether the rate limit is disabled
List rate limits
Fetches all rate limits for a zone.string
required
The zone identifier
number
Page number of paginated results
number
Number of items per page
Get a rate limit
Fetches details of a single rate limit.string
required
The rate limit identifier
string
required
The zone identifier
Update a rate limit
Updates an existing rate limit.string
required
The rate limit identifier
string
required
The zone identifier
Delete a rate limit
Deletes an existing rate limit.string
required
The rate limit identifier
string
required
The zone identifier