Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
User manager interface More...
Public Member Functions | |
vector< string > | getAccountNames () |
Get a list of account names available on the system. | |
int | createAccount (in string username, in string password) |
Create a new account. | |
int | renameAccount (in string username, in string newUsername) |
Rename an account. | |
int | deleteAccount (in string username) |
Deletes an account. | |
vector< Account > | getAllAccounts () |
Get information about all available user accounts. | |
int | createAccountFull (in string username, in string password, in UserInfo info) |
Create a new account with defined settings. | |
vector< Account > | getAccountsByRole (in string roleName) |
Get a list of accounts that have a given role. | |
Preferences | getDefaultPreferences () |
Get default user preferences. | |
int | setDefaultPreferences (in Preferences prefs) |
Set default user preferences. | |
Public Attributes | |
constant int | ERR_USER_DOESNT_EXIST = 1 |
A user with the given name does not exist. | |
constant int | ERR_USER_NOT_DELETABLE = 2 |
The user is not deletable. | |
constant int | ERR_USER_ALREADY_EXISTS = 1 |
A user with the given name already exists. | |
constant int | ERR_MAX_USERS_REACHED = 2 |
Maximum number of users reached. | |
constant int | ERR_PASSWORD_TOO_SHORT_FOR_SNMP = 3 |
The password is too short to be used as SNMPv3 passphrase. | |
constant int | ERR_INVALID_VALUE = 4 |
Invalid arguments. | |
constant int | ERR_PASSWORD_EMPTY = 5 |
The password must not be empty. | |
constant int | ERR_PASSWORD_TOO_SHORT = 6 |
The password is too short. | |
constant int | ERR_PASSWORD_TOO_LONG = 7 |
The password is too long. | |
constant int | ERR_PASSWORD_CTRL_CHARS = 8 |
The password must not contain control characters. | |
constant int | ERR_PASSWORD_NEED_LOWER = 9 |
The password must contain at least one lower-case character. | |
constant int | ERR_PASSWORD_NEED_UPPER = 10 |
The password must contain at least one upper-case character. | |
constant int | ERR_PASSWORD_NEED_NUMERIC = 11 |
The password must contain at least one numeric character. | |
constant int | ERR_PASSWORD_NEED_SPECIAL = 12 |
The password must contain at least one special character. | |
constant int | ERR_SSH_PUBKEY_DATA_TOO_LARGE = 14 |
The ssh public key data is too large. | |
constant int | ERR_SSH_PUBKEY_INVALID = 15 |
The ssh public key is invalid. | |
constant int | ERR_SSH_PUBKEY_NOT_SUPPORTED = 16 |
The ssh public key is not supported. | |
constant int | ERR_SSH_RSA_PUBKEY_TOO_SHORT = 17 |
The ssh RSA public key is too short. | |
constant int | ERR_USERNAME_INVALID = 18 |
The user name contains one or more invalid character(s). | |
constant int | ERR_NEW_USER_ALREADY_EXISTS = 19 |
A user with the new (renamed) user name already exists. | |
User manager interface
Definition at line 61 of file UserManager.idl.
int usermgmt::UserManager::createAccount | ( | in string | username, |
in string | password | ||
) |
Create a new account.
username | New user name |
password | New password |
int usermgmt::UserManager::createAccountFull | ( | in string | username, |
in string | password, | ||
in UserInfo | info | ||
) |
Create a new account with defined settings.
username | New user name |
password | New password |
info | New user information |
int usermgmt::UserManager::deleteAccount | ( | in string | username | ) |
Deletes an account.
username | Name of user to delete |
vector< string > usermgmt::UserManager::getAccountNames | ( | ) |
Get a list of account names available on the system.
vector< Account > usermgmt::UserManager::getAccountsByRole | ( | in string | roleName | ) |
vector< Account > usermgmt::UserManager::getAllAccounts | ( | ) |
Get information about all available user accounts.
Preferences usermgmt::UserManager::getDefaultPreferences | ( | ) |
Get default user preferences.
int usermgmt::UserManager::renameAccount | ( | in string | username, |
in string | newUsername | ||
) |
Rename an account.
username | Current name of user |
newUsername | New name of the user |
int usermgmt::UserManager::setDefaultPreferences | ( | in Preferences | prefs | ) |
Set default user preferences.
prefs | Default user preferences. |
constant int usermgmt::UserManager::ERR_INVALID_VALUE = 4 |
Invalid arguments.
Definition at line 69 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_MAX_USERS_REACHED = 2 |
Maximum number of users reached.
Definition at line 67 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_NEW_USER_ALREADY_EXISTS = 19 |
A user with the new (renamed) user name already exists.
Definition at line 83 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_CTRL_CHARS = 8 |
The password must not contain control characters.
Definition at line 73 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_EMPTY = 5 |
The password must not be empty.
Definition at line 70 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_NEED_LOWER = 9 |
The password must contain at least one lower-case character.
Definition at line 74 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_NEED_NUMERIC = 11 |
The password must contain at least one numeric character.
Definition at line 76 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_NEED_SPECIAL = 12 |
The password must contain at least one special character.
Definition at line 77 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_NEED_UPPER = 10 |
The password must contain at least one upper-case character.
Definition at line 75 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_TOO_LONG = 7 |
The password is too long.
Definition at line 72 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_TOO_SHORT = 6 |
The password is too short.
Definition at line 71 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_PASSWORD_TOO_SHORT_FOR_SNMP = 3 |
The password is too short to be used as SNMPv3 passphrase.
Definition at line 68 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_SSH_PUBKEY_DATA_TOO_LARGE = 14 |
The ssh public key data is too large.
Definition at line 78 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_SSH_PUBKEY_INVALID = 15 |
The ssh public key is invalid.
Definition at line 79 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_SSH_PUBKEY_NOT_SUPPORTED = 16 |
The ssh public key is not supported.
Definition at line 80 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_SSH_RSA_PUBKEY_TOO_SHORT = 17 |
The ssh RSA public key is too short.
Definition at line 81 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_USER_ALREADY_EXISTS = 1 |
A user with the given name already exists.
Definition at line 66 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_USER_DOESNT_EXIST = 1 |
A user with the given name does not exist.
Definition at line 63 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_USER_NOT_DELETABLE = 2 |
The user is not deletable.
Definition at line 64 of file UserManager.idl.
constant int usermgmt::UserManager::ERR_USERNAME_INVALID = 18 |
The user name contains one or more invalid character(s).
Definition at line 82 of file UserManager.idl.