Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

osc compute server metadata set

Creates or replaces a metadata item, by key, for a server.

Creates a metadata item that does not already exist in the server. Replaces existing metadata items that match keys with the metadata item 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.yaml file.

Normal response codes: 200

Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)

Usage: osc compute server metadata set [OPTIONS] <ID> <SERVER_ID>

Arguments:

  • <ID> — id parameter for /v2.1/servers/{server_id}/metadata/{id} API
  • <SERVER_ID> — server_id parameter for /v2.1/servers/{server_id}/metadata/{id} API

Options:

  • --meta <key=value>