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/fd34d6bf-2af6-42db-a9c6-57fb3325076e

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
organization_guid The owning organization of the space quota
  • guid-1d959a47-3711-40c1-8c4e-3827b340d5eb
{

}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/fd34d6bf-2af6-42db-a9c6-57fb3325076e" -d '{

}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc5IiwiZW1haWwiOiJlbWFpbC03OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA5fQ.xyHQ73N_XY_RzS1AhFknpLnmVbHOBRBISYD1JPR0y4I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fd34d6bf-2af6-42db-a9c6-57fb3325076e",
    "url": "/v2/space_quota_definitions/fd34d6bf-2af6-42db-a9c6-57fb3325076e",
    "created_at": "2015-05-15T16:53:29Z",
    "updated_at": "2015-05-15T16:53:29Z"
  },
  "entity": {
    "name": "name-360",
    "organization_guid": "faeef9db-9c5c-459f-928b-5c59d878ea47",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/faeef9db-9c5c-459f-928b-5c59d878ea47",
    "spaces_url": "/v2/space_quota_definitions/fd34d6bf-2af6-42db-a9c6-57fb3325076e/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 29247889-1f50-49d7-91dc-6bbc45ad48e7
Content-Length: 671
X-Content-Type-Options: nosniff