osc compute server volume-attachment create20
Attach a volume to an instance.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)
Usage: osc compute server volume-attachment create20 [OPTIONS] --volume-id <VOLUME_ID> <SERVER_ID>
Arguments:
<SERVER_ID>
— server_id parameter for /v2.1/servers/{server_id}/os-volume_attachments/{id} API
Options:
--device <DEVICE>
— Name of the device such as,/dev/vdb
. Omit or set this parameter to null for auto-assignment, if supported. If you specify this parameter, the device must not exist in the guest operating system. Note that as of the 12.0.0 Liberty release, the Nova libvirt driver no longer honors a user-supplied device name. This is the same behavior as if the device name parameter is not supplied on the request--volume-id <VOLUME_ID>
— The UUID of the volume to attach