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/c85aa7ff-ba5b-43cb-86a9-4d220b3c94f0/spaces/d43d8090-7428-447d-b45a-647fc1a3f2b0

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/c85aa7ff-ba5b-43cb-86a9-4d220b3c94f0/spaces/d43d8090-7428-447d-b45a-647fc1a3f2b0" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OSIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTN9.gJjMoiFlNf4DT9HxnYN7WusDskciYw_JNIGvVhficKQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c85aa7ff-ba5b-43cb-86a9-4d220b3c94f0",
    "url": "/v2/space_quota_definitions/c85aa7ff-ba5b-43cb-86a9-4d220b3c94f0",
    "created_at": "2015-07-27T22:43:33Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2260",
    "organization_guid": "78aea572-14b0-4ce3-ab5e-5285fd6b7c92",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/78aea572-14b0-4ce3-ab5e-5285fd6b7c92",
    "spaces_url": "/v2/space_quota_definitions/c85aa7ff-ba5b-43cb-86a9-4d220b3c94f0/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ecfbfa34-f103-4b33-8d62-40d4cac49c58
Content-Length: 654
X-Content-Type-Options: nosniff