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

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

3.2.12.3. Help Page

3.2.12.3.1. axonshell devices/users count-by-saved-query

Get the count of assets from a saved query.

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

Options

-u, --url <url>

URL of Axonius instance. [required]

-k, --key <key>

API Key of user in Axonius instance. [required]

-s, --secret <secret>

API Secret of user in Axonius instance. [required]

-n, --name <name>

Name of saved query to get count of assets from. [required]