This endpoint returns a count of started app instances under an organization. Note that crashing apps are included in this count.
GET /v2/organizations/5e6f1beb-fbbf-448c-b709-07b155a44440/instance_usage
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Organization |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0zNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA1fQ.9X2MPwzE_SGQmZGSMZDllBh8j4s_SezRhzqC3A5v3QY Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/organizations/5e6f1beb-fbbf-448c-b709-07b155a44440/instance_usage" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0zNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA1fQ.9X2MPwzE_SGQmZGSMZDllBh8j4s_SezRhzqC3A5v3QY" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "instance_usage": 3 }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: c1bcfc19-8ad0-4e4a-b1af-cdd598b908ff Content-Length: 20 X-Content-Type-Options: nosniff