Files
python-keystoneclient/README.rst
Joao Paulo Targino 97e100d87e Update README to comply with Identity V3
Updated the README instructions to use Identity V3 parameters
and removed the reference to the deprecated 2.0 as an auth endpoint.

Change-Id: Ia2bb8934277f6386b8c44ce51931b10d937e6bdf
2016-06-28 20:08:34 +00:00

2.2 KiB

Python bindings to the OpenStack Identity API (Keystone)

Latest Version

Downloads

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()