feat(filter): add number comparison

This commit is contained in:
Olivier Lambert 2018-02-28 16:43:48 +01:00
parent 65ebbf179f
commit dc6d688c96

View File

@ -95,6 +95,15 @@ Postfix the name of a property by an question mark `?`:
- `auto_poweron?` - `auto_poweron?`
- `high_availability?` - `high_availability?`
#### Number comparison
You can use the search field/filter with number comparison:
* `snapshots:length:>2` (to display VMs with more than 2 snapshots)
* `$VBDs:length:>=4` (VMs with more 4 or more disks attached)
* `VIFs:length:>=2` (number of network interfaces)
## Available properties ## Available properties
No documentation on this side either, but you can see all objects and their properties using `xo-cli --list-objects`. No documentation on this side either, but you can see all objects and their properties using `xo-cli --list-objects`.