查询PostgreSQL实例的pg_hba.conf文件的配置 接口描述 查询PostgreSQL实例的pghba.conf文件的配置。 请求方法 GET URI /v1/instuser/hbaconfig 请求参数 名称 位置 类型 必选 说明 prodInstId query Long 是 实例id 响应参数 名称 二级节点 类型 说明 message String 消息提示 statusCode Integer 状态码 returnObj Array 返回结果 line Integer 记录所在行 type String 连接类型。 host:该条记录验证TCP/IP连接,包括SSL连接和非SSL连接。 hostssl:该条记录只验证通过SSL建立的TCP/IP连接。 hostnossl:该条记录只验证通过非SSL建立的TCP/IP连接。 database String 数据库名。 username String 用户名。 address String 客户端IP地址。 netmask String 掩码。 authMethod String 认证方式。 options String 认证方式对应的配置参数。不需要配置时,置为空。 error String 错误信息。 示例 请求示例 {URI}&prodInstId165776586159600008 响应示例 { "statusCode": 800, "message": "SUCCESS", "returnObj": [ { "type": "local", "database": "{all}", "username": "{all}", "address": null, "netmask": null, "authmethod": "trust", "options": null, "error": null }, { "type": "host", "database": "{all}", "username": "{all}", "address": "127.0.0.1", "netmask": "255.255.255.255", "authmethod": "trust", "options": null, "error": null } ] }