3.2.11. devices/users count

This command will get the count of assets that a 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.11.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.11.3. Help Page

3.2.11.3.1. axonshell users/devices count

Get the count of assets from a query.

axonshell users/devices count [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]

-q, --query <query>

Query built from Query Wizard to filter objects (empty returns all).

-qf, --query-file <query_file>

File containing query built from Query Wizard to filter objects (overrides –query, ‘-‘ to read from STDIN).