Product SiteDocumentation Site

8.2.3.2. Wildcards

Search queries substitute part of a value with an asterisk as a wildcard. For example:
GET /rhevm-api/vms?search=name%3Dvm* HTTP/1.1
Accept: application/xml
Content-Type: application/xml
This query would result in all virtual machines with names beginning with vm, such as vm1, vm2, vma or vm-webserver.
GET /rhevm-api/vms?search=name%3Dv*1 HTTP/1.1
Accept: application/xml
Content-Type: application/xml
This query would result in all virtual machines with names beginning with v and ending with 1, such as vm1, vr1 or virtualmachine1.