UsersΒΆ

class troveclient.v1.users.User(manager, info, loaded=False)

Bases: troveclient.base.Resource

A database user.

class troveclient.v1.users.Users(api)

Bases: troveclient.base.ManagerWithFind

Manage Users resources.

change_passwords(instance, users)

Change the password for one or more users.

create(instance, users)

Create users with permissions to the specified databases.

delete(instance, username, hostname=None)

Delete an existing user in the specified instance.

get(instance, username, hostname=None)

Get a single User from the instance’s Database.

Return type:User.
grant(instance, username, databases, hostname=None)

Allow an existing user permissions to access a database.

list(instance, limit=None, marker=None)

Get a list of all Users from the instance’s Database.

Return type:list of User.
list_access(instance, username, hostname=None)

Show all databases the given user has access to.

resource_class

alias of User

revoke(instance, username, database, hostname=None)

Revoke from an existing user access permissions to a database.

update_attributes(instance, username, newuserattr=None, hostname=None)

Update attributes of a single User in an instance.

Return type:User.

Previous topic

Storage

Project Source

This Page