Change a manager user password.
| Key | Description |
|---|---|
| task | task name |
| token | token string encrypted. |
| targetid | the id of the CM user whose password is changed |
| newpassword | the new password |
{
"task": "setdbmtpasswd",
"token": "cdfb4c5717170c5e9c6856b4d1c61ee8132bcc7d82bd609066ed9ece2554c47f7926f07dd201b6aa",
"targetid": "yifan",
"newpassword": "1111"
}
| Key | Description |
|---|---|
| task | task name |
| status | execution result, success or failed. |
| note | if failed, a brief description will be given here |
| dblist | the list of the databases of the host |
| userlist | the updated list of the CM users |
dblist is composed of dbs objects with following structure
| Key | Description |
|---|---|
| dbname | database name |
userlist is composed of user objects with following structure
| Key | Description |
|---|---|
| @id | the id of the CM user |
| casauth | the broker authority of the CM user |
| dbcreate | the database creation authority of the CM user |
| statusmonitorauth | the monitoring authority of the CM user |
| dbauth | the databases the CM user takes in charge of |
| dbname | database name |
| dbbrokeraddress | the address of the broker used to connect to that database |
See getdbmtuserinfo for the same structure in detail.
{
"__EXEC_TIME" : "2 ms",
"dblist" : [
{
"dbs" : [
{
"dbname" : "demodb"
}
]
}
],
"note" : "none",
"status" : "success",
"task" : "setdbmtpasswd",
"userlist" : [
{
"user" : [
{
"@id" : "admin",
"casauth" : "admin",
"dbauth" : [
{
"auth_info" : [
{
"@dbid" : "dba",
"dbbrokeraddress" : "localhost,33000",
"dbname" : "demodb"
}
]
}
],
"dbcreate" : "admin",
"statusmonitorauth" : "admin"
},
{
"@id" : "yifan",
"casauth" : "admin",
"dbauth" : [
{
"auth_info" : [
{
"@dbid" : "dba",
"dbbrokeraddress" : "localhost,33000",
"dbname" : "demodb"
}
]
}
],
"dbcreate" : "none",
"statusmonitorauth" : "admin"
}
]
}
]
}