Get status for each instance of an App using the app guid. Note: Provided example response is for apps running on Diego. For apps running on DEAs, instance information will appear as follows: { "0": { "state": "RUNNING", "since": 1403140717.984577, "debug_ip": null, "debug_port": null, "console_ip": null, "console_port": null } }.
GET /v2/apps/392ddbee-5aa4-4916-8609-2e75e5306f75/instances
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the App |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDl9.jl3bqCjlpz3j_uatcbfSDOgx886_Xv4wJ2kVJquXFaY Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps/392ddbee-5aa4-4916-8609-2e75e5306f75/instances" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDl9.jl3bqCjlpz3j_uatcbfSDOgx886_Xv4wJ2kVJquXFaY" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "0": { "state": "RUNNING", "since": 1403140717.984577, "uptime": 2405 }, "1": { "state": "STARTING", "since": 3625363939.984577, "uptime": 1394 }, "2": { "state": "CRASHED", "since": 2514251828.984577, "uptime": 283 }, "3": { "state": "DOWN", "uptime": 9172 } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 228 X-Content-Type-Options: nosniff