Create CDN Zone
post
/cdn/zonesCreate a new CDN zone.
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.
Cuerpo de la petición
Create a new CDN zone
application/jsonObligatorio
name*string
Zone name, used as the subdomain {name}.cubecdn.io: 3 to 32 lowercase letters, numbers and hyphens, starting and ending with a letter or a number
Rango
1 ≤ length ≤ 63custom_domain?string | null
Custom domain (optional)
Rango
1 ≤ length ≤ 253plan_name*string
CDN plan name
project_id?integer | null
Project ID (uses default if not specified)
Respuestas
Successful Response
application/json
uuid*string
name*string
domain*string
custom_domain?string | null
custom_domain_verified?boolean
Por defecto
falsecustom_domain_verified_at?string | null
custom_domain_verification?CDNCustomDomainVerification | null
How to prove you control the custom domain: either DNS record works.
Add the TXT record txt_name with the value txt_value, or point a CNAME
record from the custom domain to cname_target (the zone's own domain).
A domain at the apex or behind a proxy such as Cloudflare needs the TXT.
Propiedades (3)
txt_name*string
txt_value?string | null
cname_target*string
status*CDNZoneStatus
Valores
"deploying""active""suspended""deleting""deleted"plan_name*string
detail*string