Skip to content

GenericNbiClient sends a query to the GraphQL-based API provided by the Northbound Interface (NBI) of Extreme Management Center (XMC) and prints the raw JSON response to stdout.

License

Notifications You must be signed in to change notification settings

rbrt-weiler/xmc-nbi-genericnbiclient-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XMC NBI GenericNbiClient (Python)

GenericNbiClient sends a query to the GraphQL-based API provided by the Northbound Interface (NBI) of Extreme Management Center (XMC) and prints the raw JSON response to stdout.

Notice: This project has surfaced as a proof of concept and is not maintained anymore. If you need a production ready NBI client, please refer to the Go version of GenericNbiClient.

Branches

This project uses two defined branches:

  • master is the primary development branch. Code within master may be broken at any time.
  • stable is reserved for code that compiles without errors and is tested. Track stable if you just want to use the software.

Other branches, for example for developing specific features, may be created and deleted at any time.

Dependencies

GenericNbiClient.py requires the Python module requests to be installed. PIP may be used to install it:

pip install requests

Usage

Tested with Python 3.8.0.

GenericNbiClient.py -h:

  -h, --help            show this help message and exit
  --host HOST           XMC Hostname / IP
  --port PORT           HTTP port where XMC is listening
  --httptimeout HTTPTIMEOUT
                        Timeout for HTTP(S) connections
  --insecurehttps       Do not validate HTTPS certificates
  --username USERNAME   Username for HTTP auth
  --password PASSWORD   Password for HTTP auth
  --query QUERY         GraphQL query to send to XMC
  --version             Print version information and exit

Source

The original project is hosted at GitLab, with a copy over at GitHub for the folks over there. Additionally, there is a project at GitLab which collects all available clients.

About

GenericNbiClient sends a query to the GraphQL-based API provided by the Northbound Interface (NBI) of Extreme Management Center (XMC) and prints the raw JSON response to stdout.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages