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/3dec0637-ca30-474a-be44-d21c272abed5/spaces/2d8d8495-cd37-4a60-a514-671c4288c81e

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/3dec0637-ca30-474a-be44-d21c272abed5/spaces/2d8d8495-cd37-4a60-a514-671c4288c81e" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtODFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MzMxMDk3NX0.apVrisIABq0Uv6aWEup1EaQP5527bXIRaTh-x7No2hs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3dec0637-ca30-474a-be44-d21c272abed5",
    "url": "/v2/space_quota_definitions/3dec0637-ca30-474a-be44-d21c272abed5",
    "created_at": "2016-01-13T17:29:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-367",
    "organization_guid": "f4958036-1470-4b31-951c-89312961da0d",
    "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/f4958036-1470-4b31-951c-89312961da0d",
    "spaces_url": "/v2/space_quota_definitions/3dec0637-ca30-474a-be44-d21c272abed5/spaces"
  }
}

Headers

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