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, ormatch.
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.
201 with an ID:
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.