查询云主机(QueryVmInstance)

用户可以使用QueryVmInstance来查询云主机。例如:
QueryVmInstance state=Running hostUuid=33107835aee84c449ac04c9622892dec
QueryVmInstance vmNics.eip.guestIp=10.23.109.23

原生域查询(Primitive Fields of Query)

请参见 VM inventory

嵌套和扩展域查询(Nested And Expanded Fields of Query)

域(Field) 清单(Inventory) 描述 起始支持版本
vmNics VM nic inventory 云主机拥有的所有网卡 0.6
allVolumes volume inventory 云主机拥有的所有云盘 0.6
zone zone inventory 所在区域 0.6
cluster cluster inventory 所在集群 0.6
host host inventory 父物理主机 0.6
image image inventory 用于创建该云主机的镜像 0.6
instanceOffering instance offering inventory 用于创建该云主机的计算规格 0.6
rootVolume volume inventory 该云主机的根云盘 0.6