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

Route

PUT /v2/space_quota_definitions/7c04507f-7302-4d62-bdde-de4c73c943bb/spaces/dd175109-b8fc-40ec-9350-3283925e718c

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/7c04507f-7302-4d62-bdde-de4c73c943bb/spaces/dd175109-b8fc-40ec-9350-3283925e718c" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MiIsImVtYWlsIjoiZW1haWwtMjY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzl9.4rEKN9PqwNshAVMAb_dEDe0zhgvsBUN8kqCBa6N0Qm8" \
	-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: 536f5b26-3f79-4740-8ca3-ffd1e1e0d209
Content-Length: 654
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "7c04507f-7302-4d62-bdde-de4c73c943bb",
    "url": "/v2/space_quota_definitions/7c04507f-7302-4d62-bdde-de4c73c943bb",
    "created_at": "2015-02-10T01:42:59Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1956",
    "organization_guid": "967043dd-d196-4280-99ec-320fd8ad0497",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/967043dd-d196-4280-99ec-320fd8ad0497",
    "spaces_url": "/v2/space_quota_definitions/7c04507f-7302-4d62-bdde-de4c73c943bb/spaces"
  }
}