osc compute server metadata replace
Replaces one or more metadata items for a server.
Creates any metadata items that do not already exist in the server. Removes and completely replaces any metadata items that already exist in the server with the metadata items in the request.
Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the policy.json
file.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)
Usage: osc compute server metadata replace [OPTIONS] <SERVER_ID>
Arguments:
<SERVER_ID>
— server_id parameter for /v2.1/servers/{server_id}/metadata/{id} API
Options:
--metadata <key=value>
— Metadata key and value pairs. The maximum size for each metadata key and value pair is 255 bytes