> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Virtual Machines

Lists all VMs managed by the vSphere instance.

## Example Output

```json theme={"dark"}
[
	{
		"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](https://library.blinkops.com/workflows/list-virtual-machines-with-vmware-vsphere-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-virtual-machines-with-vmware-vsphere-and-send-results-via-email/canvas" />
</div>
