nsx-search

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

README

Proof of concept CLI Tool to search the VMware NSX-T API.
Requires NSX-T 3.0 or higher.

Syntax

Usage to query a Logical Router called 'tier0-gw' on the manager API:
  nsx-search -e <nsx ip/fqdn> -k -u <username> -p <password> -o LogicalRouter -n tier0-gw -m

Syntax:
  -a, --available-objects    Show available objects to search
  -e, --endpoint string      NSX-T Manager Hostname
  -h, --help                 Show help
  -k, --insecure             Skip TLS verification. Default true.
  -m, --manager-api          User manager API. Defaults to false, which uses the policy API
  -n, --object-name string   Optional. Name of object to query. Without a name, all objects will be returned, up to 1000.
  -o, --object-type string   Type of object to query
  -p, --password string      NSX-T Manager password
  -u, --username string      NSX-T Manager username

The output is raw JSON which can be queried by a tool such as JQ.

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