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/404f0ca7-595a-491a-b2f7-d6bfd9ba2868/spaces/851e7e94-a0aa-4d9f-bdd7-30466b129409

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/404f0ca7-595a-491a-b2f7-d6bfd9ba2868/spaces/851e7e94-a0aa-4d9f-bdd7-30466b129409" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNyIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDZ9.oWv0ugxHRhlj3NeLhJw4VDN7fUv5tr2qmrwcC00KdhM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "404f0ca7-595a-491a-b2f7-d6bfd9ba2868",
    "url": "/v2/space_quota_definitions/404f0ca7-595a-491a-b2f7-d6bfd9ba2868",
    "created_at": "2015-04-07T19:11:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-574",
    "organization_guid": "c399e377-71c7-4332-b615-ddd1b90d8a2c",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/c399e377-71c7-4332-b615-ddd1b90d8a2c",
    "spaces_url": "/v2/space_quota_definitions/404f0ca7-595a-491a-b2f7-d6bfd9ba2868/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 79336b43-e7ca-4947-8434-a23b3fd68d80
Content-Length: 653
X-Content-Type-Options: nosniff