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/62254f27-5070-420b-ba80-324c3a546822/spaces/b8de1c7e-9566-4b27-9e64-2052565232b7

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/62254f27-5070-420b-ba80-324c3a546822/spaces/b8de1c7e-9566-4b27-9e64-2052565232b7" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NiIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDh9.z167nbewWYOw9FaGk9T5P9mbAaqdFbTkCoWz-_eXRDY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "62254f27-5070-420b-ba80-324c3a546822",
    "url": "/v2/space_quota_definitions/62254f27-5070-420b-ba80-324c3a546822",
    "created_at": "2015-04-15T00:55:48Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1884",
    "organization_guid": "ed409183-958b-4943-8888-82b63bd4b161",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/ed409183-958b-4943-8888-82b63bd4b161",
    "spaces_url": "/v2/space_quota_definitions/62254f27-5070-420b-ba80-324c3a546822/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3bee26db-b39a-4365-90ef-5693e46b56d5
Content-Length: 654
X-Content-Type-Options: nosniff