Home
Version 3
Space Quota Definitions API

Space Quota Definitions API

Updating a Space Quota Definition

PUT /v2/space_quota_definitions/:guid

Request

Route

PUT /v2/space_quota_definitions/be45d565-8a5b-4a8c-b9f1-dfa0f67819bb

Parameters

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

Body

Name Description Default Valid Values Example Values
name The name for the Space Quota Definition.
  • gold_quota
non_basic_services_allowed If a space can have non basic services
  • true
  • false
total_services How many services a space can have.
  • 5
  • 201
total_routes How many routes a space can have.
  • 10
  • 23
memory_limit How much memory in megabytes a space can have.
  • 5120
  • 10024
instance_memory_limit The maximum amount of memory in megabytes an application instance can have. (-1 represents an unlimited amount) -1
  • -1
  • 10024
app_instance_limit How many app instances a space can create. (-1 represents an unlimited amount) -1
  • -1
  • 10
  • 23
organization_guid The owning organization of the space quota
  • guid-14a02b07-fe03-403d-ae87-06ef501fb45f
{
  "name": "new_name"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NiIsImVtYWlsIjoiZW1haWwtMjU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTd9.V2VDL-mLbE6kyaPma43wS8DnHyb4f8p3enbwEfapXcI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/be45d565-8a5b-4a8c-b9f1-dfa0f67819bb" -d '{
  "name": "new_name"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NiIsImVtYWlsIjoiZW1haWwtMjU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTd9.V2VDL-mLbE6kyaPma43wS8DnHyb4f8p3enbwEfapXcI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "be45d565-8a5b-4a8c-b9f1-dfa0f67819bb",
    "url": "/v2/space_quota_definitions/be45d565-8a5b-4a8c-b9f1-dfa0f67819bb",
    "created_at": "2015-12-22T18:28:17Z",
    "updated_at": "2015-12-22T18:28:17Z"
  },
  "entity": {
    "name": "new_name",
    "organization_guid": "f0f40aca-1420-4482-aac4-bcca5eacb42b",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "app_instance_limit": -1,
    "organization_url": "/v2/organizations/f0f40aca-1420-4482-aac4-bcca5eacb42b",
    "spaces_url": "/v2/space_quota_definitions/be45d565-8a5b-4a8c-b9f1-dfa0f67819bb/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 701
X-Content-Type-Options: nosniff