The keystoneclient.v2_0.roles Module

class keystoneclient.v2_0.roles.Role(manager, info, loaded=False)

Bases: keystoneclient.base.Resource

Represents a Keystone role

delete()
class keystoneclient.v2_0.roles.RoleManager(api)

Bases: keystoneclient.base.ManagerWithFind

Manager class for manipulating Keystone roles

add_user_role(user, role, tenant=None)

Adds a role to a user.

If tenant is specified, the role is added just for that tenant, otherwise the role is added globally.

create(name)

Create a role.

delete(role)

Delete a role.

get(role)
list()

List all available roles.

remove_user_role(user, role, tenant=None)

Removes a role from a user.

If tenant is specified, the role is removed just for that tenant, otherwise the role is removed from the user’s global roles.

resource_class

alias of Role

roles_for_user(user, tenant=None)

Previous topic

The keystoneclient.v2_0.endpoints Module

Next topic

The keystoneclient.v2_0.services Module

This Page