Set allocator metadata
Sets the allocator metadata.
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.
Responses
-
The allocator metadata was successfully changed (the updated JSON is returned)
-
The value specified is empty for at least one of the metadata tags. (code:
allocators.invalid_empty_metadata_items
) -
The allocator specified by {allocator_id} cannot be found. (code:
allocators.allocator_not_found
)
PUT /platform/infrastructure/allocators/{allocator_id}/metadata
curl \
-X PUT https://{{hostname}}/api/v1/platform/infrastructure/allocators/{allocator_id}/metadata \
-d '{"items":[{"key":"string","value":"string"}]}'
Request examples
{
"items": [
{
"key": "string",
"value": "string"
}
]
}
Response examples (200)
[
{
"key": "string",
"value": "string"
}
]
Response examples (400)
# Headers
x-cloud-error-codes: allocators.invalid_empty_metadata_items
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: allocators.allocator_not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}