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.
|
|
|
|
non_basic_services_allowed
|
If a space can have non basic services
|
|
|
|
total_services
|
How many services a space can have.
|
|
|
|
total_routes
|
How many routes a space can have.
|
|
|
|
memory_limit
|
How much memory in megabytes a space can have.
|
|
|
|
instance_memory_limit
|
The maximum amount of memory in megabytes an application instance can have. (-1 represents an unlimited amount)
|
-1
|
|
|
organization_guid
|
The owning organization of the space quota
|
|
|
- guid-e67f0bb7-c70b-4429-8233-c52c81ff61bf
|
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space Quota Definition
|
|
|
Request
Headers
Route
PUT /v2/space_quota_definitions/7dd080aa-3f63-4712-acd7-cc58543acbce
Body
{
}
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/7dd080aa-3f63-4712-acd7-cc58543acbce" -d '{
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NSIsImVtYWlsIjoiZW1haWwtMjY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzl9.JOcc-idwS2gw_3DZlUqhU-xchFkKUpx1S_VZZzDXdA4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "7dd080aa-3f63-4712-acd7-cc58543acbce",
"url": "/v2/space_quota_definitions/7dd080aa-3f63-4712-acd7-cc58543acbce",
"created_at": "2015-02-10T01:42:59Z",
"updated_at": "2015-02-10T01:42:59Z"
},
"entity": {
"name": "name-1969",
"organization_guid": "d87e4b4c-d33d-465c-85b4-85ff5e750eac",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"organization_url": "/v2/organizations/d87e4b4c-d33d-465c-85b4-85ff5e750eac",
"spaces_url": "/v2/space_quota_definitions/7dd080aa-3f63-4712-acd7-cc58543acbce/spaces"
}
}