Fastly · Arazzo Workflow

Fastly Add a Domain to a Service

Version 1.0.0

Clone the active version, add a new domain to the clone, then activate it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CDNEdge CloudEdge ComputeWebAssemblySecurityArtificial IntelligenceObservabilityAsyncAPIStreamingWebhookLoggingArazzoWorkflows

Provider

fastly

Workflows

add-domain-to-service
Add a domain to a live service via a cloned version and activate it.
Clones the supplied version, adds the supplied domain name to the clone, and activates the cloned version so the new domain serves traffic.
3 steps inputs: apiToken, domainComment, domainName, serviceId, versionId outputs: active, addedDomain, clonedVersion
1
cloneVersion
Clone the supplied version into a new editable draft version.
2
addDomain
Associate the new domain with the cloned draft version.
3
activateVersion
Activate the cloned version so the new domain goes live.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Fastly Add a Domain to a Service
  summary: Clone the active version, add a new domain to the clone, then activate it.
  description: >-
    Adds a new public domain to an already-running Fastly service without
    disturbing the live configuration. The workflow clones the current version
    into a draft, attaches the domain to the cloned version, and activates the
    clone. Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: domainApi
  url: ../openapi/fastly-domain-api-openapi.yml
  type: openapi
- name: serviceVersionApi
  url: ../openapi/fastly-service-version-api-openapi.yml
  type: openapi
workflows:
- workflowId: add-domain-to-service
  summary: Add a domain to a live service via a cloned version and activate it.
  description: >-
    Clones the supplied version, adds the supplied domain name to the clone,
    and activates the cloned version so the new domain serves traffic.
  inputs:
    type: object
    required:
    - apiToken
    - serviceId
    - versionId
    - domainName
    properties:
      apiToken:
        type: string
        description: The Fastly API token used to authenticate requests.
      serviceId:
        type: string
        description: The alphanumeric identifier of the service.
      versionId:
        type: integer
        description: The version number to clone.
      domainName:
        type: string
        description: The public domain name to add to the service.
      domainComment:
        type: string
        description: An optional comment describing the domain.
  steps:
  - stepId: cloneVersion
    description: Clone the supplied version into a new editable draft version.
    operationId: cloneServiceVersion
    parameters:
    - name: Fastly-Key
      in: header
      value: $inputs.apiToken
    - name: service_id
      in: path
      value: $inputs.serviceId
    - name: version_id
      in: path
      value: $inputs.versionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      clonedVersion: $response.body#/number
  - stepId: addDomain
    description: Associate the new domain with the cloned draft version.
    operationId: createDomain
    parameters:
    - name: Fastly-Key
      in: header
      value: $inputs.apiToken
    - name: service_id
      in: path
      value: $inputs.serviceId
    - name: version_id
      in: path
      value: $steps.cloneVersion.outputs.clonedVersion
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        name: $inputs.domainName
        comment: $inputs.domainComment
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      addedDomain: $response.body#/name
  - stepId: activateVersion
    description: Activate the cloned version so the new domain goes live.
    operationId: activateServiceVersion
    parameters:
    - name: Fastly-Key
      in: header
      value: $inputs.apiToken
    - name: service_id
      in: path
      value: $inputs.serviceId
    - name: version_id
      in: path
      value: $steps.cloneVersion.outputs.clonedVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      active: $response.body#/active
  outputs:
    clonedVersion: $steps.cloneVersion.outputs.clonedVersion
    addedDomain: $steps.addDomain.outputs.addedDomain
    active: $steps.activateVersion.outputs.active

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/fastly-add-domain-to-service-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.