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

Route

PUT /v2/space_quota_definitions/3df89c3e-dfdb-4c93-9496-415b1634ab5f/spaces/ed93c0a3-a597-4340-a146-605c4edc6539

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/3df89c3e-dfdb-4c93-9496-415b1634ab5f/spaces/ed93c0a3-a597-4340-a146-605c4edc6539" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTR9.jjRXSm32ZnDEIAebtx_3KFz78BZ2cNmYPuMeb27O8Qg" \
	-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: 81a99ef6-348a-4bc8-b391-4f4b35d54a6c
Content-Length: 659
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "3df89c3e-dfdb-4c93-9496-415b1634ab5f",
    "url": "/v2/space_quota_definitions/3df89c3e-dfdb-4c93-9496-415b1634ab5f",
    "created_at": "2014-11-13T23:38:34+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1260",
    "organization_guid": "8760e711-1468-429c-961b-08dcf78c02df",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/8760e711-1468-429c-961b-08dcf78c02df",
    "spaces_url": "/v2/space_quota_definitions/3df89c3e-dfdb-4c93-9496-415b1634ab5f/spaces"
  }
}