All Products
Search
Document Center

ApsaraDB RDS:DescribeAvailableRecoveryTime

Last Updated:May 29, 2023

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.
OperationAccess levelResource typeCondition keyAssociated operation
rds:DescribeAvailableRecoveryTimeREAD
  • RDS
    acs:rds:*:{#accountId}:dbinstance/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CrossBackupIdintegerYes

The ID of the instance. You can call the DescribeDBInstances operation to query the ID of the instance.

14***
RegionIdstringNo

The ID of the cross-region backup file.

cn-hangzhou
ResourceGroupIdstringNo

The region ID of the source instance.

rg-acfmy*****
DBInstanceIdstringNo

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

ParameterTypeDescriptionExample
object
RecoveryEndTimestring

The ID of the request.

2019-06-12T07:33:12Z
RequestIdstring

The operation that you want to perform. Set the value to DescribeAvailableRecoveryTime.

8CCBF4BA-7CE1-47E1-B49F-E97EA200A40D

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400NoAvailableLogBackupNo available log backup.No available log backup is found.
400NoAvailableDisasterRestoreBaksetNo available disaster restore bakset.No available restore set is found.
403CrossBackupNotSupportSpecified region not support cross region backup.Cross-zone backup is not supported in the specified region.
404InvalidBackupSetID.NotFoundSpecified backup set ID does not exist.The backup set does not exist. Specify an available backup set.
404InvalidPage.notFoundPage 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 timeSummary of changesOperation
2022-09-01The error codes of the API operation change.
Change itemChange content
Error CodesThe error codes of the API operation change.
    Error Codes 404 change
    delete Error Codes: 400
    delete Error Codes: 403