CubePathDOCS
CDN

Get CDN Zone

get/cdn/zones/{zone_uuid}

Get a specific CDN zone with all details.

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

Respuestas

Successful Response

application/json

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?CDNZonePlanSummary | null

The plan a zone runs on, as embedded in the zone detail response.

Propiedades (4)
uuid*string
name*string
price_per_gb*record<string, number>
base_price_per_hour*number
price_per_gb_override?record<string, number> | null
project_id*integer
origins*array<CDNOriginItem>
Propiedades (28)
uuid*string
name*string
address*string
port*integer
protocol*CDNOriginProtocol
Valores"http""https"
weight*integer
priority*integer
is_backup*boolean
health_check_enabled*boolean
health_check_path?string | null
health_check_type?string
Por defecto"tcp"
health_check_method?string
Por defecto"GET"
health_check_expected_status?string
Por defecto"2xx 3xx"
health_check_interval?integer
Por defecto10
health_check_threshold?integer
Por defecto3
health_status*CDNOriginHealthStatus
Valores"healthy""unhealthy""unknown"
health_detail?string | null
health_changed_at?string | null
verify_ssl*boolean
host_header?string | null
base_path?string | null
enabled*boolean
s3_auth_enabled*boolean
s3_access_key?string | null
s3_region?string | null
s3_service?string | null
object_storage_bucket_uuid?string | null
created_at?string | null
rules*array<CDNZoneRuleSummary>
Propiedades (5)
uuid*string
name*string
rule_type*CDNRuleType
Valores"ssl""cache""cache_bypass""firewall_ip""firewall_country""firewall_asn""firewall_ua""rate_limit""js_challenge""redirect""header_request""header_response""limit_download_speed""limit_requests""limit_connections""limit_bandwidth""cache_key""url_rewrite""bypass""block"
priority*integer
enabled*boolean
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