Updating a Space Quota Definition
PUT /v2/space_quota_definitions/:guid
Request
Route
PUT /v2/space_quota_definitions/6e23b4a7-0ab6-4b37-9f49-9f65c42e3496
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-dbe809b4-faba-46be-86ae-121ebf17f715
|
{
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/space_quota_definitions/6e23b4a7-0ab6-4b37-9f49-9f65c42e3496" -d '{
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTkyfQ.Q_780Qem7Yf9xKi1BotK4Q62uyULv_HKRzApSWU9G4Q" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6e23b4a7-0ab6-4b37-9f49-9f65c42e3496",
"url": "/v2/space_quota_definitions/6e23b4a7-0ab6-4b37-9f49-9f65c42e3496",
"created_at": "2015-08-06T00:36:32Z",
"updated_at": "2015-08-06T00:36:32Z"
},
"entity": {
"name": "name-39",
"organization_guid": "227dbe76-b7f0-45cc-8c22-14639a9af066",
"non_basic_services_allowed": true,
"total_services": 60,
"total_routes": 1000,
"memory_limit": 20480,
"instance_memory_limit": -1,
"organization_url": "/v2/organizations/227dbe76-b7f0-45cc-8c22-14639a9af066",
"spaces_url": "/v2/space_quota_definitions/6e23b4a7-0ab6-4b37-9f49-9f65c42e3496/spaces"
}
}
Headers