Skip to main content

List Virtual Machines

Lists all VMs managed by the vSphere instance.

Example Output

[
{
"memory_size_MiB${$[0].memory_size_MiB$}$": 128,
"vm${$[0].vm$}$": "vm-22",
"name${$[0].name$}$": "vCLS-5993c759-2df6-4a9b-a99a-9743b7efd75b",
"power_state${$[0].power_state$}$": "POWERED_ON",
"cpu_count${$[0].cpu_count$}$": 1
},
{
"memory_size_MiB${$[1].memory_size_MiB$}$": 2048,
"vm${$[1].vm$}$": "vm-26",
"name${$[1].name$}$": "ubuntu",
"power_state${$[1].power_state$}$": "POWERED_ON",
"cpu_count${$[1].cpu_count$}$": 2
},
{
"memory_size_MiB${$[2].memory_size_MiB$}$": 2048,
"vm${$[2].vm$}$": "vm-38",
"name${$[2].name$}$": "test_ubuntu",
"power_state${$[2].power_state$}$": "POWERED_OFF",
"cpu_count${$[2].cpu_count$}$": 2
}
]

Workflow Library Example

List Virtual Machines with Vmware Vsphere and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop