CubePathDOCS
CDN

Set automatic attack detection

put/cdn/zones/{zone_uuid}/under-attack/auto-mode

Choose what the automatic attack detection does for the zone: off does nothing, notify only emails you when an attack is detected, on also turns on the under attack mode by itself. The platform may keep a lower mode than the one you choose while it tunes the detector.

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

Set what the automatic attack detection does for a CDN zone.

application/jsonObligatorio
mode*string

off does nothing, notify only emails you when an attack is detected, on also turns on the under attack mode by itself.

Valores"off""notify""on"

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