Get status for each instance of an App using the app guid.
GET /v2/apps/b955fdba-d9f3-469c-b257-cd04042f436f/stats
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the App |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjA4fQ.R7lQbtvbGxkS2KRDnIMuYLLrZ7CF766dPI5m0NA19kA Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps/b955fdba-d9f3-469c-b257-cd04042f436f/stats" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjA4fQ.R7lQbtvbGxkS2KRDnIMuYLLrZ7CF766dPI5m0NA19kA" \ -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: Content-Length: 297 X-Content-Type-Options: nosniff