Skip to content
Start here

Rate Limits

List rate limits
Deprecated
client.RateLimits.List(ctx, params) error
GET/zones/{zone_id}/rate_limits
Get a rate limit
Deprecated
client.RateLimits.Get(ctx, rateLimitID, query) error
GET/zones/{zone_id}/rate_limits/{rate_limit_id}
Create a rate limit
Deprecated
client.RateLimits.New(ctx, params) error
POST/zones/{zone_id}/rate_limits
Update a rate limit
Deprecated
client.RateLimits.Edit(ctx, rateLimitID, params) error
PUT/zones/{zone_id}/rate_limits/{rate_limit_id}
Delete a rate limit
Deprecated
client.RateLimits.Delete(ctx, rateLimitID, body) error
DELETE/zones/{zone_id}/rate_limits/{rate_limit_id}
ModelsExpand Collapse
type Action string

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

One of the following:
const ActionBlock Action = "block"
const ActionChallenge Action = "challenge"
const ActionJSChallenge Action = "js_challenge"
const ActionManagedChallenge Action = "managed_challenge"
const ActionAllow Action = "allow"
const ActionLog Action = "log"
const ActionBypass Action = "bypass"