Table Of Contents

Previous topic

vm.device.bind_choices

Next topic

vm.device.delete

vm.device.create

Create a new device for the VM of id vm.

If attributes.dtype is the RAW type and a new raw file is to be created, attributes.exists will be passed as false. This means the API handles creating the raw file and raises the appropriate exception if file creation fails.

If attributes.dtype is of DISK type and a new Zvol is to be created, attributes.create_zvol will be passed as true with valid attributes.zvol_name and attributes.zvol_volsize values.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: vm_device_create

vm_device_create

Type: object
No Additional Properties

Attributes


Type: object
Type: object
Type: object
Type: object
Type: object
Type: object
Type: object

Vm

Type: integer

Order

Default: null

Type: integer
Type: null

VMDeviceEntry

Type: object
No Additional Properties

Id

Type: integer

Attributes


Type: object
Type: object
Type: object
Type: object
Type: object
Type: object
Type: object

Vm

Type: integer

Order

Type: integer


Required roles: