Skip to main content
A distribution connects an origin group to an Aptranet edge hostname. Its configuration determines delivery behavior.

Create a distribution

Create an origin group first and keep its returned ID. The origin group must contain an origin. Provide:
  • A name between 4 and 64 characters.
  • An origin group ID from the same project.
  • An origin connection protocol: http, https, or match.
match uses the visitor’s protocol for the origin connection, so the origin must support both HTTP and HTTPS. Prefer https for a consistent encrypted origin path.
Creation returns 201 with an ID:
The ID above is illustrative. Save the ID from your own response, then list distributions to obtain the assigned hostname and current status:
Find the item with the matching id. Copy its hostname; do not derive it from the numeric ID. A list can return 204 when it is empty.

Lifecycle states

Do not assume a create response means every edge location is ready. Poll the distribution list and test the assigned hostname.

Configure delivery

Open the distribution in the console to configure each area, or use the corresponding /cloud-cdn/distributions/configurations/ API endpoint with the distribution query parameter. The create request does not configure all these areas. Verify a representative request after changing them.

Delete a distribution

Deletion removes the delivery resource. Remove production DNS records first, account for their TTL, and retain the origin until traffic has drained.
Distribution deletion is destructive. Cache contents, configuration, and the assigned delivery resource cannot be recovered through the API.