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/311ba0da-0f0f-4ead-b9b3-cb659f405d77/spaces/4b10980f-d97b-4738-9b06-17da6ae8609e

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/311ba0da-0f0f-4ead-b9b3-cb659f405d77/spaces/4b10980f-d97b-4738-9b06-17da6ae8609e" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNyIsImVtYWlsIjoiZW1haWwtMzE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MjB9.H5xr5i_mrBUmSv2hmtaaIdDj50I3OhpeA_Y4GdfmY8M" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "311ba0da-0f0f-4ead-b9b3-cb659f405d77",
    "url": "/v2/space_quota_definitions/311ba0da-0f0f-4ead-b9b3-cb659f405d77",
    "created_at": "2015-08-31T21:50:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2500",
    "organization_guid": "ad9e50aa-5b94-4fd8-97ba-50b95b5519fe",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/ad9e50aa-5b94-4fd8-97ba-50b95b5519fe",
    "spaces_url": "/v2/space_quota_definitions/311ba0da-0f0f-4ead-b9b3-cb659f405d77/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 76303032-5337-4125-8216-bf69cea20ebb
Content-Length: 654
X-Content-Type-Options: nosniff