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/ff1bda69-ea66-4928-9e39-2b763d21b8fd/spaces/dc3a5e41-8ff8-497a-a0d4-e6d12f248aaa

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/ff1bda69-ea66-4928-9e39-2b763d21b8fd/spaces/dc3a5e41-8ff8-497a-a0d4-e6d12f248aaa" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTkyfQ.g6RrtbRxUAnxjnOQYwTHm99G7_t_7LU1821Z0idGc6c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ff1bda69-ea66-4928-9e39-2b763d21b8fd",
    "url": "/v2/space_quota_definitions/ff1bda69-ea66-4928-9e39-2b763d21b8fd",
    "created_at": "2015-08-06T00:36:32Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-53",
    "organization_guid": "91431bb4-4f86-4b03-a75b-4046411ca2ea",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/91431bb4-4f86-4b03-a75b-4046411ca2ea",
    "spaces_url": "/v2/space_quota_definitions/ff1bda69-ea66-4928-9e39-2b763d21b8fd/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5ff51936-db4a-4906-a39a-8e30b0598634
Content-Length: 652
X-Content-Type-Options: nosniff