Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/c4daae03-12c1-4bc1-8d64-cc89c0a5292f
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-9bfef7e9-9942-4b46-ae26-154cfde1e590
|
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/c4daae03-12c1-4bc1-8d64-cc89c0a5292f" -d '{
"name": "new_name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5IiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM3fQ.YSeGreKvSUcL48-Sv738f9xkHaWTpKcjv8ak3Jl_OLA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "c4daae03-12c1-4bc1-8d64-cc89c0a5292f",
"url": "/v2/space_quota_definitions/c4daae03-12c1-4bc1-8d64-cc89c0a5292f",
"created_at": "2016-04-06T00:17:17Z",
"updated_at": "2016-04-06T00:17:17Z"
},
"entity": {
"name": "new_name",
"organization_guid": "7c11dcfd-106d-420f-ba5f-8219766581a0",
"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/7c11dcfd-106d-420f-ba5f-8219766581a0",
"spaces_url": "/v2/space_quota_definitions/c4daae03-12c1-4bc1-8d64-cc89c0a5292f/spaces"
}
}
Headers