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/871ddacf-c365-47df-bdf1-d0c1b9fd48e6/spaces/92b8b6ae-919c-4e45-bda9-25fdcf78063c

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NSIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MjF9._cklKkKPhymIEtPx4s8nEqT-BfY4bSvFC6rxKeXPDrY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/871ddacf-c365-47df-bdf1-d0c1b9fd48e6/spaces/92b8b6ae-919c-4e45-bda9-25fdcf78063c" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NSIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MjF9._cklKkKPhymIEtPx4s8nEqT-BfY4bSvFC6rxKeXPDrY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "871ddacf-c365-47df-bdf1-d0c1b9fd48e6",
    "url": "/v2/space_quota_definitions/871ddacf-c365-47df-bdf1-d0c1b9fd48e6",
    "created_at": "2016-01-26T22:20:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-924",
    "organization_guid": "74f4dac6-7e88-4166-8c99-4d790332f07f",
    "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/74f4dac6-7e88-4166-8c99-4d790332f07f",
    "spaces_url": "/v2/space_quota_definitions/871ddacf-c365-47df-bdf1-d0c1b9fd48e6/spaces"
  }
}

Headers

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