Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/d5a3fdab-0fc4-4b4f-8cd5-cc4adb33b295
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.
|
|
|
|
non_basic_services_allowed
|
If a space can have non basic services
|
|
|
|
total_services
|
How many services a space can have. (-1 represents an unlimited amount)
|
|
|
|
total_routes
|
How many routes a space can have. (-1 represents an unlimited amount)
|
|
|
|
memory_limit
|
How much memory in megabytes a space can have.
|
|
|
|
total_service_keys
|
How many service keys an organization can have. (-1 represents an unlimited amount)
|
-1
|
|
|
instance_memory_limit
|
The maximum amount of memory in megabytes an application instance can have. (-1 represents an unlimited amount)
|
-1
|
|
|
app_instance_limit
|
How many app instances a space can create. (-1 represents an unlimited amount)
|
-1
|
|
|
organization_guid
|
The owning organization of the space quota
|
|
|
- guid-04f3f303-1a0f-4a99-bbc0-2ab427de2efa
|
app_task_limit
|
The number of tasks that can be run per app. (-1 represents an unlimited amount)
|
5
|
|
|
{
"name": "new_name"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/d5a3fdab-0fc4-4b4f-8cd5-cc4adb33b295" -d '{
"name": "new_name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2M30.RV1eUDh3rvf0T12oNrubwUr6pAgvpMs-oCldJujBJ8E" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "d5a3fdab-0fc4-4b4f-8cd5-cc4adb33b295",
"url": "/v2/space_quota_definitions/d5a3fdab-0fc4-4b4f-8cd5-cc4adb33b295",
"created_at": "2016-03-17T21:41:03Z",
"updated_at": "2016-03-17T21:41:03Z"
},
"entity": {
"name": "new_name",
"organization_guid": "e7089b27-c4a4-4607-b770-58be34ce2f70",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"app_instance_limit": -1,
"app_task_limit": 5,
"total_service_keys": 600,
"organization_url": "/v2/organizations/e7089b27-c4a4-4607-b770-58be34ce2f70",
"spaces_url": "/v2/space_quota_definitions/d5a3fdab-0fc4-4b4f-8cd5-cc4adb33b295/spaces"
}
}
Headers