CDN

Create WAF Rule

post/cdn/zones/{zone_uuid}/waf-rules

Create a new WAF rule for a CDN zone (firewall, rate limiting, network limits).

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

Create a new CDN rule

application/jsonObligatorio
name*string
Rango1 ≤ length ≤ 100
rule_type*CDNRuleType
Valores"ssl""cache""cache_bypass""firewall_ip""firewall_country""firewall_ua""rate_limit""js_challenge""redirect""header_request""header_response""limit_download_speed""limit_requests""limit_connections""limit_bandwidth"
priority?integer
Rango1 ≤ value ≤ 10000Por defecto100
match_conditions?record<string, any> | null

Match conditions (path, headers, etc.)

action_config*record<string, any>

Action configuration

enabled?boolean
Por defectotrue
expires_at?string | null
Formatodate-time

Respuestas

Successful Response

application/json

uuid*string
name*string
rule_type*CDNRuleType
Valores"ssl""cache""cache_bypass""firewall_ip""firewall_country""firewall_ua""rate_limit""js_challenge""redirect""header_request""header_response""limit_download_speed""limit_requests""limit_connections""limit_bandwidth"
detail*string