MuleSoft · Arazzo Workflow

MuleSoft Promote Application Between Environments

Version 1.0.0

Read an application's config in one environment and deploy a copy into another.

1 workflow 1 source API 1 provider
View Spec View on GitHub API GatewayAPI ManagementEnterpriseIntegrationArazzoWorkflows

Provider

mulesoft

Workflows

promote-app-between-environments
Copy an application's runtime configuration into a different environment.
Fetches a source application to read its runtime version and region, then deploys a matching application into the target environment.
2 steps inputs: bearerToken, orgId, sourceAppDomain, sourceEnvironmentId, targetAppDomain, targetEnvironmentId outputs: promotedDomain, promotedStatus, sourceMuleVersion
1
getSourceApplication
Read the source application to capture its runtime version and region for the promotion.
2
deployToTarget
Deploy a new application into the target environment using the source application's runtime version and region.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: MuleSoft Promote Application Between Environments
  summary: Read an application's config in one environment and deploy a copy into another.
  description: >-
    Promotes a CloudHub application from a source environment to a target
    environment such as Sandbox to Production. The workflow reads the source
    application to capture its runtime version and region, then deploys a new
    application with the same configuration into the target environment under a
    new domain. 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: applicationsApi
  url: ../openapi/mulesoft-applications-api-openapi.yml
  type: openapi
workflows:
- workflowId: promote-app-between-environments
  summary: Copy an application's runtime configuration into a different environment.
  description: >-
    Fetches a source application to read its runtime version and region, then
    deploys a matching application into the target environment.
  inputs:
    type: object
    required:
    - bearerToken
    - orgId
    - sourceEnvironmentId
    - targetEnvironmentId
    - sourceAppDomain
    - targetAppDomain
    properties:
      bearerToken:
        type: string
        description: Anypoint Platform bearer access token.
      orgId:
        type: string
        description: The organization id that owns both environments.
      sourceEnvironmentId:
        type: string
        description: The environment id the source application runs in.
      targetEnvironmentId:
        type: string
        description: The environment id to promote the application into.
      sourceAppDomain:
        type: string
        description: The CloudHub domain of the source application.
      targetAppDomain:
        type: string
        description: The CloudHub domain for the promoted application.
  steps:
  - stepId: getSourceApplication
    description: >-
      Read the source application to capture its runtime version and region for
      the promotion.
    operationId: getApplication
    parameters:
    - name: domain
      in: path
      value: $inputs.sourceAppDomain
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: X-ANYPNT-ORG-ID
      in: header
      value: $inputs.orgId
    - name: X-ANYPNT-ENV-ID
      in: header
      value: $inputs.sourceEnvironmentId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      muleVersion: $response.body#/muleVersion/version
      region: $response.body#/region
  - stepId: deployToTarget
    description: >-
      Deploy a new application into the target environment using the source
      application's runtime version and region.
    operationId: createApplication
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: X-ANYPNT-ORG-ID
      in: header
      value: $inputs.orgId
    - name: X-ANYPNT-ENV-ID
      in: header
      value: $inputs.targetEnvironmentId
    requestBody:
      contentType: application/json
      payload:
        domain: $inputs.targetAppDomain
        muleVersion:
          version: $steps.getSourceApplication.outputs.muleVersion
        region: $steps.getSourceApplication.outputs.region
        workers:
          amount: 1
          type:
            name: Micro
            weight: 0.1
        monitoringAutoRestart: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      promotedDomain: $response.body#/fullDomain
      status: $response.body#/status
  outputs:
    sourceMuleVersion: $steps.getSourceApplication.outputs.muleVersion
    promotedDomain: $steps.deployToTarget.outputs.promotedDomain
    promotedStatus: $steps.deployToTarget.outputs.status

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/mulesoft-promote-app-between-environments-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.