Checking the Status of an App with the API

Check the status of asynchronous API calls to an apps endpoint, such as POST ​/v1​/subscriptions​/{subscriptionLocator}​/apps, using the GET ​/v1​/subscriptions​/{subscriptionLocator}​/apps​/{appId}​/status method to determine when the asynchronous call has completed.

To check the status of an app you need the following: 

  1. Make the asynchronous API call to create or modify an app.
  2. Call the GET ​/v1/subscriptions/{subscriptionLocator}/apps/{appId}/status method using the appId of the new or updated app.
  3. You may need to make the status call more than once until you receive a response with complete status such as running or error. 
  4. {
      "status": "running",
      "message": "App is running",
      "instanceStatus": {
        "running": 1,
        "starting": 0,
        "failed": 0,
        "desired": 1,
        "vpn": 0
      }
    }

TIBCO Cloud Integration - Connect has a separate API that allows you to manage objects for that capability. For more information on checking app status for TIBCO Cloud Integration - Connect apps, see the help for GET /v1/orgs/{orgId}/solutions/{solutionId} under Solutions in the TIBCO Cloud Integration - Connect Developer Portal.

Related Topics

Managing Apps with the TIBCO Cloud™ Integration API