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/e6ea40d2-1e65-4c15-91f8-6e923763025f/spaces/bbddab9b-22f9-45db-ab8d-913cac965a9b

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NyIsImVtYWlsIjoiZW1haWwtMjY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTN9.YWQxN87VFjJKU5Oo-KWNuJKpmlSw517p2F-Juk5AhlE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/e6ea40d2-1e65-4c15-91f8-6e923763025f/spaces/bbddab9b-22f9-45db-ab8d-913cac965a9b" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NyIsImVtYWlsIjoiZW1haWwtMjY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTN9.YWQxN87VFjJKU5Oo-KWNuJKpmlSw517p2F-Juk5AhlE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e6ea40d2-1e65-4c15-91f8-6e923763025f",
    "url": "/v2/space_quota_definitions/e6ea40d2-1e65-4c15-91f8-6e923763025f",
    "created_at": "2015-07-27T22:43:32Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2250",
    "organization_guid": "03f00b3e-386f-4262-a8df-fc5325f3b51a",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/03f00b3e-386f-4262-a8df-fc5325f3b51a",
    "spaces_url": "/v2/space_quota_definitions/e6ea40d2-1e65-4c15-91f8-6e923763025f/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 86eae109-463e-4d0f-abc5-e21342c58960
Content-Length: 654
X-Content-Type-Options: nosniff