Restores data from a specified backup file to a Tair (Redis-compatible) instance.
Operation description
For Tair memory-enhanced enterprise edition instances that use the classic architecture, you can restore specified keys to a point in time with precision to the second for granular data recovery.
For all other instance types, use the CreateInstance or CreateTairInstance operation to restore backup data to a new instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:RestoreInstance |
update |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
r-bp1zxszhcgatnx**** |
| BackupId |
string |
No |
The ID of the backup file. You can find backup file IDs by calling the DescribeBackups operation. |
78241**** |
| RestoreType |
string |
No |
The restore method. Valid values:
|
1 |
| RestoreTime |
string |
No |
The restore point in time. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format (UTC). Note
This point in time cannot be earlier than the time when the Data Flashback feature was enabled. |
2021-07-06T07:25:57Z |
| FilterKey |
string |
No |
The keys to restore, which can be specified as a regular expression. To specify multiple keys, separate them with commas (,).
Note
In a regular expression, the asterisk ( |
key:00000007198* |
| TimeShift |
string |
No |
For instances that use the classic architecture, you can apply an offset to the expiration time of restored keys. This applies whether you restore the entire instance or only specific keys. The system calculates a key's remaining time-to-live (TTL) at the specified flashback point in time and then adds this TTL to the Note
|
2021-07-06T08:25:57Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
8D0C0AFC-E9CD-47A4-8395-5C31BF9B**** |
Examples
Success response
JSON format
{
"RequestId": "8D0C0AFC-E9CD-47A4-8395-5C31BF9B****"
}
Error response
JSON format
{
"RequestId" : "AFA391BF-808F-4DA6-80A2-A382108A0945"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ServiceNotSupport | This service not supported. | |
| 400 | MissingParameter | Missing Required Param: BackupId or RestoreTime or RestoreType. | |
| 400 | ResroreParamNotMatch | restoreType is not match with backupId or restoreTime. | |
| 400 | InvalidRestoreTime.Format | Specified restore time is not valid. | |
| 400 | ZoneMigrationError.StillingRunning | Zone migration task is still running | |
| 400 | InvalidBinlog.NotValid | The available binlog is not valid in recovery time. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.