Client for OpenStack services
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
yanpuqing 533af9f1b2 Client should parse string to boolean for value 'is_domain' 1年前
doc Merge "Add resource option immutable" 1 个月前
examples Build utility image for using osc 2 个月前
openstackclient Client should parse string to boolean for value 'is_domain' 6 天前
releasenotes Client should parse string to boolean for value 'is_domain' 6 天前
tools Avoid tox_install.sh for constraints support 2 年前
.coveragerc Updated coverage configuration file 3 年前
.gitignore Updates for stestr 2 年前
.gitreview OpenDev Migration Patch 1年前
.mailmap Clean up test environment and remove unused imports. 7 年前
.stestr.conf Updates for stestr 2 年前
.zuul.yaml Be explicit about python version in image 2 个月前
CONTRIBUTING.rst Update http links in docs 2 个月前
Dockerfile Be explicit about python version in image 2 个月前
HACKING.rst Replace six.iteritems() with .items() 4 个月前
LICENSE Remove LICENSE APPENDIX 4 年前
README.rst Doc: launchpad => storyboard 7 个月前
babel.cfg Add translation markers for user v2 actions 5 年前
bindep.txt Add libc6-dev to bindep 2 个月前
lower-constraints.txt Merge "Use unittest.mock instead of third party mock" 1 个月前
requirements.txt Remove Babel from requirements 1 个月前
setup.cfg Merge "Add command: router add/remove route --route" 2 个月前
setup.py Cleanup Python 2.7 support 2 个月前
test-requirements.txt Merge "Use unittest.mock instead of third party mock" 1 个月前
tox.ini Stop configuring install_command in tox and stop use pip. 2 个月前

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.