数据湖探索 DLI-查看数据库的使用者(废弃):响应示例

时间:2024-09-27 11:19:13

响应示例

{
  "is_success": true,
  "message": "",
  "database_name": "dsstest",
  "privileges": [
    {
      "is_admin": true,
      "privileges": [
        "ALL"
      ],
      "user_name": "test"
    },
    {
      "is_admin": false,
      "privileges": [
        "ALTER_TABLE_ADD_PARTITION"
      ],
      "user_name": "scuser1"
    },
    {
      "is_admin": false,
      "privileges": [
        "CREATE_TABLE"
      ],
      "user_name": "scuser2"
    }
  ]
}

调用API出错后,将不会返回上述结果,而是返回错误码和错误信息,详细介绍请参见错误码

support.huaweicloud.com/api-dli/dli_02_0040.html