Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/a46ba2b5-c22b-4110-b85b-d335243b1aa7
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
|
|
|
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-c95e23f5-cab4-4aa0-a461-e0196a57e562
|
{
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/a46ba2b5-c22b-4110-b85b-d335243b1aa7" -d '{
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NCIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDJ9.NvxjfNHNplg9JQLx-VnNmti_gIsMQUbgP4w-ZmSCJTg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a46ba2b5-c22b-4110-b85b-d335243b1aa7",
"url": "/v2/space_quota_definitions/a46ba2b5-c22b-4110-b85b-d335243b1aa7",
"created_at": "2015-10-13T17:31:42Z",
"updated_at": "2015-10-13T17:31:42Z"
},
"entity": {
"name": "name-390",
"organization_guid": "d93dc680-44e0-4729-adef-a1bf75c91076",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"app_instance_limit": -1,
"organization_url": "/v2/organizations/d93dc680-44e0-4729-adef-a1bf75c91076",
"spaces_url": "/v2/space_quota_definitions/a46ba2b5-c22b-4110-b85b-d335243b1aa7/spaces"
}
}
Headers