v1

latestSwagger 2.0Apache 2.02026-07-17131416.5 KB

Creates or updates a drive.

Creates new drive with ID specified by drive_id path parameter. If a drive with the specified ID already exists, updates its state based on new input. Will fail if update is not possible.

put/drives/{drive_id}

Path parameters

drive_idstring required

The id of the guest drive

Request body

drive_idstring required
path_on_hoststring required

Host level path for the guest drive

is_root_deviceboolean required
partuuidstring

Represents the unique id of the boot partition of this device. It is optional and it will be taken into account only if the is_root_device field is true.

is_read_onlyboolean required

Response

Drive created/updated