latestSwagger 2.0BSD-2-Clauseraw.githubusercontent.com2026-08-183895921.5 MB

7a7bea85004e

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