调用 DescribeSchemas 接口查询 Schema 列表。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-21a3333b**** | 实例 ID。 |
DBName | String | 否 | testdb | 数据库名称。 |
PageNumber | Integer | 否 | 1 | 当前页查询偏移量,默认值为 1。 |
PageSize | Integer | 否 | 10 | 每页记录数,取值应大于 0 且不超过 1000,默认值为 10。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Total | Integer | 1 | Schema 总数。 |
Schemas | Object[] | 请参见返回示例。 | Schema 列表。 |
POST /?Action=DescribeSchemas&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20231002T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "DBName": "testdb1", "InstanceId": "postgres-ca7b7019****", "PageSize": 10, "PageNumber": 1 }
{ "ResponseMetadata": { "RequestId": "202308041039157B21482F51ABF9041021", "Action": "DescribeSchemas", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": { "Schemas": [ { "DBName": "testdb1", "Owner": "postgres", "SchemaName": "pg_catalog" }, { "DBName": "testdb1", "Owner": "postgres", "SchemaName": "information_schema" }, { "DBName": "testdb1", "Owner": "pg_rds_superuser", "SchemaName": "public" }, { "DBName": "testdb1", "Owner": "yy_123", "SchemaName": "testschema" } ], "Total": 4 } }