Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/57fbfc51-3be8-47ef-bf75-53756ebbfb36
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-5ce649f9-d3b5-4c7d-9ee9-d79dbd5afdf3
|
{
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/57fbfc51-3be8-47ef-bf75-53756ebbfb36" -d '{
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC0zNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMxNjQ2NjI5fQ.pMML0dnfFFouXe13NwpoObOtMcmnKX0B0mO4muQmMuY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "57fbfc51-3be8-47ef-bf75-53756ebbfb36",
"url": "/v2/space_quota_definitions/57fbfc51-3be8-47ef-bf75-53756ebbfb36",
"created_at": "2015-05-07T23:37:09Z",
"updated_at": "2015-05-07T23:37:09Z"
},
"entity": {
"name": "name-933",
"organization_guid": "051e4ace-db59-4235-9c2b-b60d5d8e7bc7",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"organization_url": "/v2/organizations/051e4ace-db59-4235-9c2b-b60d5d8e7bc7",
"spaces_url": "/v2/space_quota_definitions/57fbfc51-3be8-47ef-bf75-53756ebbfb36/spaces"
}
}
Headers