osc compute server volume-attachment set285

Update a volume attachment.

Policy default role is ‘rule:admin_or_owner’, its scope is [project], which allow project members or admins to change the fields of an attached volume of a server. Cloud providers can change these permissions through the policy.yaml file.

Normal response codes: 202

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

Usage: osc compute server volume-attachment set285 [OPTIONS] --volume-id <VOLUME_ID> <ID> <SERVER_ID>

Arguments:

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

Options:

  • --delete-on-termination <DELETE_ON_TERMINATION> — A flag indicating if the attached volume will be deleted when the server is deleted.

    New in version 2.85

    Possible values: true, false

  • --device <DEVICE> — Name of the device in the attachment object, such as, /dev/vdb.

    New in version 2.85

  • --no-device — Set explicit NULL for the device

  • --id <ID> — The UUID of the attachment.

    New in version 2.85

  • --server-id <SERVER_ID> — The UUID of the server.

    New in version 2.85

  • --tag <TAG> — The device tag applied to the volume block device or null.

    New in version 2.85

  • --volume-id <VOLUME_ID> — The UUID of the attached volume