Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/c0465a1e-28a6-4f33-bb97-505dc2b2adae
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-28c57e8b-cbfe-40fc-8f0b-d3c1eb208e23
|
{
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/c0465a1e-28a6-4f33-bb97-505dc2b2adae" -d '{
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NiIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTB9.H_fCFeOf3Hbn6VEogWkOtXiBu1k-E99swLVTVVw5HoE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "c0465a1e-28a6-4f33-bb97-505dc2b2adae",
"url": "/v2/space_quota_definitions/c0465a1e-28a6-4f33-bb97-505dc2b2adae",
"created_at": "2015-03-10T23:11:50Z",
"updated_at": "2015-03-10T23:11:50Z"
},
"entity": {
"name": "name-759",
"organization_guid": "b74fe58e-bc83-4103-81af-416e446f4fb0",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"organization_url": "/v2/organizations/b74fe58e-bc83-4103-81af-416e446f4fb0",
"spaces_url": "/v2/space_quota_definitions/c0465a1e-28a6-4f33-bb97-505dc2b2adae/spaces"
}
}
Headers