curl GET 'https://anypoint.mulesoft.com/cloudhub/api/applications/<appName>/status' \ --header 'X-ANYPNT-ENV-ID: <ENV_ID>' \ --header 'Authorization: bearer <BEARER_TOKEN>'This call will return READY in the body response if the application is up and running. The list of all possible status is explained in the CloudHub API endpoint doc.
transports:
rest.agent.transport:
enabled: true
port: 9999
curl GET 'http://localhost:<rest.agent.transport.port>/mule/healthcheck/applications/<appName>/ready'for example:
curl GET 'http://localhost:9999/mule/healthcheck/applications/hello-world/ready'this will return
curl -L -X GET 'https://anypoint.mulesoft.com/amc/application-manager/api/v2/organizations/<org ID>/environments/<env ID>/deployments/<deployment ID>/You should see something like this and need to parse to "applications" -> "status"
{
"id": "1234556-7b8c-4ccd-9c0f-c94b6186119d",
"name": "mytestjvm1",
"creationDate": 1642186000878,
"lastModifiedDate": 1642186000878,
"target": {
"provider": "MC",
"targetId": "1234556-ca86-45f1-bbfc-9058c2b5125c",
"deploymentSettings": {
"jvm": {
"args": "-Daksert=true, -Dqwert=false"
},
"anypointMonitoringScope": "cluster",
"sidecars": {
"anypoint-monitoring": {
"image": "auto",
"resources": {
"cpu": {
"limit": "50m",
"reserved": "0m"
},
"memory": {
"limit": "50Mi",
"reserved": "50Mi"
}
}
}
},
"updateStrategy": "rolling",
"runtimeVersion": "4.4.0:20211227-1",
"clustered": false,
"forwardSslSession": false,
"http": {
"inbound": {
"publicUrl": null
}
},
"resources": {
"cpu": {
"limit": "1000m",
"reserved": "1000m"
},
"memory": {
"limit": "3000Mi",
"reserved": "3000Mi"
}
},
"lastMileSecurity": false,
"enforceDeployingReplicasAcrossNodes": false
},
"replicas": 1
},
"status": "APPLIED",
"application": {
"status": "RUNNING",
"desiredState": "STARTED",
"ref": {
"groupId": "1234556-e6c4-475c-8711-a2653959a2f4",
"artifactId": "testdlb-api-1.0.0-snapshot-mule-application-dlb",
"version": "1.0.1",
"packaging": "jar"
},
"configuration": {
"mule.agent.application.properties.service": {
"properties": {},
"applicationName": "mytestjvm1"
}
}
},
"desiredVersion": "1234556-4f49-436a-bfad-ce325e64b10f",
"replicas": [
{
"state": "STARTED",
"deploymentLocation": "1234556-ca86-45f1-bbfc-9058c2b5125c",
"currentDeploymentVersion": "1234556-4f49-436a-bfad-ce325e64b10f",
"reason": ""
}
],
"lastSuccessfulVersion": "1234556-4f49-436a-bfad-ce325e64b10f"
}
curl -L -X GET 'https://anypoint.mulesoft.com/amc/application-manager/api/v2/organizations/<org ID>/environments/<env ID>/deployments/<deployment ID>/ | jq -r '.application.status'Result:
RUNNING
001116913

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.