huawei-cloud-api-definitions-RDS 0.1.20260724

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResponse":{"properties":{"error_code":{"description":"错误码。","example":"DBS.200022","type":"string"},"error_msg":{"description":"错误消息。","example":"实例名称已存在。","type":"string"}},"required":["error_code","error_msg"]},"PostgresqlListDbUserResponseBody":{"properties":{"total_count":{"description":"数据库用户总数。","type":"integer"},"users":{"description":"列表中每个元素表示一个数据库用户。","items":{"$ref":"#/definitions/PostgresqlUserForList"},"type":"array"}},"required":["users","total_count"]},"PostgresqlUserAttributes":{"description":"用户的权限属性。","properties":{"rolbypassrls":{"description":"用户是否绕过每个行级安全策略,取值为“true”或“false”。","type":"boolean"},"rolcanlogin":{"description":"用户是否可以登录数据库,取值为“true”或“false”。","type":"boolean"},"rolconnlimit":{"description":"用户连接实例的最大并发连接数。-1表示没有限制。","type":"boolean"},"rolcreatedb":{"description":"用户是否可以创建数据库,取值为“true”或“false”。","type":"boolean"},"rolcreaterole":{"description":"用户是否支持创建其他子用户,取值为“true”或“false”。","type":"boolean"},"rolinherit":{"description":"用户是否自动继承其所属角色的权限,取值为“true”或“false”。","type":"boolean"},"rolreplication":{"description":"用户是否属于复制角色,取值为“true”或“false”。","type":"boolean"},"rolsuper":{"description":"用户是否具有超级用户权限,取值为“true”或“false”。","type":"boolean"}}},"PostgresqlUserForList":{"description":"数据库用户信息。","properties":{"attributes":{"description":"用户的权限属性。","items":{"$ref":"#/definitions/PostgresqlUserAttributes"},"type":"object"},"comment":{"description":"数据库用户备注。","type":"string"},"memberof":{"description":"用户的默认权限。","items":{"type":"string"},"type":"array"},"name":{"description":"帐号名。","type":"string"}},"required":["name"]}},"description":null,"group_id":"b7735f867ef44182af9eb77490a46fbf","host":"rds.cn-north-4.myhuaweicloud.com","id":"a069e2d5f0d84ead888b973c64449de4","info_version":"v3","method":"get","name":"ListPostgresqlDbUserPaginated","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/db_user/detail":{"get":{"description":"在指定实例中查询数据库用户列表。","operationId":"ListPostgresqlDbUserPaginated","parameters":[{"description":"用户Token。","in":"header","name":"x-auth-token","type":"string","x-example":"******"},{"description":"语言","in":"header","name":"X-Language","type":"string","x-example":"zh-cn"},{"description":"项目ID。","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":"e73893ef73754465a8bd2e0857bbf13ein01"},{"description":"分页页码,从1开始。","in":"query","name":"page","required":true,"type":"integer"},{"description":"每页数据条数。取值范围[1, 100]。","in":"query","name":"limit","required":true,"type":"integer"}],"responses":{"200":{"description":"Success.","examples":{"application/json":{"total_count":2,"users":[{"attributes":{"rolbypassrls":false,"rolcanlogin":true,"rolconnlimit":-1,"rolcreatedb":true,"rolcreaterole":true,"rolinherit":true,"rolreplication":true,"rolsuper":false},"comment":"comment","memberof":["pg_monitor","pg_read_all_stats","pg_stat_scan_tables"],"name":"rds"},{"attributes":{"rolbypassrls":false,"rolcanlogin":true,"rolconnlimit":-1,"rolcreatedb":true,"rolcreaterole":true,"rolinherit":true,"rolreplication":true,"rolsuper":false},"comment":"comment","memberof":["pg_monitor","pg_read_all_stats","pg_stat_scan_tables"],"name":"rds001"}]}},"schema":{"$ref":"#/definitions/PostgresqlListDbUserResponseBody"}},"default":{"description":"Client or server error.","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"查询数据库用户列表","tags":["管理数据库和用户(PostgreSQL)"],"x-constraint":"实例在创建、变更规格、修改端口、异常状态或冻结状态下不能执行该操作。","x-request-examples-description-1":"","x-request-examples-url-1":"GET https://rds.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/instances/3d39c18788b54a919bab633874c159dfin01/db_user/detail?page=1&limit=10","x-support-sdk":"Y"}}},"product_short":"RDS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询数据库用户列表","tags":"管理数据库和用户(PostgreSQL)","uri":null,"version":"2.0"}