Fastly · Arazzo Workflow

Fastly Find Service and Clone Active Version

Version 1.0.0

Search a service by name, read its versions, then clone the active one into a draft.

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

Provider

fastly

Workflows

find-service-and-clone-active-version
Resolve a service by name and clone its active version into a draft.
Searches for the service by name to get its id and active version, lists its versions, then clones the active version to produce an editable draft.
3 steps inputs: apiToken, serviceName outputs: activeVersion, clonedVersion, serviceId
1
searchService
Find the service by name and read its id and active version.
2
listVersions
List the service versions to confirm the active version exists.
3
cloneActive
Clone the active version into a new editable draft version.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Fastly Find Service and Clone Active Version
  summary: Search a service by name, read its versions, then clone the active one into a draft.
  description: >-
    A convenient starting point for editing an existing service by name rather
    than id. The workflow searches for the service by name to resolve its id and
    active version, lists the service versions, and clones the active version
    into a fresh draft ready for further configuration. 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: serviceApi
  url: ../openapi/fastly-service-api-openapi.yml
  type: openapi
- name: serviceVersionApi
  url: ../openapi/fastly-service-version-api-openapi.yml
  type: openapi
workflows:
- workflowId: find-service-and-clone-active-version
  summary: Resolve a service by name and clone its active version into a draft.
  description: >-
    Searches for the service by name to get its id and active version, lists its
    versions, then clones the active version to produce an editable draft.
  inputs:
    type: object
    required:
    - apiToken
    - serviceName
    properties:
      apiToken:
        type: string
        description: The Fastly API token used to authenticate requests.
      serviceName:
        type: string
        description: The name of the service to find.
  steps:
  - stepId: searchService
    description: Find the service by name and read its id and active version.
    operationId: searchService
    parameters:
    - name: Fastly-Key
      in: header
      value: $inputs.apiToken
    - name: name
      in: query
      value: $inputs.serviceName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      serviceId: $response.body#/id
      activeVersion: $response.body#/active_version
  - stepId: listVersions
    description: List the service versions to confirm the active version exists.
    operationId: listServiceVersions
    parameters:
    - name: Fastly-Key
      in: header
      value: $inputs.apiToken
    - name: service_id
      in: path
      value: $steps.searchService.outputs.serviceId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      versions: $response.body
  - stepId: cloneActive
    description: Clone the active version into a new editable draft version.
    operationId: cloneServiceVersion
    parameters:
    - name: Fastly-Key
      in: header
      value: $inputs.apiToken
    - name: service_id
      in: path
      value: $steps.searchService.outputs.serviceId
    - name: version_id
      in: path
      value: $steps.searchService.outputs.activeVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      clonedVersion: $response.body#/number
  outputs:
    serviceId: $steps.searchService.outputs.serviceId
    activeVersion: $steps.searchService.outputs.activeVersion
    clonedVersion: $steps.cloneActive.outputs.clonedVersion

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-find-service-and-clone-active-version-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.