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/dcf3b3cc-f88d-4b49-8f5b-d4fd958e182a/spaces/eade3798-62fd-48db-b086-9c8f1d92cf5d

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/dcf3b3cc-f88d-4b49-8f5b-d4fd958e182a/spaces/eade3798-62fd-48db-b086-9c8f1d92cf5d" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTkyfQ.jiJL5y3KgXBxjivBTY8czuSbSSFNg189j4r3Q4PDQIU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "dcf3b3cc-f88d-4b49-8f5b-d4fd958e182a",
    "url": "/v2/space_quota_definitions/dcf3b3cc-f88d-4b49-8f5b-d4fd958e182a",
    "created_at": "2015-08-06T00:36:32Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-58",
    "organization_guid": "d17e6176-3bd7-4c26-923e-02ef1e0d4a29",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/d17e6176-3bd7-4c26-923e-02ef1e0d4a29",
    "spaces_url": "/v2/space_quota_definitions/dcf3b3cc-f88d-4b49-8f5b-d4fd958e182a/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d2a56fe9-0b6b-4bd9-93f6-95f5cf1bb8be
Content-Length: 652
X-Content-Type-Options: nosniff