While deploying a CloudHub 1.0 application via the Anypoint REST API, polling the deployments endpoint:
GET /cloudhub/api/v2/applications/{domain}/deployments
returns an instance with status: "TERMINATED", even though:
STARTED.The TERMINATED instance reflects an initial worker (EC2) provisioning attempt that failed on the underlying cloud infrastructure. CloudHub's self-healing deployment logic automatically provisions a replacement worker within the same deployment cycle, which is why the application still deploys successfully. The /deployments endpoint surfaces every worker instance involved in the deployment, including ones that were terminated and replaced — so a transient TERMINATED entry during an otherwise successful deployment is expected.
Do not use the /deployments endpoint to track in-progress deployment status — it reflects per-instance lifecycle, not overall deployment progress. Instead, poll the application details endpoint:
GET /cloudhub/api/v2/applications/{domain}
and monitor the deploymentUpdateStatus field in the JSON response:
"deploymentUpdateStatus": "DEPLOYING" — the deployment is actively in progress."deploymentUpdateStatus": "DEPLOY_FAILED" — the deployment encountered an error and failed.deploymentUpdateStatus key is omitted from the response once the deployment finishes.Once deploymentUpdateStatus is no longer present, you can call GET /cloudhub/api/v2/applications/{domain}/deployments to confirm the final instance status as STARTED.
Note: The deploymentUpdateStatus field is not currently included in the sample response shown in the Exchange portal documentation, but it is returned by the API at runtime during deployments.
005387182

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.