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 details)

Uploaded Source

File details

Details for the file xenavalkyrie-rest-0.6.2.tar.gz.

File metadata

  • Download URL: xenavalkyrie-rest-0.6.2.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15rc1

File hashes

Hashes for xenavalkyrie-rest-0.6.2.tar.gz
Algorithm Hash digest
SHA256 b3aa5d5d1e4efcf9d0ec2acfbc90fad8666d062d13de0333e4370d665798d8cf
MD5 63d7357b4a09088e082d20b93bbb801c
BLAKE2b-256 bff58c195761e24a2a1d0b041eb37f740d19b7fff00a3a7f593a39f991a38408

See more details on using hashes here.

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