云数据库 GEMINIDB-创建数据库账号:请求示例

时间:2024-01-11 14:05:26

请求示例

  • URI样例
    POST https://gaussdb-nosql.cn-north-4.myhuaweicloud.com/v3/v3/0549b4a43100d4f32f51c01c2fe4acdb/redis/054e292c9880d4992f02c0196d3ein12/db-users
  • 创建2个数据库账号。第一个账号名为“redis1”,密码为"****",权限为只读,数据库名称列表为[ "1", "2" ]
    { 
      "users" : [ { 
        "name" : "redis1", 
        "password" : "****", 
        "privilege" : "ReadOnly", 
        "databases" : [ "1", "2" ] 
      }, { 
        "name" : "redis2", 
        "password" : "****", 
        "privilege" : "ReadOnly", 
        "databases" : [ "1", "2" ] 
      } ] 
    }
support.huaweicloud.com/api-nosql/nosql_06_0010.html