Home
Version 3
Space Quota Definitions API

Space Quota Definitions API

Associate Space with the Space Quota Definition

PUT /v2/space_quota_definitions/:guid/spaces/:space_guid

Request

Route

PUT /v2/space_quota_definitions/963a9967-5394-4c32-8c22-b1207984281b/spaces/5699aad6-3d77-4920-8166-6a96f0a11344

Parameters

Name Description Valid Values Example Values
guid The guid of the Space Quota Definition

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NiIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTN9.WElpaCnWHiYMzTBBf1vkTXmZ_DUVJmM6Xu6oXXPFaX8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/963a9967-5394-4c32-8c22-b1207984281b/spaces/5699aad6-3d77-4920-8166-6a96f0a11344" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NiIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTN9.WElpaCnWHiYMzTBBf1vkTXmZ_DUVJmM6Xu6oXXPFaX8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "963a9967-5394-4c32-8c22-b1207984281b",
    "url": "/v2/space_quota_definitions/963a9967-5394-4c32-8c22-b1207984281b",
    "created_at": "2015-05-21T01:03:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1768",
    "organization_guid": "08a3d2af-25fa-46ba-a35b-2752401c20d7",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/08a3d2af-25fa-46ba-a35b-2752401c20d7",
    "spaces_url": "/v2/space_quota_definitions/963a9967-5394-4c32-8c22-b1207984281b/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d23397b6-4dc1-459e-bcce-40ebddf8ae4d
Content-Length: 654
X-Content-Type-Options: nosniff