public interface UserService
Modifier and Type | Method and Description |
---|---|
ActionResponse |
create(String instanceId,
TroveDatabaseUser.DatabaseUsers databaseUsers)
Create a user for the database instance
|
ActionResponse |
delete(String instanceId,
String userName)
Deletes a user for the database instance
|
ActionResponse |
grantUserDBAccess(String instanceId,
String userName,
TroveDatabase.Databases databases)
Grant user access to a database on the database instance
|
List<? extends DatabaseUser> |
list(String instanceId)
Returns list of all users for the database instance
|
List<? extends Database> |
listUserDatabases(String instanceId,
String userName)
Returns list of all databases which the user has access to on the database instance
|
ActionResponse |
revokeUserDBAccess(String instanceId,
String userName,
String dbName)
Revoke user access to a database on the database instance
|
List<? extends DatabaseUser> list(String instanceId)
instanceId
- List<? extends Database> listUserDatabases(String instanceId, String userName)
instanceId
- userName
- ActionResponse create(String instanceId, TroveDatabaseUser.DatabaseUsers databaseUsers)
instanceId
- databaseUsers
- ActionResponse delete(String instanceId, String userName)
instanceId
- userName
- ActionResponse grantUserDBAccess(String instanceId, String userName, TroveDatabase.Databases databases)
instanceId
- userName
- databases
- ActionResponse revokeUserDBAccess(String instanceId, String userName, String dbName)
instanceId
- userName
- dbName
- Copyright © 2017. All rights reserved.