3.2.14. devices/users get

This allows you to get all of the assets for devices or users and export the data to CSV or JSON.

See also

Shell Quoting Rules for how to deal with quoting the query value in various shells.

3.2.14.1. Output feeds

The output from this command is able to be supplied as input to these commands:

3.2.14.2. Common Options

3.2.14.3. Common Examples

3.2.14.5. Help Page

3.2.14.5.1. axonshell devices/users get

Get assets from a query.

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

-xf, --export-file <export_file>

Export to a file in export-path instead of printing to STDOUT. [default: ]

-xp, --export-path <export_path>

Path to create -xf/–export-file in (default is current working directory).

-xt, --export-format <export_format>

Format to use for STDOUT (or -xf/–export-file if supplied). [default: json]

Options:csv|json|table
-xo, --export-overwrite

Overwrite -xf/–export-file if exists.

-xd, --export-delim <export_delim>

Change the cell delimiter for CSV format from the default of carriage return.

-xtf, --export-table-format <export_table_format>

Format to use for –export-format ‘table’. [default: fancy_grid]

Options:fancy_grid|github|grid|html|jira|latex|latex_booktabs|latex_raw|mediawiki|moinmoin|orgtbl|pipe|plain|presto|psql|rst|simple|textile|tsv|youtrack
-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).

-f, --field <fields>

Fields (columns) to include in the format of adapter:field.

-fr, --field-regex <fields_regex>

Fields (columns) to include in the format of adapter:field (regex).

-nfd, --no-fields-default

Exclude default fields for this object type.

-mr, --max-rows <max_rows>

Only return this many rows.