Query rules for resource pools
If the resource pool that you query is nested, the choice of Operator determines which virtual machines in the resource pool hierarchy are discovered.
For example, assume the following hierarchy of resource pools that contain virtual machines:
Res/ResourcePool_1
VM1
VM2
/ResourcePool_2
VM3
VM4
/ResourcePool_3
VM5
VM6
where ResourcePool_1 contains virtual machines VM1 and VM2, and so forth.
The following table shows the query results with the Contains, Equal, StartsWith, and EndsWith operators. (Other operators can be used.)
Note:
If you want the query to include all virtual machines in a hierarchy of nested resource pools, do not use Equal as the Operator.
Table: Example rules for nested resource pools
Query rule | Included virtual machines |
|---|---|
Resourcepool Contains "Res/ResourcePool_1" | Includes all the virtual machines in the three resource pools (VM1 through VM6). |
Resourcepool Equal "Res/ResourcePool_1" | Includes only the virtual machines that are in ResourcePool_1 (VM1, VM2). Virtual machines in the sub-pools are not included (VM3 through VM6). |
Resourcepool Equal "Res/ResourcePool_1/ResourcePool_2" | Includes only the virtual machines that are in ResourcePool_2 (VM3, VM4). |
Resourcepool StartsWith "Res/ResourcePool" | Includes all the virtual machines in the three resource pools (VM1 through VM6). |
Resourcepool StartsWith "Res/ResourcePool_1/ResourcePool_2" | Includes only the virtual machines that are in ResourcePool_2 and 3. Virtual machines in ResourcePool_1 are not included. |
Resourcepool EndsWith "ResourcePool_2" | Includes the virtual machines in ResourcePool_2 (VM3, VM4) but not in ResourcePool_1 or 3. |
These examples also apply to host folders.