Add a Domain to a Service
A 3-step recipe with Fastly. We can help you get access.
Recipe · 3 steps
Add a Domain to a Service
with Fastly
Add a domain to a live service via a cloned version and activate it.
- Clone the supplied version into a new editable draft version.
- Associate the new domain with the cloned draft version.
- Activate the cloned version so the new domain goes live.
What you'll need to have ready
- apiToken: The Fastly API token used to authenticate requests.
- serviceId: The alphanumeric identifier of the service.
- versionId: The version number to clone.
- domainName: The public domain name to add to the service.
- domainComment: An optional comment describing the domain.
For your developer
Arazzo workflow fastly:add-domain-to-service, 3 operations: cloneServiceVersion → createDomain → activateServiceVersion. Specs on APIs.io.