Get database mode.
| Key |
Description |
| task |
task name |
| token |
token string encrypted. |
| dblist |
database name |
{
"task": "getdbmode",
"token": "cdfb4c5717170c5e6f12e5b1643a2b67132bcc7d82bd6090e92a55cddd5950db7926f07dd201b6aa",
"dblist": "demodb"
}
| Key |
Description |
| task |
task name |
| status |
execution result, success or failed. |
| note |
if failed, a brief description will be given here |
| dbserver |
the list of the requested databases and of their mode |
dbserver is composed of objects with following structure
| Key |
Description |
| dbname |
database name |
| server_mode |
the HA mode of the database server: active, standby, maintenance or unknown |
| server_msg |
the message returned with the mode, it is empty when there is none |
{
"__EXEC_TIME" : "27 ms",
"dbserver" : [
{
"dbname" : "demodb",
"server_mode" : "CS-mode",
"server_msg" : "none"
}
],
"note" : "none",
"status" : "success",
"task" : "getdbmode"
}