Client for OpenStack services
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Matt Riedemann 5b3a827a1f Provide stderr in exception when check_parser fails pirms 2 mēnešiem
doc Deflate .htaccess pirms 2 nedēļām
examples osc-lib: api.auth pirms 3 gadiem
openstackclient Provide stderr in exception when check_parser fails pirms 1 dienas
releasenotes Microversion 2.79: Add delete_on_termination to volume-attach API pirms 2 dienas
tools Avoid tox_install.sh for constraints support pirms 2 gadiem
.coveragerc Updated coverage configuration file pirms 3 gadiem
.gitignore Updates for stestr pirms 2 gadiem
.gitreview OpenDev Migration Patch pirms 7 mēnešiem
.mailmap Clean up test environment and remove unused imports. pirms 6 gadiem
.stestr.conf Updates for stestr pirms 2 gadiem
.zuul.yaml Add Python 3 Train unit tests pirms 4 mēnešiem
CONTRIBUTING.rst Doc: launchpad => storyboard pirms 1 mēnesi
HACKING.rst Update the documentation link for doc migration pirms 2 gadiem
LICENSE Remove LICENSE APPENDIX pirms 4 gadiem
README.rst Doc: launchpad => storyboard pirms 1 mēnesi
babel.cfg Add translation markers for user v2 actions pirms 5 gadiem
lower-constraints.txt Microversion 2.79: Add delete_on_termination to volume-attach API pirms 2 dienas
requirements.txt Microversion 2.79: Add delete_on_termination to volume-attach API pirms 2 dienas
setup.cfg compute: autogenerate docs pirms 2 nedēļām
setup.py Updated from global requirements pirms 2 gadiem
test-requirements.txt Remove plugin projects from test-requirements.txt pirms 1 mēnesi
tox.ini Add redirect testing pirms 2 nedēļām

README.rst

Team and repository tags

image

OpenStackClient

Latest Version

OpenStackClient (aka OSC) is a command-line client for OpenStack that brings the command set for Compute, Identity, Image, Network, Object Store and Block Storage APIs together in a single shell with a uniform command structure.

The primary goal is to provide a unified shell command structure and a common language to describe operations in OpenStack.

Getting Started

OpenStack Client can be installed from PyPI using pip:

pip install python-openstackclient

There are a few variants on getting help. A list of global options and supported commands is shown with --help:

openstack --help

There is also a help command that can be used to get help text for a specific command:

openstack help
openstack help server create

If you want to make changes to the OpenStackClient for testing and contribution, make any changes and then run:

python setup.py develop

or:

pip install -e .

Configuration

The CLI is configured via environment variables and command-line options as listed in https://docs.openstack.org/python-openstackclient/latest/cli/authentication.html.

Authentication using username/password is most commonly used:

export OS_AUTH_URL=<url-to-openstack-identity>
export OS_IDENTITY_API_VERSION=3
export OS_PROJECT_NAME=<project-name>
export OS_PROJECT_DOMAIN_NAME=<project-domain-name>
export OS_USERNAME=<username>
export OS_USER_DOMAIN_NAME=<user-domain-name>
export OS_PASSWORD=<password>  # (optional)

The corresponding command-line options look very similar:

--os-auth-url <url>
--os-identity-api-version 3
--os-project-name <project-name>
--os-project-domain-name <project-domain-name>
--os-username <username>
--os-user-domain-name <user-domain-name>
[--os-password <password>]

If a password is not provided above (in plaintext), you will be interactively prompted to provide one securely.