57 lines
1.9 KiB
ReStructuredText
Raw Normal View History

2012-04-18 13:16:39 -05:00
================
OpenStack Client
================
2012-04-27 11:49:01 -05:00
python-openstackclient is a unified command-line client for the OpenStack APIs. It is
2012-04-18 13:16:39 -05:00
a thin wrapper to the stock python-*client modules that implement the
2012-04-27 11:49:01 -05:00
actual REST API client actions.
2012-04-18 13:16:39 -05:00
This is an implementation of the design goals shown in
http://wiki.openstack.org/UnifiedCLI. The primary goal is to provide
a unified shell command structure and a common language to describe
operations in OpenStack.
2012-04-27 11:49:01 -05:00
python-openstackclient is designed to add support for API extensions via a
plugin mechanism
2012-04-18 13:16:39 -05:00
Configuration
=============
2012-04-27 11:49:01 -05:00
The cli is configured via environment variables and command-line
options as listed in http://wiki.openstack.org/UnifiedCLI/Authentication.
2012-04-18 13:16:39 -05:00
2012-04-27 11:49:01 -05:00
The 'password flow' variation is most commonly used::
2012-04-18 13:16:39 -05:00
2012-04-27 11:49:01 -05:00
export OS_AUTH_URL=<url-to-openstack-identity>
export OS_TENANT_NAME=<tenant-name>
export OS_USERNAME=<user-name>
export OS_PASSWORD=<password> # yes, it isn't secure, we'll address it in the future
2012-04-18 13:16:39 -05:00
The corresponding command-line options look very similar::
--os-auth-url <url>
--os-tenant-name <tenant-name>
--os-username <user-name>
--os-password <password>
2012-04-27 11:49:01 -05:00
The token flow variation for authentication uses an already-aquired token
and a URL pointing directly to the service API that presumably was acquired
from the Service Catalog::
export OS_TOKEN=<token>
export OS_URL=<url-to-openstack-service>
The corresponding command-line options look very similar::
--os-token <token>
--os-url <url-to-openstack-service>
2012-04-18 13:16:39 -05:00
Additional command-line options and their associated environment variables
are listed here::
--debug # turns on some debugging of the API conversation
(via httplib2)
2012-04-27 11:49:01 -05:00
--verbose | -v # Increase verbosity of output. Can be repeated.
--quiet | -q # suppress output except warnings and errors
--help | -h # show a help message and exit