ESI-LEAP CLI
Project description
python-esileapclient
Python API for interacting with ESI-Leap
Overview
This is a client for the OpenStack Lease API. It provides:
- a openstack command-line plugin: openstack lease
python-esileapclient is licensed under the Apache License, Version 2.0, like the rest of OpenStack.
openstack lease CLI
The openstack lease command-line interface is available when the lease plugin (included in this package) is used with the `OpenStackClient https://docs.openstack.org/python-openstackclient/latest/
The client uses keystone to look for the lease service and currently does not allow for endpoint overriding.
To install this package,
- clone this repository
- install all requirements:
pip install -r requirements.txt
- install:
python setup.py install
Examples:
openstack esi offer list
will make a GET request to ESI-Leap and print to screen a list of all the offers in the ESI-Leap database.
openstack esi offer show <uuid>
will make a GET request and print fields for offer with the given uuid.
openstack esi offer create --resource-type dummy_node --resource-uuid 1718
will make a POST request to ESI-Leap to create the offer with the given credentials. Prints to the screen the newly created offer with resource type 'dummy_node' and resource uuid '1718'.
openstack esi offer delete <uuid>
will make a DELETE request to ESI-Leap to delete the request with the given uuid. Prints to the screen whether the command was a success or not.
This repository is currently a work in progress
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
Built Distribution
Hashes for python-esileapclient-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e29966b23d8eef47311d05255a2259bb6ccb759b17cc50531710f44409f709 |
|
MD5 | 90eb847faf9bdcf38d4167bd3224feeb |
|
BLAKE2b-256 | 5011a8c22c59b9e9516bf255d65622acad78bc279cd304e845fec8ece1396cd1 |
Hashes for python_esileapclient-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84f08e537b0b45e4a20d30007a30a846fe59edb86dc7da4b7ddf5718cd8b0f1e |
|
MD5 | 93d3377500de9505e1d80220deaf10c1 |
|
BLAKE2b-256 | 43c9158a9bc9a1fb0200d4011d7b697d0b7b1dd57bf7d26c7fc7eedcf4f324ba |