This endpoint returns a count of started app instances under an organization. Note that crashing apps are included in this count.
GET /v2/organizations/6280ee87-0aac-476c-9bd8-349ec3fe4434/instance_usage
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Organization |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIzfQ.qxzEGZmLyNdNa8vVjnHmJHWt6hrQbvbK7pkovPHnIYY Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/organizations/6280ee87-0aac-476c-9bd8-349ec3fe4434/instance_usage" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIzfQ.qxzEGZmLyNdNa8vVjnHmJHWt6hrQbvbK7pkovPHnIYY" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "instance_usage": 3 }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 2359c1ad-dfba-442e-8a11-38c7e0898191 Content-Length: 20 X-Content-Type-Options: nosniff