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/be0d2eba-44e0-4ac8-ac2b-3f651c95a023/spaces/dbb4cebb-2ed2-40f9-9322-36d016570342

Parameters

Name Description Valid Values Example Values
guid The guid of the Space Quota Definition
space_guid The guid of the space

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTd9.pqAeaVWUN0eXzGuDD601iEKrD7ngI6MDx-pOhJkE3w4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/be0d2eba-44e0-4ac8-ac2b-3f651c95a023/spaces/dbb4cebb-2ed2-40f9-9322-36d016570342" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTd9.pqAeaVWUN0eXzGuDD601iEKrD7ngI6MDx-pOhJkE3w4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "be0d2eba-44e0-4ac8-ac2b-3f651c95a023",
    "url": "/v2/space_quota_definitions/be0d2eba-44e0-4ac8-ac2b-3f651c95a023",
    "created_at": "2015-12-22T18:28:17Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2125",
    "organization_guid": "09d2f3d3-156a-416e-bd13-de793cc48b76",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "app_instance_limit": -1,
    "organization_url": "/v2/organizations/09d2f3d3-156a-416e-bd13-de793cc48b76",
    "spaces_url": "/v2/space_quota_definitions/be0d2eba-44e0-4ac8-ac2b-3f651c95a023/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 684
X-Content-Type-Options: nosniff