Querying Instance DR Status
Function
This API is used to query instance DR status after a DR relationship is established. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
URI
GET /v3.5/{project_id}/instances/{instance_id}/disaster-recovery/monitor?disaster_type={disaster_type}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition Project ID of a tenant in a region. To obtain the value, see Obtaining a Project ID. Constraints N/A Range The value can contain 32 characters. Only letters and digits are allowed. Default Value N/A |
instance_id |
Yes |
String |
Definition Instance ID, which uniquely identifies an instance. Constraints N/A Range The value can contain 36 characters. Only letters and digits are allowed. Default Value N/A |
disaster_type |
Yes |
String |
Definition DR type. Constraints N/A
Range
Default Value N/A |
Request Parameters
None
Response Parameters
Parameter |
Type |
Description |
---|---|---|
instance_id |
String |
Definition Instance ID. Range N/A |
status |
String |
Definition Streaming DR status. Range
|
rpo |
String |
Definition RPO. Range N/A |
rto |
String |
Definition RTO. Range N/A |
rpo_threshold |
String |
Definition RPO threshold. Range N/A |
rto_threshold |
String |
Definition RTO threshold. Range N/A |
switchover_progress |
String |
Definition Switchover progress (%), for example, 40%. Range N/A |
failover_progress |
String |
Definition Failover progress (%), for example, 40%. Range N/A |
Example Request
https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3.5/4a52a8a8f63d4c6d966dff0e20b69738/instances/4d653d1caf0e4a49b4753713fac679e3in14/disaster-recovery/monitor?disaster_type=stream
Example Response
{ "rpo":"0", "rto":"0", "status":"archive", "instance_id":"b3692282395340c5b5421ecf3d7bd6adin14", "rto_threshold":"900", "rpo_threshold":"10", "failover_progress":"", "switchover_progress":"" }
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot