Get status for each instance of an App using the app guid.
GET /v2/apps/f0488465-4ab0-4f55-bfa2-b439ed1da322/stats
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the App |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDh9.q7P22nY5RaJaqVC5fD7LwPtO_RPZcN3lnkp4_zinLdM Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps/f0488465-4ab0-4f55-bfa2-b439ed1da322/stats" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDh9.q7P22nY5RaJaqVC5fD7LwPtO_RPZcN3lnkp4_zinLdM" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "0": { "state": "RUNNING", "stats": { "usage": { "disk": 66392064, "mem": 29880320, "cpu": 0.13511219703079957, "time": "2014-06-19 22:37:58 +0000" }, "name": "app_name", "uris": [ "app_name.example.com" ], "host": "10.0.0.1", "port": 61035, "uptime": 65007, "mem_quota": 536870912, "disk_quota": 1073741824, "fds_quota": 16384 } } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: dc149f3f-7358-4c6a-9239-6e5b53eb471e Content-Length: 297 X-Content-Type-Options: nosniff