/api/v1/edge/records
scope: edge:read
List CDN-eligible records and their proxy state
پاسخها
- 200 — Edge records
نمونه cURL
curl -X GET -H "Authorization: Bearer ic_pat_…" \
https://iranclaud.ir/api/v1/edge/records
4 endpoint
/api/v1/edge/records
scope: edge:read
List CDN-eligible records and their proxy state
curl -X GET -H "Authorization: Bearer ic_pat_…" \
https://iranclaud.ir/api/v1/edge/records
/api/v1/edge/usage
scope: edge:read
Per-domain CDN usage over the last 30 days
curl -X GET -H "Authorization: Bearer ic_pat_…" \
https://iranclaud.ir/api/v1/edge/usage
/api/v1/edge/records/{rid}
scope: edge:toggle
Enable/disable CDN (+auto-SSL) on a record
rid — DNS record ID{
"enabled": true
}
curl -X POST -H "Authorization: Bearer ic_pat_…" \
-H "Content-Type: application/json" \
-d '{"enabled":true}' \
https://iranclaud.ir/api/v1/edge/records/{rid}
/api/v1/edge/records/{rid}/settings
scope: edge:toggle
Update a record's edge settings (WAF, caches, headers, IP lists, rate limits)
rid — DNS record ID{
"hsts": true,
"cors": true,
"security_headers": true,
"blocked_ips": [
"203.0.113.10"
]
}
curl -X PATCH -H "Authorization: Bearer ic_pat_…" \
-H "Content-Type: application/json" \
-d '{"hsts":true,"cors":true,"security_headers":true,"blocked_ips":["203.0.113.10"]}' \
https://iranclaud.ir/api/v1/edge/records/{rid}/settings