Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Fields
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-93214aab-f5c9-45f4-83c8-697f857d25e4
|
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space Quota Definition
|
|
|
Request
Headers
Route
PUT /v2/space_quota_definitions/8695151c-fa40-4095-9723-4eec7fd721be
Body
{
}
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/8695151c-fa40-4095-9723-4eec7fd721be" -d '{
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MSIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDJ9.-PBLI1_BCtgiUeY72A4zK-5SWazhdChGLfNBd5ZbMwc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "8695151c-fa40-4095-9723-4eec7fd721be",
"url": "/v2/space_quota_definitions/8695151c-fa40-4095-9723-4eec7fd721be",
"created_at": "2015-01-20T01:52:22+00:00",
"updated_at": "2015-01-20T01:52:22+00:00"
},
"entity": {
"name": "name-1378",
"organization_guid": "25b45d02-a493-4f93-b924-6865101c01c6",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"organization_url": "/v2/organizations/25b45d02-a493-4f93-b924-6865101c01c6",
"spaces_url": "/v2/space_quota_definitions/8695151c-fa40-4095-9723-4eec7fd721be/spaces"
}
}