Home
Version 3
Space Quota Definitions API

Space Quota Definitions API

Associate Space with the Space Quota Definition

PUT /v2/space_quota_definitions/:guid/spaces/:space_guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Space Quota Definition

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NSIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjF9.6uc1RrhtZeNhl24I9hIgVg-q0KibzxNCkp8NlpyZrbs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/space_quota_definitions/eccf8f70-5e3c-4f4a-aded-12901dd675d8/spaces/d3dcb7f4-5394-4bef-ba8e-8316821c79b4

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/eccf8f70-5e3c-4f4a-aded-12901dd675d8/spaces/d3dcb7f4-5394-4bef-ba8e-8316821c79b4" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NSIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjF9.6uc1RrhtZeNhl24I9hIgVg-q0KibzxNCkp8NlpyZrbs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e9a26f0f-2e91-4a64-b806-0001f4513e0f
Content-Length: 658
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "eccf8f70-5e3c-4f4a-aded-12901dd675d8",
    "url": "/v2/space_quota_definitions/eccf8f70-5e3c-4f4a-aded-12901dd675d8",
    "created_at": "2014-11-24T19:32:41+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-637",
    "organization_guid": "54fffbd8-0309-47d6-9e5a-6ccf50571e50",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/54fffbd8-0309-47d6-9e5a-6ccf50571e50",
    "spaces_url": "/v2/space_quota_definitions/eccf8f70-5e3c-4f4a-aded-12901dd675d8/spaces"
  }
}