Giter Site home page Giter Site logo

rbrt-weiler / xmc-nbi-genericnbiclient-rs Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 18 KB

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: MIT License

Rust 98.66% Dockerfile 1.34%
graphql extremenetworks xmc northbound-interface nbi

xmc-nbi-genericnbiclient-rs's Introduction

XMC NBI GenericNbiClient (Rust)

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.

Compiling

Use cargo run to build (with debug information) and run the tool directly or cargo build --release to compile an optimized binary without debug information.

Tested with cargo 1.48.0 / rustc 1.48.0.

Usage

xmc-nbi-genericnbiclient-rs -h (either in ./target/debug/ or ./targt/release/):

USAGE:
    xmc-nbi-genericnbiclient-rs [FLAGS] [OPTIONS] --host <STRING>

FLAGS:
    -h, --help             Prints help information
    -I, --insecurehttps    Do not validate HTTPS certificates
    -V, --version          Prints version information

OPTIONS:
    -H, --host <STRING>        XMC Hostname / IP
    -T, --httptimeout <INT>    Timeout for HTTP(S) connections [default: 5]
    -W, --password <STRING>    Password for HTTP auth [default: ]
    -P, --port <INT>           HTTP port where XMC is listening [default: 8443]
    -Q, --query <STRING>       GraphQL query to send to XMC [default: query { network { devices { up ip sysName nickName
                               } } }]
    -U, --username <STRING>    Username for HTTP auth [default: admin]

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.

xmc-nbi-genericnbiclient-rs's People

Contributors

rbrt-weiler avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.