
While we should not start using this for cloning things in the gate yet, the opendev.org links provide for a nicer browsing experience already even though the service is in beta. Go ahead and swap our browsing links. While in there, remove some masakari references to github links to the source code. Masakari now publishes api docs to developer.openstack.org so there is no need to point people to source code for api docs. Change-Id: I14afa3476f9832ef433ec744e888348fc9a359e3
4.0 KiB
Using OpenStack Identity
Before working with the Identity service, you'll need to create a
connection to your OpenStack cloud by following the connect
user guide. This will
provide you with the conn
variable used in the examples
below.
The OpenStack Identity service is the default identity management system for OpenStack. The Identity service authentication process confirms the identity of a user and an incoming request by validating a set of credentials that the user supplies. Initially, these credentials are a user name and password or a user name and API key. When the Identity service validates user credentials, it issues an authentication token that the user provides in subsequent requests. An authentication token is an alpha-numeric text string that enables access to OpenStack APIs and resources. A token may be revoked at any time and is valid for a finite duration.
List Users
A user is a digital representation of a person, system, or service that uses OpenStack cloud services. The Identity service validates that incoming requests are made by the user who claims to be making the call. Users have a login and can access resources by using assigned tokens. Users can be directly assigned to a particular project and behave as if they are contained in that project.
../examples/identity/list.py
Full example: identity resource list
List Credentials
Credentials are data that confirms the identity of the user. For example, user name and password, user name and API key, or an authentication token that the Identity service provides.
../examples/identity/list.py
Full example: identity resource list
List Projects
A project is a container that groups or isolates resources or identity objects.
../examples/identity/list.py
Full example: identity resource list
List Domains
A domain is an Identity service API v3 entity and represents a collection of projects and users that defines administrative boundaries for the management of Identity entities. Users can be granted the administrator role for a domain. A domain administrator can create projects, users, and groups in a domain and assign roles to users and groups in a domain.
../examples/identity/list.py
Full example: identity resource list
List Groups
A group is an Identity service API v3 entity and represents a collection of users that are owned by a domain. A group role granted to a domain or project applies to all users in the group. Adding users to, or removing users from, a group respectively grants, or revokes, their role and authentication to the associated domain or project.
../examples/identity/list.py
Full example: identity resource list
List Services
A service is an OpenStack service, such as Compute, Object Storage, or Image service, that provides one or more endpoints through which users can access resources and perform operations.
../examples/identity/list.py
Full example: identity resource list
List Endpoints
An endpoint is a network-accessible address, usually a URL, through which you can access a service.
../examples/identity/list.py
Full example: identity resource list
List Regions
A region is an Identity service API v3 entity and represents a general division in an OpenStack deployment. You can associate zero or more sub-regions with a region to make a tree-like structured hierarchy.
../examples/identity/list.py
Full example: identity resource list