3.2.2.2.2. With Query¶
Warning
This API is deprecated.
Axonius API v2 is now available, we recommend you move to API v2.
New features will no longer be added to this API. Axonius will only provide bug fixes.
This does the following:
Since a query is supplied, this will only return the count of device assets that match the query.
$ axonshell devices count --query '(specific_data.data.last_seen >= date("NOW - 3d"))'
3.2.2.2.2.1. Notes¶
Note
This example works the same for both the devices count and users count commands.
Note
If –query-file is supplied, it will override –query if that is also supplied.
See also
Shell Quoting Rules for how to deal with quoting the –query value in various shells.