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/ce761ef5-be19-4fdf-be6a-7a56b12ba5c1/spaces/366c1083-fd9f-451f-b933-b496aeea0618

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtODJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzQ4MDg0Nn0.bLW1lZF9Uuc-8Od6r8KDBNIh3nrm8vc4HFqv54ee5AI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/ce761ef5-be19-4fdf-be6a-7a56b12ba5c1/spaces/366c1083-fd9f-451f-b933-b496aeea0618" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtODJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzQ4MDg0Nn0.bLW1lZF9Uuc-8Od6r8KDBNIh3nrm8vc4HFqv54ee5AI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ce761ef5-be19-4fdf-be6a-7a56b12ba5c1",
    "url": "/v2/space_quota_definitions/ce761ef5-be19-4fdf-be6a-7a56b12ba5c1",
    "created_at": "2015-03-20T18:27:26Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-325",
    "organization_guid": "87ba64fc-075e-4798-a5e3-36c549ca3f4a",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/87ba64fc-075e-4798-a5e3-36c549ca3f4a",
    "spaces_url": "/v2/space_quota_definitions/ce761ef5-be19-4fdf-be6a-7a56b12ba5c1/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fdf8bf7d-f3b4-4bd9-b62c-03aa62038ec8
Content-Length: 653
X-Content-Type-Options: nosniff