Bases: keystoneclient.base.Manager
Retrieve auth context specific information.
The information returned by the auth routes is entirely dependant on the authentication information provided by the user.
List Domains that the specified token can be rescoped to.
Returns: | a list of domains. |
---|---|
Return type: | list of keystoneclient.v3.domains.Domain. |
List projects that the specified token can be rescoped to.
Returns: | a list of projects. |
---|---|
Return type: | list of keystoneclient.v3.projects.Project |
Bases: keystoneclient.httpclient.HTTPClient
Client for the OpenStack Identity API v3.
Parameters: |
|
---|
Warning
Constructing an instance of this class without a session is deprecated as of the 1.7.0 release and will be removed in the 2.0.0 release.
Example:
>>> from keystoneauth1.identity import v3
>>> from keystoneauth1 import session
>>> from keystoneclient.v3 import client
>>> auth = v3.Password(user_domain_name=DOMAIN_NAME,
... username=USER,
... password=PASS,
... project_domain_name=PROJECT_DOMAIN_NAME,
... project_name=PROJECT_NAME,
... auth_url=KEYSTONE_URL)
>>> sess = session.Session(auth=auth)
>>> keystone = client.Client(session=sess)
>>> keystone.projects.list()
...
>>> user = keystone.users.get(USER_ID)
>>> user.delete()
Instances of this class have the following managers:
keystoneclient.v3.contrib.endpoint_filter.EndpointFilterManager
keystoneclient.v3.contrib.endpoint_policy.EndpointPolicyManager
Authenticate against the v3 Identity API.
If password and token methods are both provided then both methods will be used in the request.
Returns: | access.AccessInfo if authentication was successful. |
---|---|
Return type: | |
Raises: |
|
Extract and process information from the new auth_ref.
And set the relevant authentication information.
Bases: keystoneclient.base.Resource
Represents an Identity credential.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity credentials.
Create a credential.
Parameters: |
|
---|---|
Returns: | the created credential |
Return type: | |
Raises ValueError: | |
if one of blob or data is not specified |
Delete a credential.
Parameters: | credential (str or keystoneclient.v3.credentials.Credential) – the credential to be deleted |
---|---|
Returns: | response object with 204 status |
Return type: | requests.models.Response |
Retrieve a credential.
Parameters: | credential (str or keystoneclient.v3.credentials.Credential) – the credential to be retrieved from the server |
---|---|
Returns: | the specified credential |
Return type: | keystoneclient.v3.credentials.Credential |
List credentials.
Parameters: | kwargs – If user_id or type is specified then credentials will be filtered accordingly. |
---|---|
Returns: | a list of credentials |
Return type: | list of keystoneclient.v3.credentials.Credential |
alias of Credential
Update a credential.
Parameters: |
|
---|---|
Returns: | the updated credential |
Return type: |
Bases: keystoneclient.base.Resource
Represents an Identity domain.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity domains.
Create a domain.
Parameters: | |
---|---|
Returns: | the created domain returned from server. |
Return type: |
“Delete a domain.
Parameters: | domain (str or keystoneclient.v3.domains.Domain) – the domain to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve a domain.
Parameters: | domain (str or keystoneclient.v3.domains.Domain) – the domain to be retrieved from the server. |
---|---|
Returns: | the specified domain returned from server. |
Return type: | keystoneclient.v3.domains.Domain |
List domains.
Parameters: | kwargs – allows filter criteria to be passed where supported by the server. |
---|---|
Returns: | a list of domains. |
Return type: | list of keystoneclient.v3.domains.Domain. |
Update a domain.
Parameters: |
|
---|---|
Returns: | the updated domain returned from server. |
Return type: |
Bases: keystoneclient.base.Resource
Represents an EC2 resource.
Bases: keystoneclient.base.ManagerWithFind
Create a new access/secret pair.
Parameters: |
|
---|---|
Returns: | the created access/secret pair returned from server. |
Return type: |
Delete an access/secret pair.
Parameters: |
|
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve an access/secret pair for a given access key.
Parameters: |
|
---|---|
Returns: | the specified access/secret pair returned from server. |
Return type: |
List access/secret pairs for a given user.
Parameters: | user_id (str) – the ID of the user having access/secret pairs will be listed. |
---|---|
Returns: | a list of access/secret pairs. |
Return type: | list of keystoneclient.v3.ec2.EC2 |
Bases: keystoneclient.base.Resource
Represents an Identity endpoint.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity endpoints.
Create an endpoint.
Parameters: |
|
---|---|
Returns: | the created endpoint returned from server. |
Return type: |
Delete an endpoint.
Parameters: | endpoint (str or keystoneclient.v3.endpoints.Endpoint) – the endpoint to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve an endpoint.
Parameters: | endpoint (str or keystoneclient.v3.endpoints.Endpoint) – the endpoint to be retrieved from the server. |
---|---|
Returns: | the specified endpoint returned from server. |
Return type: | keystoneclient.v3.endpoints.Endpoint |
List endpoints.
Parameters: |
|
---|---|
Returns: | a list of endpoints. |
Return type: |
Update an endpoint.
Parameters: |
|
---|---|
Returns: | the updated endpoint returned from server. |
Return type: |
Bases: keystoneclient.base.Resource
Represents an Identity user group.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity groups.
Create a group.
Parameters: |
|
---|---|
Returns: | the created group returned from server. |
Return type: |
Delete a group.
Parameters: | group (str or keystoneclient.v3.groups.Group) – the group to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve a group.
Parameters: | group (str or keystoneclient.v3.groups.Group) – the group to be retrieved from the server. |
---|---|
Returns: | the specified group returned from server. |
Return type: | keystoneclient.v3.groups.Group |
List groups.
Parameters: |
|
---|---|
Returns: | a list of groups. |
Return type: | list of keystoneclient.v3.groups.Group. |
Update a group.
Parameters: |
|
---|---|
Returns: | the updated group returned from server. |
Return type: |
Bases: keystoneclient.base.Resource
Represents an Identity policy.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity policies.
Create a policy.
Parameters: | |
---|---|
Returns: | the created policy returned from server. |
Return type: |
“Delete a policy.
Parameters: | policy (str or keystoneclient.v3.policies.Policy) – the policy to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve a policy.
Parameters: | policy (str or keystoneclient.v3.policies.Policy) – the policy to be retrieved from the server. |
---|---|
Returns: | the specified policy returned from server. |
Return type: | keystoneclient.v3.policies.Policy |
List policies.
Parameters: | kwargs – allows filter criteria to be passed where supported by the server. |
---|---|
Returns: | a list of policies. |
Return type: | list of keystoneclient.v3.policies.Policy. |
Update a policy.
Parameters: |
|
---|---|
Returns: | the updated policy returned from server. |
Return type: |
Bases: keystoneclient.base.Resource
Represents an Identity project.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity projects.
Create a project.
Parameters: |
|
---|---|
Returns: | the created project returned from server. |
Return type: |
Delete a project.
Parameters: | project (str or keystoneclient.v3.projects.Project) – the project to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve a project.
Parameters: |
|
---|---|
Returns: | the specified project returned from server. |
Return type: | |
Raises keystoneclient.exceptions.ValidationError: | |
if subtree_as_list and subtree_as_ids or parents_as_list and parents_as_ids are included at the same time in the call. |
List projects.
Parameters: |
|
---|---|
Returns: | a list of projects. |
Return type: |
Update a project.
Parameters: |
|
---|---|
Returns: | the updated project returned from server. |
Return type: |
Bases: keystoneclient.base.Resource
Represents a Catalog region.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity regions.
Create a region.
Parameters: |
|
---|---|
Returns: | the created region returned from server. |
Return type: |
Delete a region.
Parameters: | region (str or keystoneclient.v3.regions.Region) – the region to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve a region.
Parameters: | region (str or keystoneclient.v3.regions.Region) – the region to be retrieved from the server. |
---|---|
Returns: | the specified region returned from server. |
Return type: | keystoneclient.v3.regions.Region |
List regions.
Parameters: | kwargs – any attributes provided will filter regions on. |
---|---|
Returns: | a list of regions. |
Return type: | list of keystoneclient.v3.regions.Region. |
Update a region.
Parameters: |
|
---|---|
Returns: | the updated region returned from server. |
Return type: |
Bases: keystoneclient.base.Resource
Represents an Identity role assignment.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity roles assignments.
List role assignments.
If no arguments are provided, all role assignments in the system will be listed.
If both user and group are provided, a ValidationError will be raised. If both domain and project are provided, it will also raise a ValidationError.
Parameters: |
|
---|
alias of RoleAssignment
Bases: keystoneclient.base.Resource
Represents an Rule that states one ROle implies another.
Bases: keystoneclient.base.Resource
Represents an Identity role.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity roles.
Check if a user or group has a role on a domain or project.
Parameters: |
|
---|---|
Returns: | the specified role returned from server if it exists. |
Return type: | |
Returns: | Response object with 204 status if specified role doesn’t exist. |
Return type: | requests.models.Response |
Check if an inference rule exists.
Parameters: |
|
---|---|
Returns: | response object with 200 status returned from server. |
Return type: | requests.models.Response |
Create a role.
Parameters: |
|
---|---|
Returns: | the created role returned from server. |
Return type: |
Create an inference rule.
Parameters: |
|
---|
Delete a role.
When a role is deleted all the role inferences that have deleted role as prior role will be deleted as well.
Parameters: | role (str or keystoneclient.v3.roles.Role) – the role to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Delete an inference rule.
Parameters: |
|
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve a role.
Parameters: | role (str or keystoneclient.v3.roles.Role) – the role to be retrieved from the server. |
---|---|
Returns: | the specified role returned from server. |
Return type: | keystoneclient.v3.roles.Role |
Retrieve an inference rule.
Parameters: |
|
---|---|
Returns: | the specified role inference returned from server. |
Return type: |
Grant a role to a user or group on a domain or project.
Parameters: |
|
---|---|
Returns: | the granted role returned from server. |
Return type: |
List roles and role grants.
Parameters: |
|
---|---|
Returns: | a list of roles. |
Return type: | list of keystoneclient.v3.roles.Role |
List role inferences.
Parameters: | kwargs – attributes provided will be passed to the server. |
---|---|
Returns: | a list of roles inferences. |
Return type: | list of keystoneclient.v3.roles.InferenceRule |
Revoke a role from a user or group on a domain or project.
Parameters: |
|
---|---|
Returns: | the revoked role returned from server. |
Return type: | list of keystoneclient.v3.roles.Role |
Update a role.
Parameters: |
|
---|---|
Returns: | the updated role returned from server. |
Return type: |
Bases: keystoneclient.base.Resource
Represents an Identity service.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity services.
Create a service.
Parameters: | |
---|---|
Returns: | the created service returned from server. |
Return type: |
Delete a service.
Parameters: | service (str or keystoneclient.v3.services.Service) – the service to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve a service.
Parameters: | service (str or keystoneclient.v3.services.Service) – the service to be retrieved from the server. |
---|---|
Returns: | the specified service returned from server. |
Return type: | keystoneclient.v3.services.Service |
List services.
Parameters: | |
---|---|
Returns: | a list of services. |
Return type: |
Update a service.
Parameters: |
|
---|---|
Returns: | the updated service returned from server. |
Return type: |
Bases: object
Manager class for manipulating Identity tokens.
Get revoked tokens list.
Parameters: | audit_id_only (bool) – If true, the server is requested to not send token IDs, but only audit IDs instead. New in version 2.2.0. |
---|---|
Returns: | A dict containing signed which is a CMS formatted string if the server signed the response. If audit_id_only is true then the response may be a dict containing revoked which is the list of token audit IDs and expiration times. |
Return type: | dict |
Fetch the data about a token from the identity server.
Parameters: | |
---|---|
Return type: | dict |
Revoke a token.
Parameters: | token (str or keystoneclient.access.AccessInfo) – The token to be revoked. |
---|
Validate a token.
Parameters: |
|
---|---|
Return type: |
Bases: keystoneclient.base.Resource
Represents an Identity user.
Bases: keystoneclient.base.CrudManager
Manager class for manipulating Identity users.
Add the specified user as a member of the specified group.
Parameters: |
|
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Check if the specified user is a member of the specified group.
Parameters: |
|
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Create a user.
Parameters: |
|
---|---|
Returns: | the created user returned from server. |
Return type: |
Warning
The project argument is deprecated as of the 1.7.0 release in favor of default_project and may be removed in the 2.0.0 release.
If both default_project and project is provided, the default_project will be used.
Delete a user.
Parameters: | user (str or keystoneclient.v3.users.User) – the user to be deleted on the server. |
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Retrieve a user.
Parameters: | user (str or keystoneclient.v3.users.User) – the user to be retrieved from the server. |
---|---|
Returns: | the specified user returned from server. |
Return type: | keystoneclient.v3.users.User |
List users.
Parameters: |
|
---|---|
Returns: | a list of users. |
Return type: | list of keystoneclient.v3.users.User. |
Warning
The project argument is deprecated as of the 1.7.0 release in favor of default_project and may be removed in the 2.0.0 release.
If both default_project and project is provided, the default_project will be used.
Remove the specified user from the specified group.
Parameters: |
|
---|---|
Returns: | Response object with 204 status. |
Return type: | requests.models.Response |
Update a user.
Parameters: |
|
---|---|
Returns: | the updated user returned from server. |
Return type: |
Warning
The project argument is deprecated as of the 1.7.0 release in favor of default_project and may be removed in the 2.0.0 release.
If both default_project and project is provided, the default_project will be used.