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/d1fa724c-2915-49c6-b3b9-34e787de55cf/spaces/728c4062-cc2d-4e96-bec2-420897b9eb54

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/d1fa724c-2915-49c6-b3b9-34e787de55cf/spaces/728c4062-cc2d-4e96-bec2-420897b9eb54" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTN9.4JqmUdrHJA_WmCZRt4oywA0jmgacao8F97njwmVB4Ho" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d1fa724c-2915-49c6-b3b9-34e787de55cf",
    "url": "/v2/space_quota_definitions/d1fa724c-2915-49c6-b3b9-34e787de55cf",
    "created_at": "2015-05-21T01:03:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1778",
    "organization_guid": "5c986faf-721e-413c-b9f0-d5da79d244ae",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/5c986faf-721e-413c-b9f0-d5da79d244ae",
    "spaces_url": "/v2/space_quota_definitions/d1fa724c-2915-49c6-b3b9-34e787de55cf/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3b98e5fc-6eb1-4ff2-b6a0-0d900b0dafef
Content-Length: 654
X-Content-Type-Options: nosniff