Home
Version 3
Space Quota Definitions API

Space Quota Definitions API

Updating a Space Quota Definition

PUT /v2/space_quota_definitions/:guid

Fields

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
organization_guid The owning organization of the space quota
  • guid-62d4bffe-83d1-4864-91dd-3a760b43f632

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMxfQ.tHcWDLaVmPb7sMYQhltV4qkemTPn_2w5xGkJlRCJiRQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/space_quota_definitions/9097b426-9190-4444-92c2-3344fef368e2

Body

{

}

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/9097b426-9190-4444-92c2-3344fef368e2" -d '{

}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMxfQ.tHcWDLaVmPb7sMYQhltV4qkemTPn_2w5xGkJlRCJiRQ" \
	-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: ab89f01d-eba0-4493-aeae-98247b5f2835
Content-Length: 680
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "9097b426-9190-4444-92c2-3344fef368e2",
    "url": "/v2/space_quota_definitions/9097b426-9190-4444-92c2-3344fef368e2",
    "created_at": "2014-11-05T01:02:11+00:00",
    "updated_at": "2014-11-05T01:02:11+00:00"
  },
  "entity": {
    "name": "name-97",
    "organization_guid": "33d48d22-bc2c-4e50-8d51-cecb2fa636ae",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/33d48d22-bc2c-4e50-8d51-cecb2fa636ae",
    "spaces_url": "/v2/space_quota_definitions/9097b426-9190-4444-92c2-3344fef368e2/spaces"
  }
}