Apache CloudStack 4.20.0.0 Root Admin API Reference

importUnmanagedInstance

Import unmanaged virtual machine from a given cluster.

Request parameters

Parameter NameDescriptionRequired
clusteridthe cluster IDtrue
namethe name of the instance as it is known to the hypervisortrue
serviceofferingidthe service offering for the virtual machinetrue
accountan optional account for the virtual machine. Must be used with domainId.false
datadiskofferinglistdatadisk template to disk-offering mapping using keys disk and diskOfferingfalse
detailsused to specify the custom parameters.false
displaynamethe display name of the instancefalse
domainidimport instance to the domain specifiedfalse
forcedVM is imported despite some of its NIC's MAC addresses are already present, in case the MAC address exists then a new MAC address is generatedfalse
hostnamethe host name of the instancefalse
migrateallowedvm and its volumes are allowed to migrate to different host/pool when offerings passed are incompatible with current host/poolfalse
nicipaddresslistVM nic to ip address mapping using keys nic, ip4Addressfalse
nicnetworklistVM nic to network id mapping using keys nic and networkfalse
projectidimport instance for the projectfalse
templateidthe ID of the template for the virtual machinefalse

Response Tags

Response NameDescription
idthe ID of the virtual machine
accountthe account associated with the virtual machine
autoscalevmgroupidID of AutoScale VM group
autoscalevmgroupnameName of AutoScale VM group
backupofferingidthe ID of the backup offering of the virtual machine
backupofferingnamethe name of the backup offering of the virtual machine
bootmodeGuest vm Boot Mode
boottypeGuest vm Boot Type
cpunumberthe number of vCPUs this virtual machine is using
cpuspeedthe speed of each vCPU
cpuusedthe amount of the vm's CPU currently used
createdthe date when this virtual machine was created
deleteprotectiontrue if vm has delete protection.
detailsVm details in key/value pairs.
diskioreadthe read (IO) of disk on the VM
diskiowritethe write (IO) of disk on the VM
diskkbsreadthe VM's disk read in KiB
diskkbswritethe VM's disk write in KiB
diskofferingidthe ID of the disk offering of the virtual machine. This parameter should not be used for retrieving disk offering details of DATA volumes. Use listVolumes API instead
diskofferingnamethe name of the disk offering of the virtual machine. This parameter should not be used for retrieving disk offering details of DATA volumes. Use listVolumes API instead
displaynameuser generated name. The name of the virtual machine is returned if no displayname exists.
displayvman optional field whether to the display the vm to the end user or not.
domainthe name of the domain in which the virtual machine exists
domainidthe ID of the domain in which the virtual machine exists
domainpathpath of the domain in which the virtual machine exists
forvirtualnetworkthe virtual network for the service offering
groupthe group name of the virtual machine
groupidthe group ID of the virtual machine
guestosidOs type ID of the virtual machine
haenabletrue if high-availability is enabled, false otherwise
hostcontrolstatethe control state of the host for the virtual machine
hostidthe ID of the host for the virtual machine
hostnamethe name of the host for the virtual machine
hypervisorthe hypervisor on which the template runs
iconBase64 string representation of the resource icon
instancenameinstance name of the user vm; this parameter is returned to the ROOT admin only
ipaddressthe VM's primary IP address
isdynamicallyscalabletrue if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory.
isodisplaytextan alternate display text of the ISO attached to the virtual machine
isoidthe ID of the ISO attached to the virtual machine
isonamethe name of the ISO attached to the virtual machine
keypairsssh key-pairs
lastupdatedthe date when this virtual machine was updated last time
memorythe memory allocated for the virtual machine
memoryintfreekbsthe internal memory (KiB) that's free in VM or zero if it can not be calculated
memorykbsthe memory used by the VM in KiB
memorytargetkbsthe target memory in VM (KiB)
namethe name of the virtual machine
networkkbsreadthe incoming network traffic on the VM in KiB
networkkbswritethe outgoing network traffic on the host in KiB
osdisplaynameOS name of the vm
ostypeidOS type id of the vm
passwordthe password (if exists) of the virtual machine
passwordenabledtrue if the password rest feature is enabled, false otherwise
pooltypethe pool type of the virtual machine
projectthe project name of the vm
projectidthe project id of the vm
publicippublic IP address id associated with vm via Static nat rule
publicipidpublic IP address id associated with vm via Static nat rule
readonlydetailsList of read-only Vm details as comma separated string.
receivedbytesthe total number of network traffic bytes received
rootdeviceiddevice ID of the root volume
rootdevicetypedevice type of the root volume
sentbytesthe total number of network traffic bytes sent
serviceofferingidthe ID of the service offering of the virtual machine
serviceofferingnamethe name of the service offering of the virtual machine
servicestateState of the Service from LB rule
statethe state of the virtual machine
templatedisplaytext an alternate display text of the template for the virtual machine
templateformatthe format of the template for the virtual machine
templateidthe ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file.
templatenamethe name of the template for the virtual machine
templatetypethe type of the template for the virtual machine
userdataBase64 string containing the user data
userdatadetailslist of variables and values for the variables declared in userdata
userdataidthe id of userdata used for the VM
userdatanamethe name of userdata used for the VM
userdatapolicythe userdata override policy with the userdata provided while deploying VM
useridthe user's ID who deployed the virtual machine
usernamethe user's name who deployed the virtual machine
vgputhe vGPU type used by the virtual machine
vmtypeUser VM type
vnfdetailsVNF details
vnfnicsNICs of the VNF appliance
zoneidthe ID of the availability zone for the virtual machine
zonenamethe name of the availability zone for the virtual machine
affinitygroup(*)list of affinity groups associated with the virtual machine
idthe ID of the affinity group
accountthe account owning the affinity group
dedicatedresourcesdedicated resources associated with this affinity group
descriptionthe description of the affinity group
domainthe domain name of the affinity group
domainidthe domain ID of the affinity group
domainpathpath of the Domain the affinity group belongs to
namethe name of the affinity group
projectthe project name of the affinity group
projectidthe project ID of the affinity group
typethe type of the affinity group
virtualmachineIdsvirtual machine IDs associated with this affinity group
nic(*)the list of nics associated with vm
idthe ID of the nic
adaptertypeType of adapter if available
broadcasturithe broadcast uri of the nic
deviceiddevice id for the network when plugged into the virtual machine
extradhcpoptionthe extra dhcp options on the nic
gatewaythe gateway of the nic
ip6addressthe IPv6 address of network
ip6cidrthe cidr of IPv6 network
ip6gatewaythe gateway of IPv6 network
ipaddressthe ip address of the nic
ipaddressesIP addresses associated with NIC found for unmanaged VM
isdefaulttrue if nic is default, false otherwise
isolatedpvlanthe isolated private VLAN if available
isolatedpvlantypethe isolated private VLAN type if available
isolationurithe isolation uri of the nic
macaddresstrue if nic is default, false otherwise
mtuMTU configured on the NIC
netmaskthe netmask of the nic
networkidthe ID of the corresponding network
networknamethe name of the corresponding network
nsxlogicalswitchId of the NSX Logical Switch (if NSX based), null otherwise
nsxlogicalswitchportId of the NSX Logical Switch Port (if NSX based), null otherwise
publicippublic IP address associated with this nic via Static nat rule
publicipidpublic IP address id associated with this nic via Static nat rule
secondaryipthe Secondary ipv4 addr of nic
traffictypethe traffic type of the nic
typethe type of the nic
virtualmachineidId of the vm to which the nic belongs
vlanidID of the VLAN/VNI if available
vpcidId of the vpc to which the nic belongs
vpcnamename of the vpc to which the nic belongs
securitygroup(*)list of security groups associated with the virtual machine
idthe ID of the security group
accountthe account owning the security group
descriptionthe description of the security group
domainthe domain name of the security group
domainidthe domain ID of the security group
domainpathpath of the Domain the security group belongs to
namethe name of the security group
projectthe project name of the group
projectidthe project id of the group
virtualmachinecountthe number of virtualmachines associated with this securitygroup
virtualmachineidsthe list of virtualmachine ids associated with this securitygroup
egressrule(*)the list of egress rules associated with the security group
accountaccount owning the security group rule
cidrthe CIDR notation for the base IP address of the security group rule
endportthe ending IP of the security group rule
icmpcodethe code for the ICMP message response
icmptypethe type of the ICMP message response
protocolthe protocol of the security group rule
ruleidthe id of the security group rule
securitygroupnamesecurity group name
startportthe starting IP of the security group rule
tags(*)the list of resource tags associated with the rule
ingressrule(*)the list of ingress rules associated with the security group
accountaccount owning the security group rule
cidrthe CIDR notation for the base IP address of the security group rule
endportthe ending IP of the security group rule
icmpcodethe code for the ICMP message response
icmptypethe type of the ICMP message response
protocolthe protocol of the security group rule
ruleidthe id of the security group rule
securitygroupnamesecurity group name
startportthe starting IP of the security group rule
tags(*)the list of resource tags associated with the rule
tags(*)the list of resource tags associated with the rule
accountthe account associated with the tag
customercustomer associated with the tag
domainthe domain associated with the tag
domainidthe ID of the domain associated with the tag
domainpathpath of the Domain associated with the tag
keytag key name
projectthe project name where tag belongs to
projectidthe project id the tag belongs to
resourceidid of the resource
resourcetyperesource type
valuetag value
jobidthe ID of the latest async job acting on this object
jobstatusthe current status of the latest async job acting on this object
jobidthe ID of the latest async job acting on this object
jobstatusthe current status of the latest async job acting on this object