Create CDN Zone
post
/cdn/zonesCreate a new CDN zone.
Authorization
Authorization
Authorization*string
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Request body
Create a new CDN zone
application/jsonRequired
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
Range
1 ≤ length ≤ 63custom_domain?string | null
Custom domain (optional)
Range
1 ≤ length ≤ 253plan_name*string
CDN plan name
project_id?integer | null
Project ID (uses default if not specified)
Responses
Successful Response
application/json
uuid*string
name*string
domain*string
custom_domain?string | null
custom_domain_verified?boolean
Default
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.
Properties (3)
txt_name*string
txt_value?string | null
cname_target*string
status*CDNZoneStatus
Value in
"deploying""active""suspended""deleting""deleted"plan_name*string
detail*string