Create Origin
/cdn/zones/{zone_uuid}/originsCreate 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
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
Request body
Create a new CDN origin
1 ≤ length ≤ 100Full origin URL (e.g., https://s3.example.com/bucket-name/). If provided, extracts address, port, protocol, host_header, and base_path automatically.
length ≤ 500IP address or hostname
1 ≤ length ≤ 2551 ≤ value ≤ 65535"http""https"1 ≤ value ≤ 1000Default1001 ≤ value ≤ 100Default1falsetruePath of the HTTP check. Only used when health_check_type is http; with http and no path the check goes to /.
length ≤ 255Default"/health"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.
"tcp"Value in"tcp""http"Method of an http check
"GET"Value in"GET""HEAD"Statuses or classes an http check takes as up, separated by spaces (up to 8): 200, 301, 2xx
length ≤ 64Default"2xx 3xx"Seconds between the checks of an http check
5 ≤ value ≤ 300Default10Results in a row that make an http check change the state
1 ≤ value ≤ 10Default3trueCustom Host header to send to origin
length ≤ 255Base path prefix for origin requests (e.g., /bucket-name)
length ≤ 255trueSign requests with AWS SigV4 for private S3-compatible buckets
falseS3 access key ID
8 ≤ length ≤ 128S3 secret access key (write-only)
8 ≤ length ≤ 128S3 region (e.g. us-east-1, eu-central-1)
length ≤ 64AWS service name (almost always 's3')
length ≤ 32Default"s3"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.
length ≤ 36Responses
Successful Response
application/json