3.2.3. devices/users count-by-saved-query

This command will get the count of assets that a saved query would return for users or devices and could be used as part of a script to do something based on the number returned. Common Options

  • Connection Options for examples of supplying the Axonius credentials and URL.
  • There are no export options for this command since it only returns a number. Help Page axonshell devices/users count-by-saved-query

Get the count of assets from a saved query.

axonshell devices/users count-by-saved-query [OPTIONS]


-u, --url <url>

URL of an Axonius instance [required]

-k, --key <key>

API Key of user in an Axonius instance [required]

-s, --secret <secret>

API Secret of user in an Axonius instance [required]

-n, --name <name>

Name of saved query [required]

-hd, --history-date <history_date>

Return results for a given date in history

--help-detailed <help_detailed>

Show detailed help and exit