This endpoint returns a count of started app instances under an organization. Note that crashing apps are included in this count.
GET /v2/organizations/c810d6d2-6cca-4cba-b5eb-b5465ef41a40/instance_usage
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Organization |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0OCIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.4oteOOZnwWWY0QcYOk68MMrC35AfFkQlzaZ8TYUOOnE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/organizations/c810d6d2-6cca-4cba-b5eb-b5465ef41a40/instance_usage" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0OCIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.4oteOOZnwWWY0QcYOk68MMrC35AfFkQlzaZ8TYUOOnE" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "instance_usage": 3 }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 20 X-Content-Type-Options: nosniff