EndpointFilterManager
EndpointFilterManager.OS_EP_FILTER_EXT
EndpointFilterManager.add_endpoint_group_to_project()
EndpointFilterManager.add_endpoint_to_project()
EndpointFilterManager.check_endpoint_group_in_project()
EndpointFilterManager.check_endpoint_in_project()
EndpointFilterManager.delete_endpoint_from_project()
EndpointFilterManager.delete_endpoint_group_from_project()
EndpointFilterManager.list_endpoint_groups_for_project()
EndpointFilterManager.list_endpoints_for_project()
EndpointFilterManager.list_projects_for_endpoint()
EndpointFilterManager.list_projects_for_endpoint_group()
EndpointPolicyManager
EndpointPolicyManager.OS_EP_POLICY_EXT
EndpointPolicyManager.check_policy_association_for_endpoint()
EndpointPolicyManager.check_policy_association_for_region_and_service()
EndpointPolicyManager.check_policy_association_for_service()
EndpointPolicyManager.create_policy_association_for_endpoint()
EndpointPolicyManager.create_policy_association_for_region_and_service()
EndpointPolicyManager.create_policy_association_for_service()
EndpointPolicyManager.delete_policy_association_for_endpoint()
EndpointPolicyManager.delete_policy_association_for_region_and_service()
EndpointPolicyManager.delete_policy_association_for_service()
EndpointPolicyManager.get_policy_for_endpoint()
EndpointPolicyManager.list_endpoints_for_policy()
Bases: Resource
Represents an Identity access rule for application credentials.
id: a uuid that identifies the access rule
permitted to use for a given API endpoint
access
application credential is permitted to access
Bases: CrudManager
Manager class for manipulating Identity access rules.
Delete an access rule.
access_rule (str or
keystoneclient.v3.access_rules.AccessRule
) – the access rule to be deleted
user (string) – User ID
response object with 204 status
requests.models.Response
Find an access rule with attributes matching **kwargs
.
user (string) – User ID
a list of matching access rules
Retrieve an access rule.
access_rule (str or
keystoneclient.v3.access_rules.AccessRule
) – the access rule to be retrieved from the
server
user (string) – User ID
the specified access rule
List access rules.
user (string) – User ID
a list of access rules
alias of AccessRule
Bases: Resource
Represents an Identity application credential.
id: a uuid that identifies the application credential
user: the user who owns the application credential
name: application credential name
secret: application credential secret
description: application credential description
expires_at: expiry time
roles: role assignments on the project
applied
application credential may be used for
Bases: CrudManager
Manager class for manipulating Identity application credentials.
Create a credential.
name (string) – application credential name
user (string) – User ID
secret – application credential secret
description – application credential description
expires_at (datetime.datetime) – expiry time
roles (List) – list of roles on the project. Maybe a list of IDs or a list of dicts specifying role name and domain
unrestricted (bool) – whether the application credential has restrictions applied
access_rules (List) – a list of dicts representing access rules
the created application credential
keystoneclient.v3.application_credentials.ApplicationCredential
Delete an application credential.
application_credential – the application credential to be deleted
response object with 204 status
requests.models.Response
Find an application credential with attributes matching **kwargs
.
user (string) – User ID
a list of matching application credentials
list of
keystoneclient.v3.application_credentials.ApplicationCredential
Retrieve an application credential.
application_credential – the credential to be retrieved from the server
the specified application credential
keystoneclient.v3.application_credentials.ApplicationCredential
List application credentials.
user (string) – User ID
a list of application credentials
list of
keystoneclient.v3.application_credentials.ApplicationCredential
alias of ApplicationCredential
Bases: Manager
Retrieve auth context specific information.
The information returned by the auth routes is entirely dependent on the authentication information provided by the user.
List Domains that the specified token can be rescoped to.
a list of domains.
list of keystoneclient.v3.domains.Domain
.
List projects that the specified token can be rescoped to.
a list of projects.
List Systems that the specified token can be rescoped to.
At the moment this is either empty or “all”.
a list of systems.
list of keystoneclient.v3.systems.System
.
Bases: HTTPClient
Client for the OpenStack Identity API v3.
session (keystoneauth1.session.Session) – Session for requests. (optional)
user_id (string) – User ID for authentication. (optional)
username (string) – Username for authentication. (optional)
user_domain_id (string) – User’s domain ID for authentication. (optional)
user_domain_name (string) – User’s domain name for authentication. (optional)
password (string) – Password for authentication. (optional)
token (string) – Token for authentication. (optional)
domain_id (string) – Domain ID for domain scoping. (optional)
domain_name (string) – Domain name for domain scoping. (optional)
project_id (string) – Project ID for project scoping. (optional)
project_name (string) – Project name for project scoping. (optional)
project_domain_id (string) – Project’s domain ID for project scoping. (optional)
project_domain_name (string) – Project’s domain name for project scoping. (optional)
tenant_name (string) – Tenant name. (optional) The tenant_name keyword argument is deprecated as of the 1.7.0 release in favor of project_name and may be removed in the 2.0.0 release.
tenant_id (string) – Tenant id. (optional) The tenant_id keyword argument is deprecated as of the 1.7.0 release in favor of project_id and may be removed in the 2.0.0 release.
auth_url (string) – Identity service endpoint for authorization.
region_name (string) – Name of a region to select when choosing an endpoint from the service catalog.
endpoint (string) – A user-supplied endpoint URL for the identity service. Lazy-authentication is possible for API service calls if endpoint is set at instantiation. (optional)
timeout (integer) – Allows customization of the timeout for client http requests. (optional)
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.
access.AccessInfo if authentication was successful.
keystoneclient.exceptions.AuthorizationFailure – if unable to authenticate or validate the existing authorization token.
keystoneclient.exceptions.Unauthorized – if authentication fails due to invalid token.
Extract and process information from the new auth_ref.
And set the relevant authentication information.
Bases: Resource
Represents an Identity credential.
id: a uuid that identifies the credential
user_id: user ID to which credential belongs
type: the type of credential
blob: the text that represents the credential
project_id: project ID which limits the scope of the credential
Bases: CrudManager
Manager class for manipulating Identity credentials.
Create a credential.
user (str or keystoneclient.v3.users.User
) – the user to which the credential belongs
type (str) – the type of the credential, valid values are:
ec2
, cert
or totp
blob (str) – the arbitrary blob of the credential data, to be parsed according to the type
project (str or keystoneclient.v3.projects.Project
) – the project which limits the scope of the credential,
this attribbute is mandatory if the credential type is
ec2
kwargs – any other attribute provided will be passed to the server
the created credential
Delete a credential.
credential (str or
keystoneclient.v3.credentials.Credential
) – the credential to be deleted
response object with 204 status
requests.models.Response
Retrieve a credential.
credential (str or
keystoneclient.v3.credentials.Credential
) – the credential to be retrieved from the server
the specified credential
List credentials.
kwargs – If user_id or type is specified then credentials will be filtered accordingly.
a list of credentials
alias of Credential
Update a credential.
credential (str or
keystoneclient.v3.credentials.Credential
) – the credential to be updated on the server
user (str or keystoneclient.v3.users.User
) – the new user to which the credential belongs
type (str) – the new type of the credential, valid values are:
ec2
, cert
or totp
blob (str) – the new blob of the credential data and may be removed in the future release.
project (str or keystoneclient.v3.projects.Project
) – the new project which limits the scope of the
credential, this attribute is mandatory if the
credential type is ec2
kwargs – any other attribute provided will be passed to the server
the updated credential
Bases: Resource
An object representing a domain config association.
This resource object does not necessarily contain fixed attributes, as new attributes are added in the server, they are supported here directly. The currently supported configs are identity and ldap.
Bases: Manager
Manager class for manipulating domain config associations.
Create a config for a domain.
domain (str or keystoneclient.v3.domains.Domain
) – the domain where the config is going to be applied.
config (dict) – a dictionary of domain configurations.
Example of the config
parameter:
{
"identity": {
"driver": "ldap"
},
"ldap": {
"url": "ldap://myldap.com:389/",
"user_tree_dn": "ou=Users,dc=my_new_root,dc=org"
}
}
the created domain config returned from server.
Delete a config for a domain.
domain (str or keystoneclient.v3.domains.Domain
) – the domain which the config will be deleted on
the server.
Response object with 204 status.
requests.models.Response
Get a config for a domain.
domain (str or keystoneclient.v3.domains.Domain
) – the domain for which the config is defined.
the domain config returned from server.
alias of DomainConfig
Update a config for a domain.
domain (str or keystoneclient.v3.domains.Domain
) – the domain where the config is going to be updated.
config (dict) – a dictionary of domain configurations.
Example of the config
parameter:
{
"identity": {
"driver": "ldap"
},
"ldap": {
"url": "ldap://myldap.com:389/",
"user_tree_dn": "ou=Users,dc=my_new_root,dc=org"
}
}
the updated domain config returned from server.
Bases: Resource
Represents an Identity domain.
id: a uuid that identifies the domain
name: the name of the domain
description: a description of the domain
enabled: determines whether the domain is enabled
Bases: CrudManager
Manager class for manipulating Identity domains.
Create a domain.
name (str) – the name of the domain.
description (str) – a description of the domain.
enabled (bool) – whether the domain is enabled.
kwargs – any other attribute provided will be passed to the server.
the created domain returned from server.
“Delete a domain.
domain (str or keystoneclient.v3.domains.Domain
) – the domain to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve a domain.
domain (str or keystoneclient.v3.domains.Domain
) – the domain to be retrieved from the server.
the specified domain returned from server.
List domains.
kwargs – allows filter criteria to be passed where supported by the server.
a list of domains.
list of keystoneclient.v3.domains.Domain
.
Update a domain.
domain (str or keystoneclient.v3.domains.Domain
) – the domain to be updated on the server.
name (str) – the new name of the domain.
description (str) – the new description of the domain.
enabled (bool) – whether the domain is enabled.
kwargs – any other attribute provided will be passed to the server.
the updated domain returned from server.
Bases: Resource
Represents an EC2 resource.
id: a string that identifies the EC2 resource.
user_id: the ID field of a pre-existing user in the backend.
project_id: the ID field of a pre-existing project in the backend.
access: a string representing access key of the access/secret pair.
secret: a string representing the secret of the access/secret pair.
Bases: ManagerWithFind
Create a new access/secret pair.
user_id (str or keystoneclient.v3.users.User
) – the ID of the user having access/secret pair.
project_id (str or keystoneclient.v3.projects.Project
) – the ID of the project having access/secret pair.
the created access/secret pair returned from server.
Delete an access/secret pair.
user_id (str or keystoneclient.v3.users.User
) – the ID of the user whose access/secret pair will be
deleted on the server.
access (str) – the access key whose access/secret pair will be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve an access/secret pair for a given access key.
user_id (str or keystoneclient.v3.users.User
) – the ID of the user whose access/secret pair will be
retrieved from the server.
access (str) – the access key whose access/secret pair will be retrieved from the server.
the specified access/secret pair returned from server.
List access/secret pairs for a given user.
user_id (str) – the ID of the user having access/secret pairs will be listed.
a list of access/secret pairs.
list of keystoneclient.v3.ec2.EC2
Bases: Resource
Represents an identity endpoint group.
id: a UUID that identifies the endpoint group
name: the endpoint group name
description: the endpoint group description
what endpoint entities are part of the group
Bases: CrudManager
Manager class for Endpoint Groups.
Check if an endpoint group exists.
endpoint_group (str or keystoneclient.v3.endpoint_groups.EndpointGroup
) – the endpoint group to be checked against the
server.
none if the specified endpoint group exists.
Create an endpoint group.
name (str) – the name of the endpoint group.
filters (str) – representation of filters in the format of JSON that define what endpoint entities are part of the group.
description (str) – a description of the endpoint group.
kwargs – any other attribute provided will be passed to the server.
the created endpoint group returned from server.
Delete an endpoint group.
endpoint_group (str or keystoneclient.v3.endpoint_groups.EndpointGroup
) – the endpoint group to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve an endpoint group.
endpoint_group (str or keystoneclient.v3.endpoint_groups.EndpointGroup
) – the endpoint group to be retrieved from the
server.
the specified endpoint group returned from server.
List endpoint groups.
Any parameter provided will be passed to the server.
a list of endpoint groups.
alias of EndpointGroup
Update an endpoint group.
name (str) – the new name of the endpoint group.
filters (str) – the new representation of filters in the format of JSON that define what endpoint entities are part of the group.
description (str) – the new description of the endpoint group.
kwargs – any other attribute provided will be passed to the server.
the updated endpoint group returned from server.
Bases: Resource
Represents an Identity endpoint.
id: a uuid that identifies the endpoint
interface: ‘public’, ‘admin’ or ‘internal’ network interface
region: geographic location of the endpoint
service_id: service to which the endpoint belongs
url: fully qualified service endpoint
catalog
Bases: CrudManager
Manager class for manipulating Identity endpoints.
Create an endpoint.
service (str or keystoneclient.v3.services.Service
) – the service to which the endpoint belongs.
url (str) – the URL of the fully qualified service endpoint.
interface (str) – the network interface of the endpoint. Valid
values are: public
, admin
or internal
.
region (str or keystoneclient.v3.regions.Region
) – the region to which the endpoint belongs.
enabled (bool) – whether the endpoint is enabled or not, determining if it appears in the service catalog.
kwargs – any other attribute provided will be passed to the server.
the created endpoint returned from server.
Delete an endpoint.
endpoint (str or keystoneclient.v3.endpoints.Endpoint
) – the endpoint to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve an endpoint.
endpoint (str or keystoneclient.v3.endpoints.Endpoint
) – the endpoint to be retrieved from the server.
the specified endpoint returned from server.
List endpoints.
service (str or keystoneclient.v3.services.Service
) – the service of the endpoints to be filtered on.
interface (str) – the network interface of the endpoints to be
filtered on. Valid values are: public
,
admin
or internal
.
enabled (bool) – whether to return enabled or disabled endpoints.
region_id (str) – filter endpoints by the region_id attribute. If both region and region_id are specified, region takes precedence.
kwargs – any other attribute provided will filter endpoints on.
a list of endpoints.
Update an endpoint.
endpoint (str or keystoneclient.v3.endpoints.Endpoint
) – the endpoint to be updated on the server.
service (str or keystoneclient.v3.services.Service
) – the new service to which the endpoint belongs.
url (str) – the new URL of the fully qualified service endpoint.
interface (str) – the new network interface of the endpoint. Valid
values are: public
, admin
or internal
.
region (str or keystoneclient.v3.regions.Region
) – the new region to which the endpoint belongs.
enabled (bool) – determining if the endpoint appears in the service catalog by enabling or disabling it.
kwargs – any other attribute provided will be passed to the server.
the updated endpoint returned from server.
Bases: Resource
Represents an Identity user group.
id: a uuid that identifies the group
name: group name
description: group description
Bases: CrudManager
Manager class for manipulating Identity groups.
Create a group.
name (str) – the name of the group.
domain (str or keystoneclient.v3.domains.Domain
) – the domain of the group.
description (str) – a description of the group.
kwargs – any other attribute provided will be passed to the server.
the created group returned from server.
Delete a group.
group (str or keystoneclient.v3.groups.Group
) – the group to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve a group.
group (str or keystoneclient.v3.groups.Group
) – the group to be retrieved from the server.
the specified group returned from server.
List groups.
user (str or keystoneclient.v3.users.User
) – the user of the groups to be filtered on.
domain (str or keystoneclient.v3.domains.Domain
) – the domain of the groups to be filtered on.
kwargs – any other attribute provided will filter groups on.
a list of groups.
list of keystoneclient.v3.groups.Group
.
Update a group.
group (str or keystoneclient.v3.groups.Group
) – the group to be updated on the server.
name (str) – the new name of the group.
description (str) – the new description of the group.
kwargs – any other attribute provided will be passed to server.
the updated group returned from server.
Bases: Resource
Represents a project limit.
id: a UUID that identifies the project limit
service_id: a UUID that identifies the service for the limit
region_id: a UUID that identifies the region for the limit
project_id: a UUID that identifies the project for the limit
resource_name: the name of the resource to limit
resource_limit: the limit to apply to the project
description: a description for the project limit
Bases: CrudManager
Manager class for project limits.
Create a project-specific limit.
project (str or keystoneclient.v3.projects.Project
) – the project to create a limit for.
service (str or keystoneclient.v3.services.Service
) – the service that owns the resource to limit.
resource_name (str) – the name of the resource to limit
resource_limit (int) – the quantity of the limit
description (str) – a description of the limit
region (str or keystoneclient.v3.regions.Region
) – region the limit applies to
a reference of the created limit
Delete a project-specific limit.
limit (str or keystoneclient.v3.limit.Limit
) – the project-specific limit to be deleted.
Response object with 204 status
requests.models.Response
Retrieve a project limit.
limit (str or keystoneclient.v3.limit.Limit
) – the project-specific limit to be retrieved.
a project-specific limit
keystoneclient.v3.limit.Limit
List project-specific limits.
Any parameter provided will be passed to the server as a filter
service (UUID or keystoneclient.v3.services.Service
) – service to filter limits by
region (UUID or keystoneclient.v3.regions.Region
) – region to filter limits by
resource_name (str) – the name of the resource to filter limits by
a list of project-specific limits.
list of keystoneclient.v3.limits.Limit
Update a project-specific limit.
limit – a limit to update
project (str or keystoneclient.v3.projects.Project
) – the project ID of the limit to update
resource_limit – the limit of the limit’s resource to update
description (str) – a description of the limit
resource_limit: int
a reference of the updated limit.
Bases: Resource
Represents an Identity policy.
id: a uuid that identifies the policy
blob: a policy document (blob)
type: the MIME type of the policy blob
Bases: CrudManager
Manager class for manipulating Identity policies.
Create a policy.
blob (str) – the policy document.
type (str) – the MIME type of the policy blob.
kwargs – any other attribute provided will be passed to the server.
the created policy returned from server.
“Delete a policy.
policy (str or keystoneclient.v3.policies.Policy
) – the policy to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve a policy.
policy (str or keystoneclient.v3.policies.Policy
) – the policy to be retrieved from the server.
the specified policy returned from server.
List policies.
kwargs – allows filter criteria to be passed where supported by the server.
a list of policies.
list of keystoneclient.v3.policies.Policy
.
Update a policy.
policy (str or keystoneclient.v3.policies.Policy
) – the policy to be updated on the server.
blob (str) – the new policy document.
type (str) – the new MIME type of the policy blob.
kwargs – any other attribute provided will be passed to the server.
the updated policy returned from server.
Bases: Resource
Represents an Identity project.
id: a uuid that identifies the project
name: project name
description: project description
enabled: boolean to indicate if project is enabled
parent_id: a uuid representing this project’s parent in hierarchy
project in the hierarchy
project in the hierarchy
Bases: CrudManager
Manager class for manipulating Identity projects.
Add a tag to a project.
project – project to add a tag to.
tag – str name of tag.
Check if tag is associated with project.
project – project to check tags for.
tag – str name of tag
true if tag is associated, false otherwise
Create a project.
name (str) – the name of the project.
domain (str or keystoneclient.v3.domains.Domain
) – the domain of the project.
description (str) – the description of the project.
enabled (bool) – whether the project is enabled.
parent (str or keystoneclient.v3.projects.Project
) – the parent of the project in the hierarchy.
kwargs – any other attribute provided will be passed to the server.
the created project returned from server.
Delete a project.
project (str or keystoneclient.v3.projects.Project
) – the project to be deleted on the server.
Response object with 204 status.
requests.models.Response
Remove tag from project.
projectd – project to remove tag from.
tag – str name of tag to remove from project
Find a single item with attributes matching **kwargs
.
Retrieve a project.
project (str or keystoneclient.v3.projects.Project
) – the project to be retrieved from the server.
subtree_as_list (bool) – retrieve projects below this project in the hierarchy as a flat list. It only includes the projects in which the current user has role assignments on.
parents_as_list (bool) – retrieve projects above this project in the hierarchy as a flat list. It only includes the projects in which the current user has role assignments on.
subtree_as_ids (bool) – retrieve the IDs from the projects below this project in the hierarchy as a structured dictionary.
parents_as_ids (bool) – retrieve the IDs from the projects above this project in the hierarchy as a structured dictionary.
the specified project returned from server.
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.
domain (str or keystoneclient.v3.domains.Domain
) – the domain of the projects to be filtered on.
user (str or keystoneclient.v3.users.User
) – filter in projects the specified user has role
assignments on.
parent (str or keystoneclient.v3.projects.Project
) – filter in projects the specified project is a parent
for
kwargs – any other attribute provided will filter projects on.
Project tags filter keyword: tags
, tags_any
,
not_tags
, and not_tags_any
. tag attribute type
string. Pass in a comma separated string to filter
with multiple tags.
a list of projects.
List tags associated with project.
project – project to list tags for.
list of str tag names
Update a project.
project (str or keystoneclient.v3.projects.Project
) – the project to be updated on the server.
name (str) – the new name of the project.
domain (str or keystoneclient.v3.domains.Domain
) – the new domain of the project.
description (str) – the new description of the project.
enabled (bool) – whether the project is enabled.
kwargs – any other attribute provided will be passed to server.
the updated project returned from server.
Update tag list of a project.
Replaces current tag list with list specified in tags parameter.
project – project to update.
tags – list of str tag names to add to the project
list of tags
Bases: Resource
Represents a Catalog region.
id: a string that identifies the region.
description: a string that describes the region.
field. Allows for hierarchical region organization.
enabled: determines whether the endpoint appears in the catalog.
Bases: CrudManager
Manager class for manipulating Identity regions.
Create a region.
id (str) – the unique identifier of the region. If not specified an ID will be created by the server.
description (str) – the description of the region.
enabled (bool) – whether the region is enabled or not, determining if it appears in the catalog.
parent_region (str or keystoneclient.v3.regions.Region
) – the parent of the region in the hierarchy.
kwargs – any other attribute provided will be passed to the server.
the created region returned from server.
Delete a region.
region (str or keystoneclient.v3.regions.Region
) – the region to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve a region.
region (str or keystoneclient.v3.regions.Region
) – the region to be retrieved from the server.
the specified region returned from server.
List regions.
kwargs – any attributes provided will filter regions on.
a list of regions.
list of keystoneclient.v3.regions.Region
.
Update a region.
region (str or keystoneclient.v3.regions.Region
) – the region to be updated on the server.
description (str) – the new description of the region.
enabled (bool) – determining if the region appears in the catalog by enabling or disabling it.
parent_region (str or keystoneclient.v3.regions.Region
) – the new parent of the region in the hierarchy.
kwargs – any other attribute provided will be passed to server.
the updated region returned from server.
Bases: Resource
Represents a registered limit.
id: a UUID that identifies the registered limit
service_id: a UUID that identifies the service for the limit
region_id: a UUID that identifies the region for the limit
resource_name: the name of the resource to limit
default_limit: the default limit for projects to assume
description: a description of the registered limit
Bases: CrudManager
Manager class for registered limits.
Create a registered limit.
service (str) – a UUID that identifies the service for the limit.
resource_name (str) – the name of the resource to limit.
default_limit (int) – the default limit for projects to assume.
description (str) – a string that describes the limit
region (str) – a UUID that identifies the region for the limit.
a reference of the created registered limit.
Delete a registered limit.
registered_limit (str or keystoneclient.v3.registered_limits.RegisteredLimit
) – the registered limit to delete.
Response object with 204 status.
requests.models.Response
Retrieve a registered limit.
registered_limit (str or keystoneclient.v3.registered_limits.RegisteredLimit
) – the registered limit to get.
a specific registered limit.
List registered limits.
Any parameter provided will be passed to the server as a filter.
service (a UUID or keystoneclient.v3.services.Service
) – filter registered limits by service
resource_name (str) – filter registered limits by resource name
region (a UUID or keystoneclient.v3.regions.Region
) – filter registered limits by region
a list of registered limits.
alias of RegisteredLimit
Update a registered limit.
registered_limit – the UUID or reference of the registered limit to update.
registered_limit – str or keystoneclient.v3.registered_limits.RegisteredLimit
service (str) – a UUID that identifies the service for the limit.
resource_name (str) – the name of the resource to limit.
default_limit (int) – the default limit for projects to assume.
description (str) – a string that describes the limit
region (str) – a UUID that identifies the region for the limit.
a reference of the updated registered limit.
Bases: Resource
Represents an Identity role assignment.
role: an object which contains a role uuid
group uuid
containing an uuid
Bases: CrudManager
Manager class for manipulating Identity roles assignments.
Find a single item with attributes matching **kwargs
.
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.
user – User to be used as query filter. (optional)
group – Group to be used as query filter. (optional)
project – Project to be used as query filter. (optional)
domain – Domain to be used as query filter. (optional)
system – Boolean to be used to filter system assignments. (optional)
role – Role to be used as query filter. (optional)
effective (boolean) – return effective role assignments. (optional)
os_inherit_extension_inherited_to (string) – return inherited role assignments for either ‘projects’ or ‘domains’. (optional)
include_subtree (boolean) – Include subtree (optional)
include_names (boolean) – Display names instead of IDs. (optional)
alias of RoleAssignment
Bases: Resource
Represents a rule that states one role implies another.
prior_role: this role implies the other
implied_role: this role is implied by the other
Bases: CrudManager
Manager class for manipulating Identity inference rules.
Check if an inference rule exists.
Valid HTTP return codes:
204: The rule inference exists
404: A role cannot be found
prior_role – the role which implies implied_role
.
implied_role – the role which is implied by prior_role
.
response object with 204 status returned from server.
requests.models.Response
Create an inference rule.
An inference rule is comprised of two roles, a prior role and an implied role. The prior role will imply the implied role.
Valid HTTP return codes:
201: Resource is created successfully
404: A role cannot be found
409: The inference rule already exists
prior_role – the role which implies implied_role
.
implied_role – the role which is implied by prior_role
.
a newly created role inference returned from server.
Delete an inference rule.
When deleting an inference rule, both roles are required. Note that neither role is deleted, only the inference relationship is dissolved.
Valid HTTP return codes:
204: Delete request is accepted
404: A role cannot be found
prior_role – the role which implies implied_role
.
implied_role – the role which is implied by prior_role
.
Response object with 204 status.
requests.models.Response
Find a single item with attributes matching **kwargs
.
Retrieve an inference rule.
Valid HTTP return codes:
200: Inference rule is returned
404: A role cannot be found
prior_role – the role which implies implied_role
.
implied_role – the role which is implied by prior_role
.
the specified role inference returned from server.
List all roles that a role may imply.
Valid HTTP return codes:
200: List of inference rules are returned
404: A role cannot be found
prior_role – the role which implies implied_role
.
the specified role inference returned from server.
List all rule inferences.
Valid HTTP return codes:
200: All inference rules are returned
kwargs – attributes provided will be passed to the server.
a list of inference rules.
alias of InferenceRule
Bases: Resource
Represents an Identity role.
id: a uuid that identifies the role
name: user-facing identifier
domain: optional domain for the role
Bases: CrudManager
Manager class for manipulating Identity roles.
Check if a user or group has a role on a domain or project.
user (str or keystoneclient.v3.users.User
) – check for role grants for the specified user on a
resource. Domain or project must be specified.
User and group are mutually exclusive.
group (str or keystoneclient.v3.groups.Group
) – check for role grants for the specified group on a
resource. Domain or project must be specified.
User and group are mutually exclusive.
system (str) – check for role grants on the system. Project, domain, and system are mutually exclusive.
domain (str or keystoneclient.v3.domains.Domain
) – check for role grants on the specified domain. Either
user or group must be specified. Project, domain, and
system are mutually exclusive.
project (str or keystoneclient.v3.projects.Project
) – check for role grants on the specified project. Either
user or group must be specified. Project, domain, and
system are mutually exclusive.
os_inherit_extension_inherited (bool) – OS-INHERIT will be used. It provides the ability for projects to inherit role assignments from their domains or from parent projects in the hierarchy.
kwargs – any other attribute provided will be passed to server.
the specified role returned from server if it exists.
Response object with 204 status if specified role doesn’t exist.
requests.models.Response
Create a role.
name (str) – the name of the role.
domain (str or keystoneclient.v3.domains.Domain
) – the domain of the role. If a value is passed it is a
domain-scoped role, otherwise it’s a global role.
kwargs – any other attribute provided will be passed to the server.
the created role returned from server.
Delete a role.
When a role is deleted all the role inferences that have deleted role as prior role will be deleted as well.
role (str or keystoneclient.v3.roles.Role
) – the role to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve a role.
role (str or keystoneclient.v3.roles.Role
) – the role to be retrieved from the server.
the specified role returned from server.
Grant a role to a user or group on a domain or project.
role (str or keystoneclient.v3.roles.Role
) – the role to be granted on the server.
user (str or keystoneclient.v3.users.User
) – the specified user to have the role granted on a resource.
Domain or project must be specified. User and group are
mutually exclusive.
group (str or keystoneclient.v3.groups.Group
) – the specified group to have the role granted on a
resource. Domain or project must be specified.
User and group are mutually exclusive.
system (str) – system information to grant the role on. Project, domain, and system are mutually exclusive.
domain (str or keystoneclient.v3.domains.Domain
) – the domain in which the role will be granted. Either
user or group must be specified. Project, domain, and
system are mutually exclusive.
project (str or keystoneclient.v3.projects.Project
) – the project in which the role will be granted. Either
user or group must be specified. Project, domain, and
system are mutually exclusive.
os_inherit_extension_inherited (bool) – OS-INHERIT will be used. It provides the ability for projects to inherit role assignments from their domains or from parent projects in the hierarchy.
kwargs – any other attribute provided will be passed to server.
the granted role returned from server.
List roles and role grants.
user (str or keystoneclient.v3.users.User
) – filter in role grants for the specified user on a
resource. Domain or project must be specified.
User and group are mutually exclusive.
group (str or keystoneclient.v3.groups.Group
) – filter in role grants for the specified group on a
resource. Domain or project must be specified.
User and group are mutually exclusive.
domain (str or keystoneclient.v3.domains.Domain
) – filter in role grants on the specified domain. Either
user or group must be specified. Project, domain, and
system are mutually exclusive.
project (str or keystoneclient.v3.projects.Project
) – filter in role grants on the specified project. Either
user or group must be specified. Project, domain and
system are mutually exclusive.
os_inherit_extension_inherited (bool) – OS-INHERIT will be used. It provides the ability for projects to inherit role assignments from their domains or from parent projects in the hierarchy.
kwargs – any other attribute provided will filter roles on.
a list of roles.
list of keystoneclient.v3.roles.Role
Revoke a role from a user or group on a domain or project.
user (str or keystoneclient.v3.users.User
) – revoke role grants for the specified user on a
resource. Domain or project must be specified.
User and group are mutually exclusive.
group (str or keystoneclient.v3.groups.Group
) – revoke role grants for the specified group on a
resource. Domain or project must be specified.
User and group are mutually exclusive.
system (str) – revoke role grants on the system. Project, domain, and system are mutually exclusive.
domain (str or keystoneclient.v3.domains.Domain
) – revoke role grants on the specified domain. Either
user or group must be specified. Project, domain, and
system are mutually exclusive.
project (str or keystoneclient.v3.projects.Project
) – revoke role grants on the specified project. Either
user or group must be specified. Project, domain, and
system are mutually exclusive.
os_inherit_extension_inherited (bool) – OS-INHERIT will be used. It provides the ability for projects to inherit role assignments from their domains or from parent projects in the hierarchy.
kwargs – any other attribute provided will be passed to server.
the revoked role returned from server.
list of keystoneclient.v3.roles.Role
Update a role.
role (str or keystoneclient.v3.roles.Role
) – the role to be updated on the server.
name (str) – the new name of the role.
kwargs – any other attribute provided will be passed to server.
the updated role returned from server.
Bases: Resource
Represents an Identity service.
id: a uuid that identifies the service
name: the user-facing name of the service (e.g. Keystone)
description: a description of the service
type: the type of the service (e.g. ‘compute’, ‘identity’)
enabled: determines whether the service appears in the catalog
Bases: CrudManager
Manager class for manipulating Identity services.
Create a service.
name (str) – the name of the service.
type (str) – the type of the service.
enabled (bool) – whether the service appears in the catalog.
description (str) – the description of the service.
kwargs – any other attribute provided will be passed to the server.
the created service returned from server.
Delete a service.
service (str or keystoneclient.v3.services.Service
) – the service to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve a service.
service (str or keystoneclient.v3.services.Service
) – the service to be retrieved from the server.
the specified service returned from server.
List services.
name (str) – the name of the services to be filtered on.
type (str) – the type of the services to be filtered on.
kwargs – any other attribute provided will filter services on.
a list of services.
Update a service.
service (str or keystoneclient.v3.services.Service
) – the service to be updated on the server.
name (str) – the new name of the service.
type (str) – the new type of the service.
enabled (bool) – whether the service appears in the catalog.
description (str) – the new description of the service.
kwargs – any other attribute provided will be passed to server.
the updated service returned from server.
Bases: object
Manager class for manipulating Identity tokens.
Get revoked tokens list.
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.
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.
dict
Fetch the data about a token from the identity server.
token (str) – The ID of the token to be fetched.
include_catalog (bool) – Whether the service catalog should be included in the response.
allow_expired – If True the token will be validated and returned if it has already expired.
access_rules_support (float) – Version number indicating that the client is capable of enforcing keystone access rules, if unset this client does not support access rules.
dict
Revoke a token.
token (str or keystoneclient.access.AccessInfo
) – The token to be revoked.
Validate a token.
token (str or keystoneclient.access.AccessInfo
) – The token to be validated.
include_catalog – If False, the response is requested to not include the catalog.
allow_expired (bool) – If True the token will be validated and returned if it has already expired.
access_rules_support (float) – Version number indicating that the client is capable of enforcing keystone access rules, if unset this client does not support access rules.
Bases: Resource
Represents an Identity user.
id: a uuid that identifies the user
Bases: CrudManager
Manager class for manipulating Identity users.
Add the specified user as a member of the specified group.
user (str or keystoneclient.v3.users.User
) – the user to be added to the group.
group (str or keystoneclient.v3.groups.Group
) – the group to put the user in.
Response object with 204 status.
requests.models.Response
Check if the specified user is a member of the specified group.
user (str or keystoneclient.v3.users.User
) – the user to be verified in the group.
group (str or keystoneclient.v3.groups.Group
) – the group to check the user in.
Response object with 204 status.
requests.models.Response
Create a user.
name (str) – the name of the user.
domain (str or keystoneclient.v3.domains.Domain
) – the domain of the user.
project (str or keystoneclient.v3.projects.Project
) – the default project of the user.
(deprecated, see warning below)
password (str) – the password for the user.
email (str) – the email address of the user.
description (str) – a description of the user.
enabled (bool) – whether the user is enabled.
default_project (str or
keystoneclient.v3.projects.Project
) – the default project of the user.
kwargs – any other attribute provided will be passed to the server.
the created user returned from server.
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.
user (str or keystoneclient.v3.users.User
) – the user to be deleted on the server.
Response object with 204 status.
requests.models.Response
Retrieve a user.
user (str or keystoneclient.v3.users.User
) – the user to be retrieved from the server.
the specified user returned from server.
List users.
project (str or keystoneclient.v3.projects.Project
) – the default project of the users to be filtered on.
(deprecated, see warning below)
domain (str or keystoneclient.v3.domains.Domain
) – the domain of the users to be filtered on.
group (str or keystoneclient.v3.groups.Group
) – the group in which the users are member of.
default_project (str or
keystoneclient.v3.projects.Project
) – the default project of the users to be filtered
on.
kwargs – any other attribute provided will filter users on.
a list of users.
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.
user (str or keystoneclient.v3.users.User
) – the user to be removed from the group.
group (str or keystoneclient.v3.groups.Group
) – the group to remove the user from.
Response object with 204 status.
requests.models.Response
Update a user.
user (str or keystoneclient.v3.users.User
) – the user to be updated on the server.
name (str) – the new name of the user.
domain (str or keystoneclient.v3.domains.Domain
) – the new domain of the user.
project (str or keystoneclient.v3.projects.Project
) – the new default project of the user.
(deprecated, see warning below)
password (str) – the new password of the user.
email (str) – the new email of the user.
description (str) – the newdescription of the user.
enabled (bool) – whether the user is enabled.
default_project (str or
keystoneclient.v3.projects.Project
) – the new default project of the user.
kwargs – any other attribute provided will be passed to server.
the updated user returned from server.
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.
Update the password for the user the token belongs to.
old_password (str) – the user’s old password
new_password (str) – the user’s new password
Response object with 204 status.
requests.models.Response
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.