3.2.20. devices/users saved-query add

This command will add a saved query for users or devices.

3.2.20.1. Common Options

3.2.20.2. Common Examples

  • Selecting Fields Examples for examples of selecting which fields (columns) to include in the saved query for sort column, columns displayed, and column filters.

3.2.20.4. Help Page

3.2.20.4.1. axonshell devices/users saved-query add

Add a saved query.

axonshell devices/users saved-query add [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.

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

-n, --name <name>

Name of saved query to create. [required]

-sf, --sort-field <sort_field>

Column to sort data on.

-sd, --sort-ascending

Sort –sort-field ascending.

-cf, --column-filter <column_filters>

Columns to filter in the format of adapter:field=value.

-gps, --gui-page-size <gui_page_size>

Number of rows to show per page in GUI. [default: 25]

Options:25|50|100