|
pyrax
Python Bindings for the Rackspace Cloud
|
This class handles operations on the users in a Cloud Database. More...
Public Member Functions | |
| def | change_user_password |
| Changes the password for the user to the supplied value. | |
| def | list_user_access |
| Returns a list of all database names for which the specified user has access rights. | |
| def | grant_user_access |
| Gives access to the databases listed in `db_names` to the user. | |
| def | revoke_user_access |
| Revokes access to the databases listed in `db_names` for the user. | |
This class handles operations on the users in a Cloud Database.
| def change_user_password | ( | self, | |
| user, | |||
| new_pass | |||
| ) |
Changes the password for the user to the supplied value.
Returns None upon success; raises PasswordChangeFailed if the call does not complete successfully.
| def grant_user_access | ( | self, | |
| user, | |||
| db_names, | |||
strict = True |
|||
| ) |
Gives access to the databases listed in `db_names` to the user.
You may pass in either a single db or a list of dbs.
If any of the databases do not exist, a NoSuchDatabase exception will be raised, unless you specify `strict=False` in the call.
| def list_user_access | ( | self, | |
| user | |||
| ) |
Returns a list of all database names for which the specified user has access rights.
| def revoke_user_access | ( | self, | |
| user, | |||
| db_names, | |||
strict = True |
|||
| ) |
Revokes access to the databases listed in `db_names` for the user.
If any of the databases do not exist, a NoSuchDatabase exception will be raised, unless you specify `strict=False` in the call.
1.7.6.1