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/6d3196f2-d1dc-4957-8578-fc5f205ca97c/spaces/5ef0c3e9-b937-43c0-a682-a60229a64eea

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/6d3196f2-d1dc-4957-8578-fc5f205ca97c/spaces/5ef0c3e9-b937-43c0-a682-a60229a64eea" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOCIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDR9.pbnrJlvBtS5EvEwNVG68nxmj3mDKX91nFs8OC7H1VGw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6d3196f2-d1dc-4957-8578-fc5f205ca97c",
    "url": "/v2/space_quota_definitions/6d3196f2-d1dc-4957-8578-fc5f205ca97c",
    "created_at": "2015-10-07T00:35:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2263",
    "organization_guid": "0970059f-6271-4a2f-b4ea-a185cdb006c9",
    "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/0970059f-6271-4a2f-b4ea-a185cdb006c9",
    "spaces_url": "/v2/space_quota_definitions/6d3196f2-d1dc-4957-8578-fc5f205ca97c/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6a1f2b3d-0ab7-4293-91c1-7b4dc47a3fc2
Content-Length: 684
X-Content-Type-Options: nosniff