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/c3330cf8-c288-4218-b7e5-5a12e96e2978/spaces/14529d31-0948-4520-8c75-b1983b7dacd9

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.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC01NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ3fQ.7CVM3249T4OmxE_hisZldLwNNLdsjyUtE7lY0NJCWVQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/c3330cf8-c288-4218-b7e5-5a12e96e2978/spaces/14529d31-0948-4520-8c75-b1983b7dacd9" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC01NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ3fQ.7CVM3249T4OmxE_hisZldLwNNLdsjyUtE7lY0NJCWVQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c3330cf8-c288-4218-b7e5-5a12e96e2978",
    "url": "/v2/space_quota_definitions/c3330cf8-c288-4218-b7e5-5a12e96e2978",
    "created_at": "2015-06-16T23:40:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-385",
    "organization_guid": "c5e7950d-7a15-40a6-b184-e9884bf8d468",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/c5e7950d-7a15-40a6-b184-e9884bf8d468",
    "spaces_url": "/v2/space_quota_definitions/c3330cf8-c288-4218-b7e5-5a12e96e2978/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5bec752f-ddec-4c42-98e0-8a8d9b12899e
Content-Length: 653
X-Content-Type-Options: nosniff