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/70c2d01d-4700-44c8-b6e3-89437ad6fb51/spaces/2a9bda3f-1ae2-4ec6-859b-13ee73317182

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.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMxNjQ2NjI5fQ.AeUTGG0Ae5LHzuOv69fYVG8wPUXv9U3D4I-s-tB261E
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/70c2d01d-4700-44c8-b6e3-89437ad6fb51/spaces/2a9bda3f-1ae2-4ec6-859b-13ee73317182" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMxNjQ2NjI5fQ.AeUTGG0Ae5LHzuOv69fYVG8wPUXv9U3D4I-s-tB261E" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "70c2d01d-4700-44c8-b6e3-89437ad6fb51",
    "url": "/v2/space_quota_definitions/70c2d01d-4700-44c8-b6e3-89437ad6fb51",
    "created_at": "2015-05-07T23:37:09Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-957",
    "organization_guid": "af4928b4-b511-4aa8-bf8e-5a9e99e70390",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/af4928b4-b511-4aa8-bf8e-5a9e99e70390",
    "spaces_url": "/v2/space_quota_definitions/70c2d01d-4700-44c8-b6e3-89437ad6fb51/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5f052464-1425-4df3-b52d-44a3254a2b90
Content-Length: 653
X-Content-Type-Options: nosniff