You can call the DescribeAvailableRecoveryTime operation to query the time range to which you can restore data by using a cross-region backup file.
Operation Description
The start time to which data can be restored. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
rds:DescribeAvailableRecoveryTime | READ |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CrossBackupId | integer | Yes | The ID of the instance. You can call the DescribeDBInstances operation to query the ID of the instance. | 14*** |
RegionId | string | No | The ID of the cross-region backup file. | cn-hangzhou |
ResourceGroupId | string | No | The region ID of the source instance. | rg-acfmy***** |
DBInstanceId | string | No | The end time to which data can be restored. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | rm-uf6wjk5***** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RecoveryEndTime": "2019-06-12T07:33:12Z",
"RequestId": "8CCBF4BA-7CE1-47E1-B49F-E97EA200A40D",
"CrossBackupId": 14377,
"RecoveryBeginTime": "2019-06-12T05:22:29Z",
"RegionId": "cn-hangzhou"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoAvailableLogBackup | No available log backup. | No available log backup is found. |
400 | NoAvailableDisasterRestoreBakset | No available disaster restore bakset. | No available restore set is found. |
403 | CrossBackupNotSupport | Specified region not support cross region backup. | Cross-zone backup is not supported in the specified region. |
404 | InvalidBackupSetID.NotFound | Specified backup set ID does not exist. | The backup set does not exist. Specify an available backup set. |
404 | InvalidPage.notFound | Page not found. | The specified parameters are not found. Check your parameters. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2022-09-01 | The error codes of the API operation change. | |||||||||
|