3.5.1.1. Find Single Item - No Match Found

This does the following:

  • Get a device by hostname that does not exist.
  • Throws an error because 0 matches were found.
  • This command builds a query for you, example: (specific_data.data.hostname == "nosuchname")
$ axonshell devices get-by-hostname \
  --value nosuchname

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