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/ba639fa0-60dc-4af2-a62c-ba2f0d2216d6/spaces/bd18960e-e980-448e-b995-df49dddad541

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTB9.YSJia-onqIX4tOw-DwFJss1K5jZsnn6RcYJ0F2gzqwQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/ba639fa0-60dc-4af2-a62c-ba2f0d2216d6/spaces/bd18960e-e980-448e-b995-df49dddad541" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTB9.YSJia-onqIX4tOw-DwFJss1K5jZsnn6RcYJ0F2gzqwQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ba639fa0-60dc-4af2-a62c-ba2f0d2216d6",
    "url": "/v2/space_quota_definitions/ba639fa0-60dc-4af2-a62c-ba2f0d2216d6",
    "created_at": "2015-03-10T23:11:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-762",
    "organization_guid": "26a7fc57-bce9-4f52-820c-6faa54c4ebcc",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/26a7fc57-bce9-4f52-820c-6faa54c4ebcc",
    "spaces_url": "/v2/space_quota_definitions/ba639fa0-60dc-4af2-a62c-ba2f0d2216d6/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d4fd3011-e2a3-4903-a071-24ad8bc4b720
Content-Length: 653
X-Content-Type-Options: nosniff