Apps API

Get the instance information for a STARTED App

GET /v2/apps/:guid/instances

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 } }.

Request

Route

GET /v2/apps/ed5512e3-511f-49b3-b30a-b3630e782d03/instances

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NyIsImVtYWlsIjoiZW1haWwtMzA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDZ9.te_u2DJ11t6OBOE8x-jMEv649-7UmxUGzi4llrp77YM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/ed5512e3-511f-49b3-b30a-b3630e782d03/instances" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NyIsImVtYWlsIjoiZW1haWwtMzA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDZ9.te_u2DJ11t6OBOE8x-jMEv649-7UmxUGzi4llrp77YM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "0": {
    "state": "RUNNING",
    "since": 1403140717.984577,
    "uptime": 2405
  },
  "1": {
    "state": "STARTING",
    "since": 3625363939.984577,
    "uptime": 1394
  },
  "2": {
    "details": "internal error",
    "state": "CRASHED",
    "since": 2514251828.984577,
    "uptime": 283
  },
  "3": {
    "details": "insufficient resources: disk",
    "state": "DOWN",
    "uptime": 9172
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0819bb22-415a-462f-8ee7-6be3929051c9
Content-Length: 228
X-Content-Type-Options: nosniff