VM

Attach storage to a virtual machine

Create or import and attach a storage device to a shut-off virtual machine

post/vm/{rid}/storage

Path parameters

ridinteger required

Virtual Machine RID

Request body

attachType'import' | 'new' required
bootOrderinteger
datasetstring
downloadUUIDstring
emulation'virtio-blk' | 'virtio-9p' | 'ahci-hd' | 'ahci-cd' | 'nvme' required
filesystemTargetstring
namestring
poolstring
rawPathstring
readOnlyboolean
recordSizeinteger
sizeinteger
storageType'raw' | 'zvol' | 'image' | 'filesystem' | 'none' required
volBlockSizeinteger

Response

Created

errorstring
messagestring
statusstring

Changes

Changed in 1 of the 42 revisions of this API.1