Rate Limits

rate_limits

Methods

Create A Rate Limit -> Envelope<>
Deprecated
post/zones/{zone_id}/rate_limits

Deprecated

Rate limiting API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#rate-limiting-api-previous-version for full details.

Creates a new rate limit for a zone. Refer to the object definition for a list of required attributes.

Security

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Accepted Permissions (at least one required)

Firewall Services Write

path Parameters
zone_id: string
(maxLength: 32)

Defines an identifier.

Response fields
errors: Array<>
messages: Array<>
result:
success: true

Defines whether the API call was successful.

Request example
200Example
Delete A Rate Limit -> Envelope<{ id, action, bypass, 5 more... }>
Deprecated
delete/zones/{zone_id}/rate_limits/{rate_limit_id}

Deprecated

Rate limiting API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#rate-limiting-api-previous-version for full details.

Deletes an existing rate limit.

Update A Rate Limit -> Envelope<>
Deprecated
put/zones/{zone_id}/rate_limits/{rate_limit_id}

Deprecated

Rate limiting API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#rate-limiting-api-previous-version for full details.

Updates an existing rate limit.

Get A Rate Limit -> Envelope<>
Deprecated
get/zones/{zone_id}/rate_limits/{rate_limit_id}

Deprecated

Rate limiting API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#rate-limiting-api-previous-version for full details.

Fetches the details of a rate limit.

List Rate Limits -> V4PagePaginationArray<>
Deprecated
get/zones/{zone_id}/rate_limits

Deprecated

Rate limiting API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#rate-limiting-api-previous-version for full details.

Fetches the rate limits for a zone.

Domain types

Action = "block" | "challenge" | "js_challenge" | 4 more...

The action to apply to a matched request. The log action is only available on an Enterprise plan.

RateLimit = { id, action, bypass, 5 more... }