osc compute server volume-attachment set20
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 set20 --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:
--volume-id <VOLUME_ID>
— The UUID of the volume to attach instead of the attached volume