Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/2a675e1d-2eeb-4d25-9411-5bcd8ef199a9
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.
|
|
|
|
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-4d2b4f40-9762-48c6-b197-f4e91f600a9d
|
{
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/2a675e1d-2eeb-4d25-9411-5bcd8ef199a9" -d '{
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ3fQ.dp3JSfNea6xs8x7ziF2cuBXLr2_-FNwumB8DNPqY-rs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "2a675e1d-2eeb-4d25-9411-5bcd8ef199a9",
"url": "/v2/space_quota_definitions/2a675e1d-2eeb-4d25-9411-5bcd8ef199a9",
"created_at": "2015-06-16T23:40:47Z",
"updated_at": "2015-06-16T23:40:47Z"
},
"entity": {
"name": "name-393",
"organization_guid": "8fcce0d3-cd93-4e40-9fab-b21abb0fd023",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"organization_url": "/v2/organizations/8fcce0d3-cd93-4e40-9fab-b21abb0fd023",
"spaces_url": "/v2/space_quota_definitions/2a675e1d-2eeb-4d25-9411-5bcd8ef199a9/spaces"
}
}
Headers