Skip to content

upctl server storage attach

Attach a storage as a device to a server

upctl server storage attach <UUID/Title/Hostname...> [flags]

Examples

upctl server storage attach 00038afc-d526-4148-af0e-d2f1eeaded9b --storage 015899e0-0a68-4949-85bb-261a99de5fdd
upctl server storage attach 00038afc-d526-4148-af0e-d2f1eeaded9b --storage 01a5568f-4766-4ce7-abf5-7d257903a735 --address virtio:2
upctl server storage attach my_server1 --storage "My Storage"

Options

Option Description
--type Type of the attached storage. Available: disk, cdrom
Default: disk
--address Address where the storage device is attached on the server.
Address is of the form busname:deviceindex where busname can be ide/scsi/virtio. (example: 'virtio:1')
Specify only the bus name to auto-select next available device index from that bus. (example: 'virtio')
Default: virtio
--storage UUID of the storage to attach.
--boot-disk Set attached device as the server's boot disk.
--help, -h help for attach
Default: false

Global options

Option Description
--client-timeout, -t Client timeout to use in API calls.
Default: 0s
--config Configuration file path.
--debug Print out more verbose debug logs.
Default: false
--force-colours Force coloured output despite detected terminal support.
--no-colours Disable coloured output despite detected terminal support. Colours can also be disabled by setting NO_COLOR environment variable.
--output, -o Output format (supported: json, yaml and human)
Default: human
Command Description
upctl server storage Manage server storages