Queries the replication slots of a specified PolarDB cluster. You can filter the results by the child node name of the distributed instance.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the PolarDB cluster. |
pc-test123456 |
| SubGroupName |
string |
No |
The name of the child node of the distributed instance, used to filter replication slots. |
testGroup |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| Slots |
array<object> |
The list of replication slots. |
|
|
object |
|||
| DBClusterId |
string |
The ID of the PolarDB cluster to which the replication slot belongs. |
pc-test123456 |
| Database |
string |
The name of the database associated with the replication slot. |
testDB |
| Plugin |
string |
The name of the output plugin used by the logical replication slot. |
testPlugin |
| SlotName |
string |
The name of the replication slot. |
testSlot |
| SlotStatus |
string |
The status of the replication slot. |
active |
| SlotType |
string |
The type of the replication slot. |
logical |
| SubGroupName |
string |
The name of the child node of the distributed instance. |
testGroup |
| SubReplayLag |
string |
The replay lag value of the subscription. |
100 |
| Temporary |
string |
Indicates whether the replication slot is temporary. The value is a string: true or false. |
false |
| WalDelay |
string |
The WAL delay value. |
50 |
Examples
Success response
JSON format
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"Slots": [
{
"DBClusterId": "pc-test123456",
"Database": "testDB",
"Plugin": "testPlugin",
"SlotName": "testSlot",
"SlotStatus": "active",
"SlotType": "logical",
"SubGroupName": "testGroup",
"SubReplayLag": "100",
"Temporary": "false",
"WalDelay": "50"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.