Home
Version 3
Organizations API

Organizations API

Retrieving quota usage for the Organization

GET /v2/organizations/:guid/quota_usage

Request

Route

GET /v2/organizations/067be8c6-54ae-4cab-8887-951485792ae5/quota_usage

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MyIsImVtYWlsIjoiZW1haWwtMjg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjJ9.bcpG1ZvnaDaLjOejWpn-qo7GC4UEXiPdw7Eyi8_rMP0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/067be8c6-54ae-4cab-8887-951485792ae5/quota_usage" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MyIsImVtYWlsIjoiZW1haWwtMjg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjJ9.bcpG1ZvnaDaLjOejWpn-qo7GC4UEXiPdw7Eyi8_rMP0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e22837e4-3b85-4341-b1f2-1df7e17937f0",
    "url": "/v2/quota_definitions/e22837e4-3b85-4341-b1f2-1df7e17937f0",
    "created_at": "2015-06-04T00:05:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2220",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "trial_db_allowed": false,
    "instance_memory_limit": -1,
    "org_usage": {
      "routes": 1,
      "services": 1,
      "memory": 500
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7b262717-cdf6-468d-8ef3-5bb8fe70b532
Content-Length: 525
X-Content-Type-Options: nosniff