SELECT | VPX_GUEST_DISK.VM_ID, VPX_GUEST_DISK.PATH, VPX_GUEST_DISK.CAPACITY, CONVERT(bigint, VPX_GUEST_DISK.CAPACITY) |
/ 1048576 AS 'Capacity_MB', VPX_GUEST_DISK.FREE_SPACE, CONVERT(bigint, VPX_GUEST_DISK.FREE_SPACE) / 1048576 AS 'FreeSpace_MB', | |
VPX_HOST.ID, VPX_HOST.DATACENTER_ID, VPX_HOST.DNS_NAME, VPX_VM.ID AS Expr1, VPX_VM.DATACENTER_ID AS Expr2, VPX_VM.FILE_NAME, | |
VPX_VM.LOCAL_FILE_NAME, VPX_VM.POWER_STATE, VPX_VM.GUEST_OS, VPX_VM.GUEST_STATE, VPX_VM.MEM_SIZE_MB, VPX_VM.NUM_DISK, | |
VPX_VM.DNS_NAME AS Expr3, VPX_VM.IS_TEMPLATE, VPX_VM.HOST_ID | |
FROM | VPX_GUEST_DISK AS VPX_GUEST_DISK INNER JOIN |
VPX_VM AS VPX_VM ON VPX_GUEST_DISK.VM_ID = VPX_VM.ID INNER JOIN | |
VPX_HOST AS VPX_HOST ON VPX_VM.HOST_ID = VPX_HOST.ID |
WHERE VPX_VM.DNS_NAME = 'yourVMname'