Set allocator settings
Overwrites the allocator settings with the specified settings. WARNING: Any unspecified fields are deleted.
Path parameters
-
The allocator identifier.
Query parameters
-
version string
Checks for conflicts against the metadata version, then returns the value in the
x-cloud-resource-version
header.
PUT
/platform/infrastructure/allocators/{allocator_id}/settings
curl \
-X PUT https://{{hostname}}/api/v1/platform/infrastructure/allocators/{allocator_id}/settings \
-d '{"capacity":42}'
Request examples
{
"capacity": 42
}
Response examples (200)
{
"capacity": 42
}
Response examples (404)
# Headers
x-cloud-error-codes: allocators.allocator_not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}