调用 DescribeSlots 接口查询复制槽列表。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-96138f57**** | 复制槽所属实例的 ID。 |
SlotName | String | 否 | ExampleOfSlotName | 要查询的复制槽的名称。 |
SlotType | String | 否 | logical | 复制槽的类型。取值:
|
Plugin | String | 否 | pgoutput | 逻辑复制槽配合解析 WAL 日志的插件名称。 说明 当 SlotType 取值为 |
Database | String | 否 | postgres | 复制槽所处的数据库。 说明 当 SlotType 取值为 |
Temporary | Boolean | 否 | true | 是否为临时的复制槽。取值:
|
SlotStatus | String | 否 | ACTIVE | 复制槽的状态。取值:
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Total | Integer | 3 | 实例的复制槽数量。 |
ReplicationSlots | Object[] | 请参见返回示例。 | 实例中指定查询条件下的复制槽。 |
POST /?Action=DescribeSlots&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**** { "InstanceId":"postgres-96138f57****" }
{ "ResponseMetadata": { "RequestId": "202407181601463F9A69D65646D0A65A1B-262141", "Action": "DescribeSlots", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": { "ReplicationSlots": [ { "Database": "null", "Plugin": "null", "SlotName": "Slot000001", "SlotStatus": "INACTIVE", "SlotType": "physical", "Temporary": false, "WalDelay": 0 }, { "Database": "null", "Plugin": "null", "SlotName": "Slot000002", "SlotStatus": "INACTIVE", "SlotType": "physical", "Temporary": false, "WalDelay": 50331608 }, { "Database": "postgres", "Plugin": "pgoutput", "SlotName": "Slot000003", "SlotStatus": "INACTIVE", "SlotType": "logical", "Temporary": false, "WalDelay": 50327792 }, { "Database": "postgres", "Plugin": "pgoutput", "SlotName": "Slot000004", "SlotStatus": "INACTIVE", "SlotType": "logical", "Temporary": false, "WalDelay": 50327736 }, { "Database": "postgres", "Plugin": "pgoutput", "SlotName": "Slot000005", "SlotStatus": "ACTIVE", "SlotType": "logical", "Temporary": true, "WalDelay": 50327624 } ], "Total": 5 } }