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/406b5c3c-9adb-4fb9-85c1-cd33071d4b4c/spaces/ead41d5c-46f4-424a-ab78-2195b01ccdca

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/406b5c3c-9adb-4fb9-85c1-cd33071d4b4c/spaces/ead41d5c-46f4-424a-ab78-2195b01ccdca" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NyIsImVtYWlsIjoiZW1haWwtMjYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODJ9.C5Lh-YprA3DB5W847lbfN4XuTQAuQyQGrnLDRtiHWoQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "406b5c3c-9adb-4fb9-85c1-cd33071d4b4c",
    "url": "/v2/space_quota_definitions/406b5c3c-9adb-4fb9-85c1-cd33071d4b4c",
    "created_at": "2016-01-19T19:41:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2315",
    "organization_guid": "3f3f005d-8a84-4e12-bc7a-c4e9a502e600",
    "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/3f3f005d-8a84-4e12-bc7a-c4e9a502e600",
    "spaces_url": "/v2/space_quota_definitions/406b5c3c-9adb-4fb9-85c1-cd33071d4b4c/spaces"
  }
}

Headers

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