requery

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

README

reQuery

reQuery is an ACI moquery clone that performs remote queries and queries against the backup file. This tool is based on the goACI library.

Getting Started

Differences from moquery

Filtering data

moquery uses a unique filtering syntax for the -f filter option, e.g. fv.BD.name=="my-tenant". reQuery uses the same query syntax as the API, e.g. eq(fvBD.name,"my-tenant"), so the queries are interchangable with the documentation, other tools, and Visore.

Output

reQuery always outputs in JSON; however, the data structure is flattened and is similar to moquery.

CLI arguments
Not implemented:

-a --attrs - reQuery always displays all attributes. Use external tools like awk and grep to limit results to config only.

-o --output - reQuery only outputs JSON.

-p --port - Just add the port to the hostname/IP, e.g. 10.0.0.1:443

Renamed:

-c --klass - This was renamed to -c --class.

Unique to requery:

-m --mode - By default the mode is determined by the extention, i.e. .tar.gz is a backup file. If this doesn't apply, use the mode option to specify http or backup.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL