Skip to main content

Stand-alone REST API server to manage Xena Valkyrie chassis

Project description

This package implements stand-alone REST API server to manage Xena Valkyrie chassis.

Functionality

Full REST API with functionality equivalent to the CLI.

Installation

pip instsll xenavalkyrie-rest

Getting started

Start the server

gunicorn2 xenavalkyrie_rest.wsgi:app -c xenavalkyrie_rest/settings.py

Start the development server

./xena_rest_server.py

Documentation

Xena CLI does not distinguish between attributes, operations and statistics. All are flat, unstructured, commands.

Each object has the following sub-routes - commands, attributes, statistics, operations. Note that for some objects some of the sub-routes are not applicable and in this case the sub-route is missing.

Commands: - Any raw CLI command.

The following sub-routes are abstractions on top of the raw CLI commands represented in the commands sub-route.

Attributes: - Returns all attributes in one call as dictionary - Allows set of group of attributes

Statistics: - Structured statistics.

Operations: - Strcutured operations. Not supported in first release.

CLI documentation - swagger UI - http://<SERVER>:<PORT>/api swagger version 2.0 JSON - http://<SERVER>:<PORT>/api/swagger.json

Contact

Feel free to contact me with any question or feature request at yoram@ignissoft.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xenavalkyrie-rest-0.6.2.tar.gz (17.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page