Home
Version 3
Space Quota Definitions API

Space Quota Definitions API

Remove Space from the Space Quota Definition

DELETE /v2/space_quota_definitions/:guid/spaces/:space_guid

Request

Route

DELETE /v2/space_quota_definitions/798442b6-fb2e-4c0a-a94b-74607678d4e0/spaces/02c06728-0ff9-4c37-aed7-c95ca782004e

Parameters

Name Description Valid Values Example Values
guid The guid of the Space Quota Definition

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzOSIsImVtYWlsIjoiZW1haWwtMjU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjB9.1c0dKvpTiKjOT_BYJWm41pMKTYYALrnlw8PBW6pRBIQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/798442b6-fb2e-4c0a-a94b-74607678d4e0/spaces/02c06728-0ff9-4c37-aed7-c95ca782004e" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzOSIsImVtYWlsIjoiZW1haWwtMjU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjB9.1c0dKvpTiKjOT_BYJWm41pMKTYYALrnlw8PBW6pRBIQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "798442b6-fb2e-4c0a-a94b-74607678d4e0",
    "url": "/v2/space_quota_definitions/798442b6-fb2e-4c0a-a94b-74607678d4e0",
    "created_at": "2015-06-04T00:05:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2130",
    "organization_guid": "89814413-360b-4b9c-a28d-52d9e6bd8c14",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/89814413-360b-4b9c-a28d-52d9e6bd8c14",
    "spaces_url": "/v2/space_quota_definitions/798442b6-fb2e-4c0a-a94b-74607678d4e0/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 58db9414-035e-4b2e-af01-a00124f5c2eb
Content-Length: 654
X-Content-Type-Options: nosniff