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-096a91c1-b665-4d77-83a2-811717c6f494

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NCIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjF9.QZ8_E5pHR3gsI1CgGiLov3AfaN-jX6Y7vGNRuqx1e8g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/space_quota_definitions/59c152f8-2b02-4088-a8e4-bf6c8e4d6658

Body

{

}

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/59c152f8-2b02-4088-a8e4-bf6c8e4d6658" -d '{

}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NCIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjF9.QZ8_E5pHR3gsI1CgGiLov3AfaN-jX6Y7vGNRuqx1e8g" \
	-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: d8bed16c-0572-489c-9daa-3857b85737e3
Content-Length: 681
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "59c152f8-2b02-4088-a8e4-bf6c8e4d6658",
    "url": "/v2/space_quota_definitions/59c152f8-2b02-4088-a8e4-bf6c8e4d6658",
    "created_at": "2014-11-24T19:32:41+00:00",
    "updated_at": "2014-11-24T19:32:41+00:00"
  },
  "entity": {
    "name": "name-634",
    "organization_guid": "7bb4e732-0c30-4bc3-94c5-81257fc39f9f",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/7bb4e732-0c30-4bc3-94c5-81257fc39f9f",
    "spaces_url": "/v2/space_quota_definitions/59c152f8-2b02-4088-a8e4-bf6c8e4d6658/spaces"
  }
}