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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzB9.1gXMLriQFpiAmb8gvoQzswqFycwB4RuiOmlAIy6Fnqs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/space_quota_definitions/ff4df434-ddb7-47cb-b78b-6409d29f59f2/spaces/3529a1b5-3ebc-40f6-b6a1-63d5e725af93

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/ff4df434-ddb7-47cb-b78b-6409d29f59f2/spaces/3529a1b5-3ebc-40f6-b6a1-63d5e725af93" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NiIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzB9.1gXMLriQFpiAmb8gvoQzswqFycwB4RuiOmlAIy6Fnqs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7939cdbe-eac5-46fa-93d3-19ab2e1de4c0
Content-Length: 659
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "ff4df434-ddb7-47cb-b78b-6409d29f59f2",
    "url": "/v2/space_quota_definitions/ff4df434-ddb7-47cb-b78b-6409d29f59f2",
    "created_at": "2014-12-24T01:39:30+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1320",
    "organization_guid": "d00057d5-6b10-4c45-9a00-a2d61a02bfc8",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/d00057d5-6b10-4c45-9a00-a2d61a02bfc8",
    "spaces_url": "/v2/space_quota_definitions/ff4df434-ddb7-47cb-b78b-6409d29f59f2/spaces"
  }
}