Apache CloudStack 4.18.0.0 Root Admin API Reference

listVirtualMachinesMetrics

Lists VM metrics

Request parameters

Parameter NameDescriptionRequired
accountlist resources by account. Must be used with the domainId parameter.false
accumulateAccumulates the VM metrics data instead of returning only the most recent data collected. The default behavior is set by the global configuration vm.stats.increment.metrics.false
affinitygroupidlist vms by affinity groupfalse
autoscalevmgroupidthe ID of AutoScaling VM Groupfalse
backupofferingidlist by the backup offeringfalse
clusteridthe cluster IDfalse
detailscomma separated list of host details requested, value can be a list of [all, group, nics, stats, secgrp, tmpl, servoff, diskoff, iso, volume, min, affgrp]. If no parameter is passed in, the details will be defaulted to allfalse
displayvmlist resources by display flag; only ROOT admin is eligible to pass this parameterfalse
domainidlist only resources belonging to the domain specifiedfalse
forvirtualnetworklist by network type; true if need to list vms using Virtual Network, false otherwisefalse
groupidthe group IDfalse
haenablelist by the High Availability offering; true if filtering VMs with HA enabled; false for VMs with HA disabledfalse
hostidthe host IDfalse
hypervisorthe target hypervisor for the templatefalse
idthe ID of the virtual machinefalse
idsthe IDs of the virtual machines, mutually exclusive with idfalse
isoidlist vms by isofalse
isrecursivedefaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.false
keypairlist vms by ssh keypair namefalse
keywordList by keywordfalse
listallIf set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false. Resources dedicated to a project are listed only if using the projectid parameter.false
namename of the virtual machine (a substring match is made against the parameter value, data for all matching VMs will be returned)false
networkidlist by network idfalse
pagefalse
pagesizefalse
podidthe pod IDfalse
projectidlist objects by project; if projectid=-1 lists All VMsfalse
securitygroupidthe security group IDfalse
serviceofferingidlist by the service offeringfalse
showiconflag to display the resource icon for VMsfalse
statestate of the virtual machine. Possible values are: Running, Stopped, Present, Destroyed, Expunged. Present is used for the state equal not destroyed.false
storageidthe storage ID where vm's volumes belong tofalse
tagsList resources by tags (key/value pairs)false
templateidlist vms by templatefalse
userdataWhether to return the VMs' user data or not. By default, user data will not be returned.false
useridthe user ID that created the VM and is under the account that owns the VMfalse
vpcidlist vms by vpcfalse
zoneidthe availability zone IDfalse

Response Tags

Response NameDescription
cputotalthe total cpu capacity in Ghz
diskiopstotalthe total disk iops
diskreaddisk read in MiB
diskwritedisk write in MiB
ipaddressthe VM's primary IP address
memorytotalthe total memory capacity in GiB
networkreadnetwork read in MiB
networkwritenetwork write in MiB