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/0deb3bbd-857e-40e7-b7cb-9dd498edc77c/spaces/2c2e4ca2-f672-40f4-9717-9665c7cb9586

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/0deb3bbd-857e-40e7-b7cb-9dd498edc77c/spaces/2c2e4ca2-f672-40f4-9717-9665c7cb9586" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NCIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njd9.L8nw6KMo-WpdtEiNHlQM2nErSCBTQzkO97s8dCqXIRk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0deb3bbd-857e-40e7-b7cb-9dd498edc77c",
    "url": "/v2/space_quota_definitions/0deb3bbd-857e-40e7-b7cb-9dd498edc77c",
    "created_at": "2015-03-03T00:51:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1182",
    "organization_guid": "d96b613a-717d-455b-870a-277ecb910c2c",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/d96b613a-717d-455b-870a-277ecb910c2c",
    "spaces_url": "/v2/space_quota_definitions/0deb3bbd-857e-40e7-b7cb-9dd498edc77c/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a04c86ed-7ba1-4618-a433-67bafdf75fa3
Content-Length: 654
X-Content-Type-Options: nosniff