Home
Version 3
Apps API

Apps API

Get detailed stats for a STARTED App

GET /v2/apps/:guid/stats

Get status for each instance of an App using the app guid.

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtOTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxOTk4OTk2OH0.561nfPBro930A1-CwpX3xuqXxn8ANiySjjkP7m3fh_A
Host: example.org
Cookie: 

Route

GET /v2/apps/8ebdbd21-fea8-4914-9922-b647fcf1f308/stats

cURL

curl "https://api.[your-domain.com]/v2/apps/8ebdbd21-fea8-4914-9922-b647fcf1f308/stats" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtOTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxOTk4OTk2OH0.561nfPBro930A1-CwpX3xuqXxn8ANiySjjkP7m3fh_A" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a1fd6160-3625-49f9-9ef2-083b8fa43646
Content-Length: 297
X-Content-Type-Options: nosniff

Status

200 OK

Body

{"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}}}