3.5.1.5. Find Using NOT¶
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:
Get devices by hostname that do NOT match a value.
This command builds a query for you, example:
not (specific_data.data.hostname == "WIN-76F9735PMOJ"))
$ axonshell devices get-by-hostname \
--value "WIN-76F9735PMOJ" \
--value-not \
--export-file device.json \
--export-overwrite
3.5.1.5.1. Notes¶
Note
This example uses the devices get-by-hostname
command, but it will work for any
get-by-..
command for the devices and users command groups with the exception of
get-by-saved-query
(which uses the query built in to the saved query).