Find Single Item - Match Found

This does the following:

  • Get a device by hostname that does exist.

  • This command builds a query for you, example: (specific_data.data.hostname == "WIN-76F9735PMOJ")

$ axonshell devices get-by-hostname \
  --value WIN-76F9735PMOJ \
  --export-file device.json Notes


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).