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/545e2fe1-b349-4385-8e98-e68adee6db11/spaces/787a9631-3c6a-44d6-adbf-0b46a1372ee4

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.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNiIsImVtYWlsIjoiZW1haWwtMzE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MjB9.HkrGWMpUWeWi-sGDcDzhW08oWJRPEfm3aRg23RRFyNs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/545e2fe1-b349-4385-8e98-e68adee6db11/spaces/787a9631-3c6a-44d6-adbf-0b46a1372ee4" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNiIsImVtYWlsIjoiZW1haWwtMzE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MjB9.HkrGWMpUWeWi-sGDcDzhW08oWJRPEfm3aRg23RRFyNs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "545e2fe1-b349-4385-8e98-e68adee6db11",
    "url": "/v2/space_quota_definitions/545e2fe1-b349-4385-8e98-e68adee6db11",
    "created_at": "2015-08-31T21:50:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2495",
    "organization_guid": "928743e6-3bf1-450a-8747-025a7c8d76ef",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/928743e6-3bf1-450a-8747-025a7c8d76ef",
    "spaces_url": "/v2/space_quota_definitions/545e2fe1-b349-4385-8e98-e68adee6db11/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 186c052c-ebfc-4c4c-8d9f-0bf2d048d4a3
Content-Length: 654
X-Content-Type-Options: nosniff