CubePathDOCS
CDN

List CDN Zones

get/cdn/zones

List all CDN zones in the organization.

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.

Respuestas

Successful Response

application/json

array<CDNZoneListItem>

uuid*string
name*string
domain*string
custom_domain?string | null
custom_domain_ssl_status?string | null
custom_domain_ssl_type*string
custom_domain_verified?boolean
Por defectofalse
custom_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
certificate_uuid?string | null
status*CDNZoneStatus
Valores"deploying""active""suspended""deleting""deleted"
plan_name?string | null
price_per_hour*number
plan_price_per_gb?record<string, number> | null
price_per_gb_override?record<string, number> | null
monthly_charges*number
project_id*integer
origins_count*integer
rules_count*integer
token_auth_enabled*boolean
token_auth_ip_binding*boolean
token_auth_secret?string | null
cors_enabled*boolean
cors_allow_origins?string | null
cache_tag_header?string | null
compression_enabled?boolean
Por defectofalse
managed_waf?CDNManagedWAF

The managed WAF of a zone: detects and logs ("log") or also answers 403 above the threshold ("block").

Por defecto{"mode":"off","level":1,"threshold":5,"exclude_rule_ids":[],"exclude_categories":[]}
Propiedades (5)
mode?string
Por defecto"off"Valores"off""log""block"
level?integer
Por defecto1
threshold?integer
Por defecto5
exclude_rule_ids?array<integer>
exclude_categories?array<string>
under_attack?CDNUnderAttack

The "under attack" mode of a zone. While active, visitors are challenged until until (null: no end).

Por defecto{"available":false,"active":false,"auto_attack_mode":"off"}
Propiedades (7)
available?boolean
Por defectofalse
active?boolean
Por defectofalse
until?string | null
source?string | null
Valores"manual""auto""staff"
level?integer | null
suppress_auto_until?string | null
auto_attack_mode?string
Por defecto"off"Valores"off""notify""on"
challenge?CDNChallenge

The challenge visitors solve while the zone is under attack. ttl_minutes and difficulty are what the zone stored: null means the platform default shown in defaults.

Por defecto{"defaults":{"difficulty_level_2":16,"difficulty_level_3":18,"ttl_minutes":30},"limits":{"difficulty":[12,20],"ttl_minutes":[10,1440]}}
Propiedades (4)
ttl_minutes?integer | null
difficulty?integer | null
defaults?CDNChallengeDefaults

What the zone uses for a setting it has no value for.

Por defecto{"ttl_minutes":30,"difficulty_level_2":16,"difficulty_level_3":18}
Propiedades (3)
ttl_minutes?integer
Por defecto30
difficulty_level_2?integer
Por defecto16
difficulty_level_3?integer
Por defecto18
limits?CDNChallengeLimits

Accepted range of each setting, [min, max].

Por defecto{"ttl_minutes":[10,1440],"difficulty":[12,20]}
Propiedades (2)
ttl_minutes?array<integer>
Por defecto[10,1440]
difficulty?array<integer>
Por defecto[12,20]
https?CDNHttps

HTTPS settings of a zone.

Por defecto{"always_use_https":true,"min_tls_version":"1.2","hsts":{"enabled":false,"include_subdomains":false,"max_age":15552000,"preload":false,"retiring":false}}
Propiedades (3)
always_use_https?boolean
Por defectotrue
min_tls_version?string
Por defecto"1.2"Valores"1.2""1.3"
hsts?CDNHsts

HSTS of a zone.

Por defecto{"enabled":false,"max_age":15552000,"include_subdomains":false,"preload":false,"retiring":false}
Propiedades (5)
enabled?boolean
Por defectofalse
max_age?integer
Por defecto15552000
include_subdomains?boolean
Por defectofalse
preload?boolean
Por defectofalse
retiring?boolean
Por defectofalse
websockets_enabled?boolean
Por defectotrue
image_transform_enabled?boolean
Por defectofalse
created_at?string | null
updated_at?string | null