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/510609b7-f174-4510-b94c-a25354c17ca5/spaces/f3cdf43c-881d-4aaa-8049-a9ec7aba916b

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/510609b7-f174-4510-b94c-a25354c17ca5/spaces/f3cdf43c-881d-4aaa-8049-a9ec7aba916b" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OCIsImVtYWlsIjoiZW1haWwtMTg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTB9.lKXhYu6oHaglMfKAmhT3GvsKjtO0O9aPNJc0A4tFpr4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "510609b7-f174-4510-b94c-a25354c17ca5",
    "url": "/v2/space_quota_definitions/510609b7-f174-4510-b94c-a25354c17ca5",
    "created_at": "2015-03-10T23:11:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-767",
    "organization_guid": "0c2faa9e-1549-4ffa-8627-2f0d43e8bcf7",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/0c2faa9e-1549-4ffa-8627-2f0d43e8bcf7",
    "spaces_url": "/v2/space_quota_definitions/510609b7-f174-4510-b94c-a25354c17ca5/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 62f91e74-3729-45d4-bc6f-5cec146fb269
Content-Length: 653
X-Content-Type-Options: nosniff