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.
Autorización
Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.
Parámetros de ruta
Cuerpo de la petición
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 ≤ 1000Por defecto1001 ≤ value ≤ 100Por defecto1falsetruePath of the HTTP check. Only used when health_check_type is http; with http and no path the check goes to /.
length ≤ 255Por defecto"/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"Valores"tcp""http"Method of an http check
"GET"Valores"GET""HEAD"Statuses or classes an http check takes as up, separated by spaces (up to 8): 200, 301, 2xx
length ≤ 64Por defecto"2xx 3xx"Seconds between the checks of an http check
5 ≤ value ≤ 300Por defecto10Results in a row that make an http check change the state
1 ≤ value ≤ 10Por defecto3trueCustom 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 ≤ 32Por defecto"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 ≤ 36Respuestas
Successful Response
application/json