{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ListGaussMySqlDatabase":{"description":"数据库信息。","properties":{"name":{"description":"数据库名称。","type":"string"},"readonly":{"description":"是否为只读权限:\n- true,表示只读。\n- false,表示可读写。","type":"boolean"}}},"ListGaussMySqlDatabaseUser":{"description":"数据库用户信息。","properties":{"comment":{"description":"数据库用户备注。","type":"string"},"databases":{"description":"数据库列表。","items":{"$ref":"#/definitions/ListGaussMySqlDatabase"},"type":"array"},"host":{"description":"主机地址。","type":"string"},"name":{"description":"数据库用户名。","type":"string"}}},"ListGaussMySqlDatabaseUserResponseBody":{"description":"查询数据库用户列表响应体。","properties":{"total_count":{"description":"实例的数据库用户总数","format":"int32","type":"integer"},"users":{"description":"数据库用户列表。","items":{"$ref":"#/definitions/ListGaussMySqlDatabaseUser"},"type":"array"}},"required":["users"]},"MysqlErrorResponse":{"properties":{"error_code":{"description":"错误码。","example":"DBS.200022","type":"string"},"error_msg":{"description":"错误消息。","example":"实例不存在","type":"string"}},"required":["error_code","error_msg"]}},"description":null,"group_id":"1bf15763f8164608918d180a9b1aa137","host":"gaussdb.cn-north-4.myhuaweicloud.com","id":"000a1a173d6a4e49ba8674b1605ea9da","info_version":"v3","method":"get","name":"ListGaussMySqlDatabaseUser","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/db-users":{"get":{"description":"查询云数据库 TaurusDB实例数据库用户。","operationId":"ListGaussMySqlDatabaseUser","parameters":[{"description":"用户Token。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"******"},{"description":"语言。","in":"header","name":"X-Language","required":false,"type":"string","x-example":"zh-cn"},{"description":"租户在某一region下的project ID。\n\n获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-taurusdb/taurusdb_10_0004.html)。\n","in":"path","name":"project_id","required":true,"type":"string","x-example":"619d3e78f61b4be68bc5aa0b59edcf7b"},{"description":"实例ID。","in":"path","name":"instance_id","required":true,"type":"string","x-example":"a23fb62bd61e4e9e9636fd2225f395bein07"},{"description":"索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。","format":"int32","in":"query","name":"offset","type":"integer","x-example":"0"},{"description":"查询记录数。默认为100,不能为负数,最小值为1,最大值为100。","format":"int32","in":"query","name":"limit","type":"integer","x-example":"100"}],"responses":{"200":{"description":"Success.","examples":{"application/json":{"total_count":1,"users":[{"comment":"database_user_comment","databases":[{"name":"test","readonly":false}],"host":"127.0.0.1","name":"gaussdb_mysql_user1"}]}},"schema":{"$ref":"#/definitions/ListGaussMySqlDatabaseUserResponseBody"}},"400":{"description":"Client error.","schema":{"$ref":"#/definitions/MysqlErrorResponse"}},"500":{"description":"Server error.","schema":{"$ref":"#/definitions/MysqlErrorResponse"}}},"summary":"查询数据库用户","tags":["数据库用户管理"],"x-is-registered":"N","x-request-examples-description-1":"查询数据库用户列表。","x-request-examples-url-1":"GET https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/a23fb62bd61e4e9e9636fd2225f395bein07/db-users?offset=0&limit=100","x-support-sdk":"Y"}}},"product_short":"GaussDB","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询数据库用户","tags":"数据库用户管理","uri":null,"version":"2.0"}