Apache CloudStack 4.20.0.0 Root Admin API Reference
importVolume
Import an unmanaged volume from a storage pool on a host into CloudStack
Request parameters
Parameter Name | Description | Required |
path | the path of the volume | true |
storageid | the ID of the storage pool | true |
account | an optional account for the volume. Must be used with domainId. | false |
diskofferingid | the ID of the disk offering linked to the volume | false |
domainid | import volume to the domain specified | false |
name | the name of the volume. If not set, it will be set to the path of the volume. | false |
projectid | import volume for the project | false |
Response Tags
Response Name | Description |
id | ID of the disk volume |
account | the account associated with the disk volume |
attached | the date the volume was attached to a VM instance |
chaininfo | the chain info of the volume |
clusterid | cluster id of the volume |
clustername | cluster name where the volume is allocated |
created | the date the disk volume was created |
deleteprotection | true if volume has delete protection. |
destroyed | the boolean state of whether the volume is destroyed or not |
deviceid | the ID of the device on user vm the volume is attahed to. This tag is not returned when the volume is detached. |
diskBytesReadRate | bytes read rate of the disk volume |
diskBytesWriteRate | bytes write rate of the disk volume |
diskIopsReadRate | IO requests read rate of the disk volume per the disk offering |
diskIopsWriteRate | IO requests write rate of the disk volume per the disk offering |
diskioread | the read (IO) of disk on the vm |
diskiowrite | the write (IO) of disk on the vm |
diskkbsread | the VM's disk read in KiB |
diskkbswrite | the VM's disk write in KiB |
diskofferingdisplaytext | the display text of the disk offering |
diskofferingid | ID of the disk offering |
diskofferingname | name of the disk offering |
displayvolume | an optional field whether to the display the volume to the end user or not. |
domain | the domain associated with the disk volume |
domainid | the ID of the domain associated with the disk volume |
domainpath | path of the Domain the disk volume belongs to |
encryptformat | the format of the disk encryption if applicable |
externaluuid | volume uuid that is given by virtualisation provider (only for VMware) |
hypervisor | Hypervisor the volume belongs to |
isextractable | true if the volume is extractable, false otherwise |
isodisplaytext | an alternate display text of the ISO attached to the virtual machine |
isoid | the ID of the ISO attached to the virtual machine |
isoname | the name of the ISO attached to the virtual machine |
maxiops | max iops of the disk volume |
miniops | min iops of the disk volume |
name | name of the disk volume |
path | the path of the volume |
physicalsize | the bytes actually consumed on disk |
podid | pod id of the volume |
podname | pod name of the volume |
project | the project name of the vpn |
projectid | the project id of the vpn |
provisioningtype | provisioning type used to create volumes. |
quiescevm | need quiesce vm or not when taking snapshot |
serviceofferingdisplaytext | the display text of the service offering for root disk |
serviceofferingid | ID of the service offering for root disk |
serviceofferingname | name of the service offering for root disk |
size | size of the disk volume |
snapshotid | ID of the snapshot from which this volume was created |
state | the state of the disk volume |
status | the status of the volume |
storage | name of the primary storage hosting the disk volume |
storageid | id of the primary storage hosting the disk volume; returned to admin user only |
storagetype | shared or local storage |
supportsstoragesnapshot | true if storage snapshot is supported for the volume, false otherwise |
templatedisplaytext | an alternate display text of the template for the virtual machine |
templateid | the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file. |
templatename | the name of the template for the virtual machine |
type | type of the disk volume (ROOT or DATADISK) |
utilization | the disk utilization |
virtualmachineid | id of the virtual machine |
virtualsize | the bytes allocated |
vmdisplayname | display name of the virtual machine |
vmname | name of the virtual machine |
vmstate | state of the virtual machine |
vmtype | type of the virtual machine |
volumecheckresult | details for the volume check result, they may vary for different hypervisors |
volumerepairresult | details for the volume repair result, they may vary for different hypervisors |
zoneid | ID of the availability zone |
zonename | name of the availability zone |
jobid | the ID of the latest async job acting on this object |
jobstatus | the current status of the latest async job acting on this object |