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/646f763b-35f4-494d-84c3-ed248c3b364e/spaces/b583f306-4437-4000-91e2-457a2ec87abf

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/646f763b-35f4-494d-84c3-ed248c3b364e/spaces/b583f306-4437-4000-91e2-457a2ec87abf" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC04MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA5fQ.VpkSJGlPcx8aCW6mYH6SFXMMK9y1nfi4Np79TnG1CRU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "646f763b-35f4-494d-84c3-ed248c3b364e",
    "url": "/v2/space_quota_definitions/646f763b-35f4-494d-84c3-ed248c3b364e",
    "created_at": "2015-05-15T16:53:29Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-373",
    "organization_guid": "c0f9f0cb-373a-4e67-bc61-2db172a1fc49",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/c0f9f0cb-373a-4e67-bc61-2db172a1fc49",
    "spaces_url": "/v2/space_quota_definitions/646f763b-35f4-494d-84c3-ed248c3b364e/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4c0ca120-9443-4179-b9b9-48e99e8daee8
Content-Length: 653
X-Content-Type-Options: nosniff