OpenStack Identity (Keystone) Client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zuul 79f150f962 Merge "Generate pdf documentation" 1 week ago
doc Generate pdf documentation 2 weeks ago
examples/pki Update json module to jsonutils 6 months ago
keystoneclient Merge "Add parent project filter for listing projects" 1 week ago
playbooks Fix keystoneclient-devstack-functional job 9 months ago
releasenotes Add parent project filter for listing projects 2 weeks ago
.coveragerc Updated coverage configuration file 2 years ago
.gitignore Switch to stestr 1 year ago
.gitreview OpenDev Migration Patch 5 months ago
.mailmap Add mailmap entry 5 years ago
.stestr.conf Switch to stestr 1 year ago
.zuul.yaml Add Python 3 Train unit tests 2 months ago
CONTRIBUTING.rst Use https for *.openstack.org references 2 years ago
HACKING.rst Update URLs in documents according to document migration 2 years ago
LICENSE Initial commit. 8 years ago
README.rst Replace git.openstack.org URLs with opendev.org URLs 4 months ago
babel.cfg enabling i18n with Babel 7 years ago
bindep.txt Use https for *.openstack.org references 2 years ago
lower-constraints.txt Switch to stestr 1 year ago
requirements.txt Updated from global requirements 1 year ago
setup.cfg Drop py35 jobs 6 months ago
setup.py Updated from global requirements 2 years ago
test-requirements.txt Blacklist bandit 1.6.0 & cap sphinx for 2.7 2 months ago
tox.ini Generate pdf documentation 2 weeks ago

README.rst

Team and repository tags

image

Python bindings to the OpenStack Identity API (Keystone)

Latest Version

This is a client for the OpenStack Identity API, implemented by the Keystone team; it contains a Python API (the keystoneclient module) for OpenStack's Identity Service. For command line interface support, use OpenStackClient.

Contents:

Python API

By way of a quick-start:

>>> from keystoneauth1.identity import v3
>>> from keystoneauth1 import session
>>> from keystoneclient.v3 import client
>>> auth = v3.Password(auth_url="http://example.com:5000/v3", username="admin",
...                     password="password", project_name="admin",
...                     user_domain_id="default", project_domain_id="default")
>>> sess = session.Session(auth=auth)
>>> keystone = client.Client(session=sess)
>>> keystone.projects.list()
    [...]
>>> project = keystone.projects.create(name="test", description="My new Project!", domain="default", enabled=True)
>>> project.delete()