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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4Nzh9.nB_xpCYTh2YII2cGJ-HIRWA22q6IgflQNNfAb1BVBy8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/space_quota_definitions/2b7737a9-b5ca-4e38-b86a-0597b37733f7/spaces/97878e3e-c20f-4b79-9aae-01f476a5b089

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/2b7737a9-b5ca-4e38-b86a-0597b37733f7/spaces/97878e3e-c20f-4b79-9aae-01f476a5b089" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4Nzh9.nB_xpCYTh2YII2cGJ-HIRWA22q6IgflQNNfAb1BVBy8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a72f919e-0c47-4ee6-9430-0c48148e3427
Content-Length: 654
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "2b7737a9-b5ca-4e38-b86a-0597b37733f7",
    "url": "/v2/space_quota_definitions/2b7737a9-b5ca-4e38-b86a-0597b37733f7",
    "created_at": "2015-01-27T19:14:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1558",
    "organization_guid": "31b5cf7c-a9be-4c59-9799-903bd59865fc",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/31b5cf7c-a9be-4c59-9799-903bd59865fc",
    "spaces_url": "/v2/space_quota_definitions/2b7737a9-b5ca-4e38-b86a-0597b37733f7/spaces"
  }
}