CubePathDOCS
CDN

Turn on under attack mode

post/cdn/zones/{zone_uuid}/under-attack

Make every visitor of the zone prove they are a browser before they get the site. Use it while a flood of requests is hitting the zone. It stays on until you turn it off, or for duration_minutes (5 minutes to 24 hours) if you set it. APIs, webhooks and bots that cannot solve a challenge get a challenge page: let them through with WAF rules of type bypass. Calling it again changes the end time.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

zone_uuid*string

Cuerpo de la petición

Turn on the "under attack" mode of a CDN zone: visitors prove they are a browser before they get the site.

application/jsonObligatorio
duration_minutes?integer | null

How long the mode stays on, from 5 minutes to 24 hours. Leave it out to keep it on until you turn it off.

Rango5 ≤ value ≤ 1440
level?integer

2 challenges the whole zone. 3 also applies a hard per-visitor rate limit, for visitors that ignore the challenge.

Por defecto2Valores23

Respuestas

Successful Response

application/json

available?boolean
Por defectofalse
active?boolean
Por defectofalse
until?string | null
source?string | null
Valores"manual""auto""staff"
level?integer | null
suppress_auto_until?string | null
auto_attack_mode?string
Por defecto"off"Valores"off""notify""on"
detail*string