MuleSoft · Arazzo Workflow

MuleSoft Provision Environment and Deploy Application

Version 1.0.0

Create a new Anypoint environment and deploy a CloudHub application into it.

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

Provider

mulesoft

Workflows

provision-environment-and-deploy-app
Create an environment and deploy a CloudHub application into it.
Creates a new environment within an organization, then deploys a CloudHub application targeting that environment by passing the organization and environment ids as headers.
2 steps inputs: appDomain, bearerToken, environmentName, environmentType, muleVersion, orgId, region outputs: deployedDomain, deploymentStatus, environmentId
1
createEnvironment
Create a new environment in the target organization. The returned id is used as the deployment target for the application.
2
deployApplication
Deploy a new CloudHub application into the newly created environment, passing the organization and environment ids as the required headers.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: MuleSoft Provision Environment and Deploy Application
  summary: Create a new Anypoint environment and deploy a CloudHub application into it.
  description: >-
    Stands up a fresh deployment target on the Anypoint Platform and immediately
    deploys a Mule application into it. The workflow creates an environment in
    the target organization, captures the new environment id, and then deploys a
    CloudHub application scoped to that environment using the org and environment
    headers the CloudHub API requires. 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
- name: environmentsApi
  url: ../openapi/mulesoft-environments-api-openapi.yml
  type: openapi
workflows:
- workflowId: provision-environment-and-deploy-app
  summary: Create an environment and deploy a CloudHub application into it.
  description: >-
    Creates a new environment within an organization, then deploys a CloudHub
    application targeting that environment by passing the organization and
    environment ids as headers.
  inputs:
    type: object
    required:
    - bearerToken
    - orgId
    - environmentName
    - environmentType
    - appDomain
    - muleVersion
    - region
    properties:
      bearerToken:
        type: string
        description: Anypoint Platform bearer access token.
      orgId:
        type: string
        description: The organization id that owns the new environment and application.
      environmentName:
        type: string
        description: Display name for the new environment.
      environmentType:
        type: string
        description: Environment type classification (design, sandbox, or production).
      appDomain:
        type: string
        description: Unique CloudHub domain name for the application.
      muleVersion:
        type: string
        description: Mule runtime version to deploy.
      region:
        type: string
        description: CloudHub region to deploy the application to.
  steps:
  - stepId: createEnvironment
    description: >-
      Create a new environment in the target organization. The returned id is
      used as the deployment target for the application.
    operationId: createEnvironment
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: orgId
      in: path
      value: $inputs.orgId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.environmentName
        type: $inputs.environmentType
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      environmentId: $response.body#/id
      environmentClientId: $response.body#/clientId
  - stepId: deployApplication
    description: >-
      Deploy a new CloudHub application into the newly created environment,
      passing the organization and environment ids as the required headers.
    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: $steps.createEnvironment.outputs.environmentId
    requestBody:
      contentType: application/json
      payload:
        domain: $inputs.appDomain
        muleVersion:
          version: $inputs.muleVersion
        region: $inputs.region
        workers:
          amount: 1
          type:
            name: Micro
            weight: 0.1
        monitoringAutoRestart: true
        loggingNgEnabled: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      appDomain: $response.body#/domain
      fullDomain: $response.body#/fullDomain
      status: $response.body#/status
  outputs:
    environmentId: $steps.createEnvironment.outputs.environmentId
    deployedDomain: $steps.deployApplication.outputs.fullDomain
    deploymentStatus: $steps.deployApplication.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-provision-environment-and-deploy-app-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.