Querying the Recovery Time Window of WAL Logs
Function
This API is used to query the recovery time window of WAL logs for a read replica. After this API is called, a recovery time window (recovery_min_time, recovery_max_time] is returned. The interval is left-open and right-closed. You can change the value of recovery_target_time to a time point in the time window to set the target replay time. For details about how to modify instance parameters, see Modifying Parameters of a Specified Instance.
- Before calling this API, learn how to authenticate it.
- Before calling this API, learn about request header parameters.
Constraints
- To use this function, contact customer service to obtain the permission required for configuring replication delay for a read replica.
- This API is available only to read replicas of RDS for PostgreSQL 12 or later.
URI
- Parameter description
Table 1 Parameters Parameter
Mandatory
Description
project_id
Yes
Definition
Project ID of a tenant in a region.
To obtain the value, see Obtaining a Project ID.
Constraints
The value cannot be empty.
Range
N/A
Default Value
N/A
instance_id
Yes
Definition
Instance ID.
Constraints
The value cannot be empty.
Range
N/A
Default Value
N/A
Request
Response
- Normal response
Table 2 Parameters Parameter
Type
Description
recovery_min_time
String
Definition
Left boundary of the recovery time window (excluded).
Range
N/A
recovery_max_time
String
Definition
Right boundary of the recovery time window (included).
Range
N/A
- Example normal response
{ "recovery_min_time" : "2024-08-17 19:17:35+10", "recovery_max_time" : "2024-08-20 22:53:28+10" }
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
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