openstack · OpenDev: Free Software Needs Free Tools

2026-07-24 00:34:32 +00:00

2024-04-30 19:25:07 +09:00

2022-03-07 16:37:36 +01:00

2026-07-19 18:34:28 +09:00

2018-11-28 14:45:14 +00:00

2026-07-24 00:34:32 +00:00

2016-10-19 12:38:55 +00:00

2018-07-11 09:59:08 +07:00

2019-04-19 19:39:43 +00:00

2014-05-07 12:12:43 -07:00

2018-07-11 09:59:08 +07:00

2022-09-14 09:10:26 +00:00

2023-11-09 01:48:11 +09:00

2017-02-05 20:46:32 -08:00

2017-07-14 09:56:01 +08:00

2011-10-25 16:50:08 -07:00

2019-04-24 19:16:55 +08:00

2024-04-30 19:25:07 +09:00

2025-06-26 02:16:14 +00:00

2020-04-04 14:15:46 +02:00

2026-02-17 19:17:02 +00:00

2025-04-16 18:41:16 +09:00

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

Read the original on opendev.org ↗