Call the DescribeDBDisasterRecoveryInstances API to query the disaster recovery instance information of the instance.
Synchronous request.
Name | Type | Required | Example | Description |
|---|---|---|---|---|
InstanceId | String | Yes | mysql-f83edc2e**** | Instance ID. |
The range of returned parameters varies depending on the role of the incoming instance:
Name | Type | Example | Description |
|---|---|---|---|
DisasterRecoveryInstances | Object[] | Please refer to the return example. | The information of the disaster recovery instance of the instance. |
Region | String | cn-shanghai | The region where the disaster recovery instance is located. |
DtsTaskId | String | 9c0c17a0b82f460b87b338d1db8d**** | The ID of the synchronization task between the primary instance and the disaster recovery instance. |
InstanceId | String | mysql-6c7c35fb**** | The ID of the disaster recovery instance. |
DtsTaskName | String | TestTask | The name of the synchronization task between the primary instance and the disaster recovery instance. |
InstanceName | String | DrInstance-test | The name of the disaster recovery instance. |
DtsTaskStatus | String | Running | The status of the synchronization task between the primary instance and the disaster recovery instance. |
SecondsBehindMaster | Integer | 0 | The latency between the disaster recovery instance and the primary instance. |
MasterInstanceId | String | mysql-f83edc2e**** | The ID of the main instance. |
MasterInstanceName | String | Test Instance | The name of the main instance. |
MasterRegion | String | cn-guangzhou | The region where the main instance is located. |
DrDtsTaskId | String | 9c0c17a0b82f460b87b338d1db8d**** | The ID of the synchronization task between the primary instance and the disaster recovery instance. |
DrDtsTaskName | String | TestTask | The name of the synchronization task between the primary instance and the disaster recovery instance. |
DrSecondsBehindMaster | Integer | 1 | The latency between the disaster recovery instance and the primary instance. |
DrDtsTaskStatus | String | Running | The status of the synchronization task between the primary instance and the disaster recovery instance. |
POST /?Action=DescribeDBDisasterRecoveryInstances&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds-mysql.cn-beijing.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "mysql-f83edc2e****" }
{ "ResponseMetadata": { "RequestId": "202507241529338A603E6C7E84B0047221-45a378", "Action": "DescribeDBDisasterRecoveryInstances", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-guangzhou" }, "Result": { "DisasterRecoveryInstances": [ { "DtsTaskId": "9c0c17a0b82f460b87b338d1db8d8189", "DtsTaskName": "TestTask", "DtsTaskStatus": "Running", "InstanceId": "mysql-6c7c35fb6aed", "InstanceName": "测试实例", "Region": "cn- hanghai", "SecondsBehindMaster": 1 } ] } }
For more details, refer to Error codes.