此内容没有您所选择的语言版本。
14.30. gnocchi resource search
usage: gnocchi resource search [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] [--max-width <integer>] [--noindent] [--quote {all,minimal,none,nonnumeric}] [--details] [--history] [--limit <LIMIT>] [--marker <MARKER>] [--sort <SORT>] [--type RESOURCE_TYPE] query
Positional arguments
- query
A query to filter resource. The syntax is a
combination of attribute, operator and value. For
example: id=90d58eea-70d7-4294-a49a-170dcdf44c3c would
filter resource with a certain id. More complex
queries can be built, e.g.: not (flavor_id!="1" and
memory>=24). Use "" to force data to be interpreted as
string. Supported operators are: not, and, ∧ or, ∨,
>=, <=, !=, >, <, =, ==, eq, ne, lt, gt, ge, le, in,
like, ≠, ≥, ≤, like, in.
Optional arguments
- -h, --help
show this help message and exit
- --details
Show all attributes of generic resources
- --history
Show history of the resources
- --limit <LIMIT>
Number of resources to return (Default is server
default)
- --marker <MARKER>
Last item of the previous listing. Return the next
results after this value
- --sort <SORT>
Sort of resource attribute (example: user_id:desc-
nullslast
- --type RESOURCE_TYPE, -t RESOURCE_TYPE
Type of resource