osc compute server volume-attachment set285
Update a volume attachment.
Policy default role is ‘rule:system_admin_or_owner’, its scope is [system, project], which allow project members or system admins to change the fields of an attached volume of a server. Policy defaults enable only users with the administrative role to change volumeId
via this operation. Cloud providers can change these permissions through the policy.json
file.
Updating, or what is commonly referred to as “swapping”, volume attachments with volumes that have more than one read/write attachment, is not supported.
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> <SERVER_ID> <ID>
Arguments:
<SERVER_ID>
— server_id parameter for /v2.1/servers/{server_id}/os-volume_attachments/{id} API<ID>
— 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
-
--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 ornull
.New in version 2.85
-
--volume-id <VOLUME_ID>
— The UUID of the volume to attach instead of the attached volume