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/575a8631-e5df-4e35-9e9c-3e68fbaeb463/spaces/0df0a373-32f4-4489-a26d-b6b349801af6

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OCIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDN9.FbGLp8UzB_LPIRtZXiKu-8RCNBkKWWG-zxSu4VxuZCk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/575a8631-e5df-4e35-9e9c-3e68fbaeb463/spaces/0df0a373-32f4-4489-a26d-b6b349801af6" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OCIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDN9.FbGLp8UzB_LPIRtZXiKu-8RCNBkKWWG-zxSu4VxuZCk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "575a8631-e5df-4e35-9e9c-3e68fbaeb463",
    "url": "/v2/space_quota_definitions/575a8631-e5df-4e35-9e9c-3e68fbaeb463",
    "created_at": "2015-10-13T17:31:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-406",
    "organization_guid": "a66561fd-52ec-4043-a9d3-6d216ff93076",
    "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/a66561fd-52ec-4043-a9d3-6d216ff93076",
    "spaces_url": "/v2/space_quota_definitions/575a8631-e5df-4e35-9e9c-3e68fbaeb463/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f8a06878-253e-4eb5-9e0e-aabe5ca61eaf
Content-Length: 683
X-Content-Type-Options: nosniff