5.2. Wildcards
Search queries substitute part of a value with an asterisk as a wildcard.
Example 5.1. Wildcard search query for name=vm*
[RHEVM shell (connected)]# list vms --query "name=vm*"
This query would result in all virtual machines with names beginning with
vm
, such as vm1
, vm2
, vma
or vm-webserver
.
Example 5.2. Wildcard search query for name=v*1
[RHEVM shell (connected)]# list vms --query "name=v*1"
This query would result in all virtual machines with names beginning with
v
and ending with 1
, such as vm1
, vr1
or virtualmachine1
.