Simple HTTP CLI for OpenStack services
Go to file
Jamie Lennox 78dfff9891 Set proper user_agent string
The user_agent is not fixed by keystoneauth when being passed to the
request method so we need to set that on the adapter. Move the version
string to prevent circular imports and add it and os-client-config
versions to the user_agent.
2016-04-11 16:14:39 +10:00
doc/source Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
os_http Set proper user_agent string 2016-04-11 16:14:39 +10:00
.coveragerc Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
.gitignore Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
.gitreview Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
.mailmap Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
.testr.conf Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
babel.cfg Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
CONTRIBUTING.rst Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
HACKING.rst Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
LICENSE Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
MANIFEST.in Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
openstack-common.conf Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
README.rst Quick and dirty first version 2015-09-22 12:35:19 +10:00
requirements.txt Use os-client-config instead of keystoneauth directly 2016-04-11 16:01:01 +10:00
setup.cfg Quick and dirty first version 2015-09-22 12:35:19 +10:00
setup.py Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
test-requirements.txt Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
tox.ini Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00

os-http

Simple HTTP CLI for OpenStack

A common problem I have in development is needing to make a request against an authenticated request against an OpenStack API "correctly" (using the catalog, real authentication, version discovery etc).

os-http is a httpie inspired wrapper around basic keystoneauth functionality that can make and display the response to HTTP requests against openstack services.

Usage

source accrc  # load your cloud authentication
os-http --os-service-type image \
        --os-api-version 2      \
        --os-interface public   \
        --os-region RegionTwo   \
        get /images