Apigee · Arazzo Workflow

Apigee Tear Down an Environment

Version 1.0.0

List deployments, undeploy a proxy revision from the environment, then delete the environment.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Advanced API SecurityAgentic AIAnalyticsAPI GatewayAPI GovernanceAPI HubAPI ManagementDeveloper PortalEnterpriseGenerative AIHybridIntegrationMicroservicesMCPMonetizationArazzoWorkflows

Provider

apigee

Workflows

teardown-environment
Clear an environment of a deployed revision and delete it.
Lists deployments, undeploys the supplied proxy revision from the environment, and deletes the environment.
3 steps inputs: apiId, environmentId, organizationId, revisionId outputs: deployments, operationName, undeployedRevision
1
listDeployments
List organization deployments to inspect what is currently running before tearing the environment down.
2
undeployRevision
Undeploy the proxy revision from the environment so the environment is free of deployments.
3
deleteEnvironment
Delete the now-empty environment, which returns a long-running operation while teardown completes.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Apigee Tear Down an Environment
  summary: List deployments, undeploy a proxy revision from the environment, then delete the environment.
  description: >-
    The environment decommission flow. The workflow lists organization
    deployments to inspect what is currently running, undeploys a specified
    proxy revision from the environment to clear it, and then deletes the
    environment. Environments must be free of deployed proxies before they can
    be deleted, so the undeploy step is a prerequisite. 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
  x-realizes-capability-ids:
  - BC-4210.40
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4210.40
      capability_name: Deployment Orchestration
      spec: apigee-deployments-api-openapi.yml
      confidence: 0.7
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: deploymentsApi
  url: ../openapi/apigee-deployments-api-openapi.yml
  type: openapi
- name: environmentsApi
  url: ../openapi/apigee-environments-api-openapi.yml
  type: openapi
workflows:
- workflowId: teardown-environment
  summary: Clear an environment of a deployed revision and delete it.
  description: >-
    Lists deployments, undeploys the supplied proxy revision from the
    environment, and deletes the environment.
  inputs:
    type: object
    required:
    - organizationId
    - environmentId
    - apiId
    - revisionId
    properties:
      organizationId:
        type: string
        description: The Apigee organization owning the environment.
      environmentId:
        type: string
        description: The environment to tear down.
      apiId:
        type: string
        description: The proxy whose revision must be undeployed first.
      revisionId:
        type: string
        description: The deployed revision to undeploy.
  steps:
  - stepId: listDeployments
    description: >-
      List organization deployments to inspect what is currently running before
      tearing the environment down.
    operationId: listOrganizationDeployments
    parameters:
    - name: organizationId
      in: path
      value: $inputs.organizationId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      deployments: $response.body#/deployments
  - stepId: undeployRevision
    description: >-
      Undeploy the proxy revision from the environment so the environment is
      free of deployments.
    operationId: undeployApiProxyRevision
    parameters:
    - name: organizationId
      in: path
      value: $inputs.organizationId
    - name: environmentId
      in: path
      value: $inputs.environmentId
    - name: apiId
      in: path
      value: $inputs.apiId
    - name: revisionId
      in: path
      value: $inputs.revisionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      undeployedRevision: $response.body#/revision
  - stepId: deleteEnvironment
    description: >-
      Delete the now-empty environment, which returns a long-running operation
      while teardown completes.
    operationId: deleteEnvironment
    parameters:
    - name: organizationId
      in: path
      value: $inputs.organizationId
    - name: environmentId
      in: path
      value: $inputs.environmentId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      operationName: $response.body#/name
  outputs:
    deployments: $steps.listDeployments.outputs.deployments
    undeployedRevision: $steps.undeployRevision.outputs.undeployedRevision
    operationName: $steps.deleteEnvironment.outputs.operationName

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/apigee-environment-teardown-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.