Apache CloudStack 4.23.0.0 Root Admin API Reference

updateDefaultNicForVirtualMachine

Changes the default NIC on an Instance

Request parameters

Parameter NameDescriptionRequired
nicidNIC IDtrue
virtualmachineidInstance IDtrue

Response Tags

Response NameDescription
idThe ID of the Instance
accountThe Account associated with the Instance
alloweddetailsList of allowed Vm details as comma separated string if VM instance settings are read from OVA.
archCPU arch of the VM
autoscalevmgroupidID of AutoScale Instance group
autoscalevmgroupnameName of AutoScale Instance group
backupofferingidThe ID of the backup offering of the Instance
backupofferingnameThe name of the backup offering of the Instance
backupproviderThe name of the backup provider of the offering attached to the Instance
bootmodeGuest Instance Boot Mode
boottypeGuest Instance Boot Type
cpunumberThe number of vCPUs this Instance is using
cpuspeedThe speed of each vCPU
cpuusedThe amount of the Instance's CPU currently used
createdThe date when this Instance was created
deleteprotectiontrue if vm has delete protection.
detailsInstance details in key/value pairs.
diskioreadThe read (IO) of disk on the Instance
diskiowriteThe write (IO) of disk on the Instance
diskkbsreadThe Instance's disk read in KiB
diskkbswriteThe Instance's disk write in KiB
diskofferingidThe ID of the disk offering of the Instance. 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 Instance. 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 Instance is returned if no displayname exists.
displayvmAn optional field whether to the display the Instance to the end user or not.
domainThe name of the domain in which the Instance exists
domainidThe ID of the domain in which the Instance exists
domainpathPath of the domain in which the virtual machine exists
forvirtualnetworkThe virtual Network for the service offering
gpucardidthe ID of the gpu card to which service offering is linked
gpucardnamethe name of the gpu card to which service offering is linked
gpucountthe count of GPUs on the virtual machine
groupThe group name of the Instance
groupidThe group ID of the Instance
guestosidOS type ID of the Instance
haenableTrue if high-availability is enabled, false otherwise
hostcontrolstateThe control state of the host for the Instance
hostidThe ID of the host for the Instance
hostnameThe name of the host for the Instance
hypervisorThe hypervisor on which the Template runs
iconBase64 string representation of the resource icon
instancenameInstance name of the user Instance; this parameter is returned to the ROOT admin only
ipaddressthe VM's primary IP address
isdynamicallyscalableTrue if Instance contains XS/VMWare tools in order to support dynamic scaling of Instance CPU/memory.
isodisplaytextAn alternate display text of the ISO attached to the Instance
isoidThe ID of the ISO attached to the Instance
isomaxcountMaximum number of ISOs that may be attached to this Instance, after applying the cluster-scoped vm.iso.max.count and the hypervisor's own cap.
isonameThe name of the ISO attached to the Instance
keypairsSSH key-pairs
lastupdatedThe date when this Instance was updated last time
leasedurationInstance lease duration in days
leaseexpiryactionInstance lease expiry action
leaseexpirydateInstance lease expiry date
maxheadsthe maximum number of display heads
maxresolutionxthe maximum X resolution
maxresolutionythe maximum Y resolution
memoryThe memory allocated for the Instance
memoryintfreekbsThe internal memory (KiB) that's free in Instance or zero if it can not be calculated
memorykbsThe memory used by the Instance in KiB
memorytargetkbsThe target memory in Instance (KiB)
nameThe name of the Instance
networkkbsreadThe incoming Network traffic on the Instance in KiB
networkkbswriteThe outgoing Network traffic on the host in KiB
osdisplaynameOS name of the Instance
ostypeidOS type id of the Instance
passwordThe password (if exists) of the Instance
passwordenabledTrue if the password rest feature is enabled, false otherwise
pooltypeThe pool type of the Instance
projectThe project name of the Instance
projectidThe project ID of the Instance
publicipPublic IP address id associated with Instance via Static NAT rule
publicipidPublic IP address id associated with Instance via Static NAT rule
readonlydetailsList of read-only Instance 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 Instance
serviceofferingnameThe name of the service offering of the Instance
servicestateState of the Service from LB rule
stateThe state of the Instance
templatedisplaytextAn alternate display text of the Template for the Instance
templateformatThe format of the template for the virtual machine
templateidThe ID of the Template for the Instance. A -1 is returned if the Instance was created from an ISO file.
templatenameThe name of the Template for the Instance
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 Instance
userdatanameThe name of userdata used for the Instance
userdatapolicyThe userdata override policy with the userdata provided while deploying Instance
useridThe User's ID who deployed the Instance
usernameThe User's name who deployed the Instance
vgpuThe vGPU type used by the Instance
vgpuprofileidthe ID of the vgpu profile to which service offering is linked
vgpuprofilenamethe name of the vgpu profile to which service offering is linked
videoramthe video RAM size in MB
vmtypeUser VM type
vnfdetailsVNF details
vnfnicsNICs of the VNF appliance
zoneidThe ID of the availability zone for the Instance
zonenameThe name of the availability zone for the Instance
affinitygroup(*)List of Affinity groups associated with the Instance
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
virtualmachineIdsInstance IDs associated with this affinity group
isos(*)All ISOs attached to the Instance, keyed by cdrom slot. The first entry mirrors isoid/isoname for back-compat.
idThe ID of the attached ISO
bootableWhether this is the bootable ISO for the VM
deviceseqThe cdrom slot that holds this ISO (3=hdc, 4=hdd, ...)
displaytextThe display text of the attached ISO
nameThe name of the attached ISO
nic(*)The list of NICs associated with Instance
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 Instance
enabledwhether the NIC is enabled or not
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 Instance
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
nicdnsnameDNS name associated with this NIC's IP address
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 Instance 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 Instance
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 Instances associated with this Security Group
virtualmachineidsThe list of Instance IDs associated with this Security Group
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