Loading

How to Start/Stop/Restart an Existing Hybrid Application Using Rest API

Date de publication: Aug 1, 2025
Tâche

GOAL

To Start or Stop or Restart an existing Hybrid Mule application using REST API

Étapes

ARM REST Services API can be used to Stop/Start/Restart an existing Hybrid application.

Prerequisite:

This article assumes the below information is available. 

  • AUTH_TOKEN = Authorization token
  • APP_ID = ID of the Application
  • ORG_ID = ID of the Organization
  • ENV_ID = ID of the Environment


To Restart an application

The request below restarts an application:

curl --location --request PATCH 'https://anypoint.mulesoft.com/hybrid/api/v1/applications/{APP_ID}' \
--header 'Authorization: Bearer <AUTH_TOKEN>' \
--header 'X-ANYPNT-ENV-ID: <ENV_ID>' \
--header 'X-ANYPNT-ORG-ID: <ORG_ID>' \
--form 'id={APP_ID}'
 

To Start an application

The request below starts an application:

curl --location --request PATCH 'https://anypoint.mulesoft.com/hybrid/api/v1/applications/{APP_ID}' \
--header 'Authorization: Bearer <AUTH_TOKEN>' \
--header 'X-ANYPNT-ENV-ID: <ENV_ID>' \
--header 'X-ANYPNT-ORG-ID: <ORG_ID>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "desiredStatus":"STARTED"
}'


To Stop an application

The request below stops an application:

curl --location --request PATCH 'https://anypoint.mulesoft.com/hybrid/api/v1/applications/{APP_ID}' \
--header 'Authorization: Bearer <AUTH_TOKEN>' \
--header 'X-ANYPNT-ENV-ID: <ENV_ID>' \
--header 'X-ANYPNT-ORG-ID: <ORG_ID>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "desiredStatus":"STOPPED"
}'
Numéro d’article de la base de connaissances

001117201

 
Chargement
Salesforce Help | Article