vinfra service compute server list

List virtual machines:

usage: vinfra service compute server list [--long] [--limit <num>]
                                          [--marker <server>] [--name <name>]
                                          [--id <id>] [--project <project>]
                                          [--status <status>]
                                          [--task-status <task-status>]
                                          [--host <hostname>]
                                          [--placement <placement>]
--long
Enable access and listing of all fields of objects.
--limit <num>
The maximum number of virtual machines to list. To list all virtual machines, set the option to -1.
--marker <server>
List virtual machines after the marker.
--name <name>
List virtual machines with the specified name or use a filter. Supported filter operator: contains. The filter format is <operator>:<value1>[,<value2>,…].
--id <id>
Show a server with the specified ID or list virtual machines using a filter. Supported filter operator: in. The filter format is <operator>:<value1>[,<value2>,…].
--project <project>
List virtual machines that belong to the specified project ID. Can only be performed by system administrators.
--status <status>
List virtual machines with the specified status.
--task-status <task-status>
List virtual machines that have the specified task status.
--host <hostname>
List virtual machines located on a node with the specified hostname.
--placement <placement>
List virtual machines added to a placement with the specified ID or use a filter. Supported filter operator: any. The filter format is <operator>:<value1>[,<value2>,…].

Example:

# vinfra service compute server list
+--------------------------------------+------+--------+------------------------+
| id                                   | name | status | host                   |
+--------------------------------------+------+--------+------------------------+
| 8cd29296-8bee-4efb-828d-0e522d816c6e | myvm | ACTIVE | node001.vstoragedomain |
+--------------------------------------+------+--------+------------------------+

This command lists all virtual machines in the compute cluster.