Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/40d2be1c-311d-495b-912f-af0e220d40f8
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.
|
|
|
|
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-ac03f635-499e-4442-912c-e02a6a99fc52
|
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/40d2be1c-311d-495b-912f-af0e220d40f8" -d '{
"name": "new_name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzd9.1Ur-NhnVVMpKoGzkiLy4Ni5XuCEN_yFRToehs25Yonw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "40d2be1c-311d-495b-912f-af0e220d40f8",
"url": "/v2/space_quota_definitions/40d2be1c-311d-495b-912f-af0e220d40f8",
"created_at": "2016-02-19T02:03:57Z",
"updated_at": "2016-02-19T02:03:57Z"
},
"entity": {
"name": "new_name",
"organization_guid": "10270df2-ae44-45d7-bd1c-1608d013119e",
"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,
"organization_url": "/v2/organizations/10270df2-ae44-45d7-bd1c-1608d013119e",
"spaces_url": "/v2/space_quota_definitions/40d2be1c-311d-495b-912f-af0e220d40f8/spaces"
}
}
Headers