MuleSoft · Arazzo Workflow

MuleSoft Deploy Application and Poll Until Started

Version 1.0.0

Deploy a CloudHub application and poll its status until it reaches STARTED.

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

Provider

mulesoft

Workflows

deploy-app-and-poll-status
Deploy a CloudHub application and wait for it to become STARTED.
Creates a CloudHub application in the target environment, then repeatedly reads the application status until the deployment settles on STARTED.
2 steps inputs: appDomain, bearerToken, environmentId, muleVersion, orgId, region outputs: deployedDomain, finalStatus
1
deployApplication
Deploy a new CloudHub application into the target environment.
2
pollStatus
Read the application deployment status. Branch on the reported status: finish when STARTED, otherwise loop back to poll again.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: MuleSoft Deploy Application and Poll Until Started
  summary: Deploy a CloudHub application and poll its status until it reaches STARTED.
  description: >-
    Deploys a Mule application to CloudHub and then polls the application status
    endpoint, branching on the deployment status. When the application reports
    STARTED the workflow completes; while it is still STARTING or DEPLOYING the
    workflow loops back to poll again. 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: deploy-app-and-poll-status
  summary: Deploy a CloudHub application and wait for it to become STARTED.
  description: >-
    Creates a CloudHub application in the target environment, then repeatedly
    reads the application status until the deployment settles on STARTED.
  inputs:
    type: object
    required:
    - bearerToken
    - orgId
    - environmentId
    - appDomain
    - muleVersion
    - region
    properties:
      bearerToken:
        type: string
        description: Anypoint Platform bearer access token.
      orgId:
        type: string
        description: The organization id that owns the application.
      environmentId:
        type: string
        description: The environment id to deploy the application into.
      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: deployApplication
    description: >-
      Deploy a new CloudHub application into the target environment.
    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.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
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      deployedDomain: $response.body#/domain
  - stepId: pollStatus
    description: >-
      Read the application deployment status. Branch on the reported status:
      finish when STARTED, otherwise loop back to poll again.
    operationId: getApplicationStatus
    parameters:
    - name: domain
      in: path
      value: $steps.deployApplication.outputs.deployedDomain
    - 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.environmentId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      deploymentUpdateStatus: $response.body#/deploymentUpdateStatus
    onSuccess:
    - name: deploymentSettled
      type: end
      criteria:
      - context: $response.body
        condition: $.status == "STARTED"
        type: jsonpath
    - name: keepPolling
      type: goto
      stepId: pollStatus
      criteria:
      - context: $response.body
        condition: $.status != "STARTED"
        type: jsonpath
  outputs:
    deployedDomain: $steps.deployApplication.outputs.deployedDomain
    finalStatus: $steps.pollStatus.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-deploy-app-and-poll-status-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.