Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 973 Bytes

File metadata and controls

48 lines (39 loc) · 973 Bytes

updateuser

Update database user information.

Request JSON Syntax

Key Description
task task name
token token string encrypted.
dbname database name
username database user name
userpass database user password
groups the groups the database user belongs to
authorization authorities of this user

Request Sample

{
  "task":"updateuser",
  "token":"cdfb4c5717170c5edfc2912f2940ab35013dd1336cf7d77e4cfaae281cffa1417926f07dd201b6aa",
  "dbname":"demodb",
  "username":"yifan",
  "userpass":"1111",
  "groups": {"group":["public"]},
  "authorization":[]
}

Response JSON Syntax

Key Description
task task name
status execution result, success or failed.
note if failed, a brief description will be given here

Response Sample

{
   "__EXEC_TIME" : "148 ms",
   "note" : "none",
   "status" : "success",
   "task" : "updateuser"
}