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-8dd3b67c-0d5e-4638-9f8f-17540bff23fb
|
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space Quota Definition
|
|
|
Request
Headers
Route
PUT /v2/space_quota_definitions/c3079edd-c71b-4fdf-b80f-1e3c23e918b1
Body
{
}
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/c3079edd-c71b-4fdf-b80f-1e3c23e918b1" -d '{
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4Nzh9.BbYuF9x7Az6_dJKcTtLHeCFYFoC8M3G64bW371yGzKs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "c3079edd-c71b-4fdf-b80f-1e3c23e918b1",
"url": "/v2/space_quota_definitions/c3079edd-c71b-4fdf-b80f-1e3c23e918b1",
"created_at": "2015-01-27T19:14:38Z",
"updated_at": "2015-01-27T19:14:38Z"
},
"entity": {
"name": "name-1547",
"organization_guid": "710e193a-693f-46d4-8813-30b782f5253a",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"organization_url": "/v2/organizations/710e193a-693f-46d4-8813-30b782f5253a",
"spaces_url": "/v2/space_quota_definitions/c3079edd-c71b-4fdf-b80f-1e3c23e918b1/spaces"
}
}