CDN
Create Edge Rule
post
/cdn/zones/{zone_uuid}/rulesCreate a new edge rule for a CDN zone (cache, redirects, headers).
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
Rango
1 ≤ length ≤ 100rule_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
Rango
1 ≤ value ≤ 10000Por defecto100match_conditions?record<string, any> | null
Match conditions (path, headers, etc.)
action_config*record<string, any>
Action configuration
enabled?boolean
Por defecto
trueexpires_at?string | null
Formato
date-timeRespuestas
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