Queries the time range to which an ApsaraDB for RDS instance can be restored.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeLocalAvailableRecoveryTime

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

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

Response parameters

Parameter Type Example Description
DBInstanceId String rm-uf6wjk5xxxxxxx

The ID of the instance.

RecoveryBeginTime String 2020-03-16T07:59:18Z

The start time of the time range to which the instance can be restored.

RecoveryEndTime String 2020-03-20T08:41:29Z

The end time of the time range to which the instance can be restored.

RequestId String 14E986AC-0F27-4FFB-8EED-9A8A3A2A0309

The ID of the request.

Examples

Sample requests

http(s)://rds.aliyuncs.com/? Action=DescribeLocalAvailableRecoveryTime
&DBInstanceId=rm-uf6wjk5xxxxxxx
&<Common request parameters>

Sample success responses

XML format

<DescribeLocalAvailableRecoveryTimeResponse>
  <RecoveryEndTime>2020-03-20T08:41:29Z</RecoveryEndTime>
  <RecoveryBeginTime>2020-03-16T07:59:18Z</RecoveryBeginTime>
  <RequestId>14E986AC-0F27-4FFB-8EED-9A8A3A2A0309</RequestId>
  <DBInstanceId>rm-uf6wjk5xxxxxxx</DBInstanceId>
</DescribeLocalAvailableRecoveryTimeResponse>

JSON format

{
    "RecoveryEndTime": "2020-03-20T08:41:29Z",
    "RecoveryBeginTime": "2020-03-16T07:59:18Z",
    "RequestId": "14E986AC-0F27-4FFB-8EED-9A8A3A2A0309",
    "DBInstanceId": "rm-uf6wjk5xxxxxxx"
}

Error codes

HTTP status code Error code Error message Description
400 MissingUID The request is missing a uid parameter. The error message returned because the account that you use does not exist.

For a list of error codes, visit the API Error Center.