Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/8dc51868-ab03-4c1a-a961-a60e35019523
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)
|
|
|
|
total_reserved_route_ports
|
How many routes a space can have that use a reserved port. These routes count toward total_routes. (-1 represents an unlimited amount; subject to org quota)
|
-1
|
|
|
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-b64de476-2272-4f7c-a16c-7ddac58beca0
|
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/8dc51868-ab03-4c1a-a961-a60e35019523" -d '{
"name": "new_name"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzNCIsImVtYWlsIjoiZW1haWwtMjk2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjl9.hqs5YZ5uM2M90HGqhd3uTSd0wCHfro3Ox29JL7luWYQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8dc51868-ab03-4c1a-a961-a60e35019523",
"url": "/v2/space_quota_definitions/8dc51868-ab03-4c1a-a961-a60e35019523",
"created_at": "2016-05-12T00:45:29Z",
"updated_at": "2016-05-12T00:45:29Z"
},
"entity": {
"name": "new_name",
"organization_guid": "a4138f61-0b02-4d3a-a413-e68a47320bea",
"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,
"total_reserved_route_ports": -1,
"organization_url": "/v2/organizations/a4138f61-0b02-4d3a-a413-e68a47320bea",
"spaces_url": "/v2/space_quota_definitions/8dc51868-ab03-4c1a-a961-a60e35019523/spaces"
}
}
Headers