CubePathDOCS
CDN

Create Origin

post/cdn/zones/{zone_uuid}/origins

Create a new origin for a CDN zone. You can provide a full origin_url (e.g., https://s3.example.com/bucket/) which will be automatically parsed. To serve one of your Object Storage buckets, pass object_storage_bucket_uuid instead of the connection fields: the origin is configured from the bucket and starts serving as soon as its access is ready.

Authorization

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Path parameters

zone_uuid*string

Request body

Create a new CDN origin

application/jsonRequired
name*string
Range1 ≤ length ≤ 100
origin_url?string | null

Full origin URL (e.g., https://s3.example.com/bucket-name/). If provided, extracts address, port, protocol, host_header, and base_path automatically.

Rangelength ≤ 500
address?string | null

IP address or hostname

Range1 ≤ length ≤ 255
port?integer | null
Range1 ≤ value ≤ 65535
protocol?CDNOriginProtocol | null
Value in"http""https"
weight?integer
Range1 ≤ value ≤ 1000Default100
priority?integer
Range1 ≤ value ≤ 100Default1
is_backup?boolean
Defaultfalse
health_check_enabled?boolean
Defaulttrue
health_check_path?string

Path of the HTTP check. Only used when health_check_type is http; with http and no path the check goes to /.

Rangelength ≤ 255Default"/health"
health_check_type?string

tcp opens a connection to the origin (the default, what every origin has). http sends a request to health_check_path and takes the origin down when the answer is not one of health_check_expected_status: if it is the only origin of the zone, the zone answers 503.

Default"tcp"Value in"tcp""http"
health_check_method?string

Method of an http check

Default"GET"Value in"GET""HEAD"
health_check_expected_status?string

Statuses or classes an http check takes as up, separated by spaces (up to 8): 200, 301, 2xx

Rangelength ≤ 64Default"2xx 3xx"
health_check_interval?integer

Seconds between the checks of an http check

Range5 ≤ value ≤ 300Default10
health_check_threshold?integer

Results in a row that make an http check change the state

Range1 ≤ value ≤ 10Default3
verify_ssl?boolean
Defaulttrue
host_header?string | null

Custom Host header to send to origin

Rangelength ≤ 255
base_path?string | null

Base path prefix for origin requests (e.g., /bucket-name)

Rangelength ≤ 255
enabled?boolean
Defaulttrue
s3_auth_enabled?boolean

Sign requests with AWS SigV4 for private S3-compatible buckets

Defaultfalse
s3_access_key?string | null

S3 access key ID

Range8 ≤ length ≤ 128
s3_secret_key?string | null

S3 secret access key (write-only)

Range8 ≤ length ≤ 128
s3_region?string | null

S3 region (e.g. us-east-1, eu-central-1)

Rangelength ≤ 64
s3_service?string

AWS service name (almost always 's3')

Rangelength ≤ 32Default"s3"
object_storage_bucket_uuid?string | null

Serve one of your Object Storage buckets. Leave out every connection field (origin_url, address, port, protocol, host_header, base_path, verify_ssl, health checks, enabled and the s3_* fields): they are set from the bucket, and the origin starts serving once its access is ready.

Rangelength ≤ 36

Responses

Successful Response

application/json

uuid*string
name*string
address*string
s3_auth_enabled*boolean
object_storage_bucket_uuid?string | null
detail*string