3.5.1.6. Find Using Multiple Values

This does the following:

  • Get devices by hostname that match multiple values.

  • This command builds a query for you, example: (specific_data.data.hostname in ['WIN-76F9735PMOJ', 'EC2AMAZ-V8E9DHF'])

$ axonshell devices get-by-hostname \
  --value "WIN-76F9735PMOJ" \
  --value "EC2AMAZ-V8E9DHF" \
  --export-file device.json \
  --export-overwrite

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