OpenStack Identity (Keystone) Client
Go to file
openstack e7621bddc1 Add return-request-id-to-caller function(v3/contrib)
Added return-request-id-to-caller function tovresources and resource
managers in the following files.

* keystoneclient/v3/contrib/simple_cert.py
* keystoneclient/v3/contrib/endpoint_policy.py
* keystoneclient/v3/contrib/oauth1/access_tokens.py
* keystoneclient/v3/contrib/oauth1/request_tokens.py

Adding request-id to below V3 contrib API's is covered in base patch
[1] but this patch is specifically for V3 API's so covered their test
cases in this patch.

* keystoneclient/v3/contrib/endpoint_filter.py
* keystoneclient/v3/contrib/federation/identity_providers.py
* keystoneclient/v3/contrib/federation/mappings.py
* keystoneclient/v3/contrib/federation/protocols.py
* keystoneclient/v3/contrib/federation/service_providers.py

The methods in the resource class and resource manager return
a 'base.Response' class that has 'request_ids' property.
The caller can get request ids of the callee via that property.

[1] https://review.openstack.org/#/c/329913

Change-Id: I5f90c31020e0dd672a160c7b587f41ba8f2b596c
Co-authored-by: Dinesh Bhor <dinesh.bhor@nttdata.com>
Co-authored-by: Ankit Agrawal <ankit11.agrawal@nttdata.com>
Co-authored-by: Neha Alhat <neha.alhat@nttdata.com>
Implements: blueprint return-request-id-to-caller
2018-10-22 10:35:03 +00:00
doc Merge "Add Response class to return request-id to caller" 2018-10-19 20:09:20 +00:00
examples/pki Remove keystoneclient.middleware 2015-12-11 02:00:30 -05:00
keystoneclient Add return-request-id-to-caller function(v3/contrib) 2018-10-22 10:35:03 +00:00
playbooks/keystoneclient-dsvm-functional Import legacy keystoneclient-dsvm-functional 2018-09-24 20:22:01 +02:00
releasenotes Merge "Deprecate region enabled parameter" 2018-09-28 10:06:14 +00:00
.coveragerc Updated coverage configuration file 2016-10-19 12:38:55 +00:00
.gitignore Switch to stestr 2018-07-11 09:59:08 +07:00
.gitreview Added in common test, venv and gitreview stuff. 2011-12-22 00:12:22 +00:00
.mailmap Add mailmap entry 2014-05-07 12:12:43 -07:00
.stestr.conf Switch to stestr 2018-07-11 09:59:08 +07:00
.zuul.yaml Import legacy keystoneclient-dsvm-functional 2018-09-24 20:22:01 +02:00
CONTRIBUTING.rst Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
HACKING.rst Update URLs in documents according to document migration 2017-07-14 09:56:01 +08:00
LICENSE Initial commit. 2011-10-25 16:50:08 -07:00
README.rst Add release note link in README 2018-06-28 09:38:47 +00:00
babel.cfg enabling i18n with Babel 2012-09-29 16:03:23 -07:00
bindep.txt Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
lower-constraints.txt Switch to stestr 2018-07-11 09:59:08 +07:00
requirements.txt Updated from global requirements 2018-03-15 07:58:00 +00:00
setup.cfg Update URLs in documents according to document migration 2017-07-14 09:56:01 +08:00
setup.py Updated from global requirements 2017-03-22 22:27:35 +00:00
test-requirements.txt Switch to stestr 2018-07-11 09:59:08 +07:00
tox.ini Don't quote {posargs} in tox.ini 2018-10-09 13:54:50 +00:00

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