Create a data backup for an ApsaraDB Tair (Redis OSS-compatible) instance.
Operation description
For the equivalent console operation, see backup and recovery.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:CreateBackup |
create |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
r-bp1zxszhcgatnx**** |
| BackupRetentionPeriod |
integer |
No |
The retention period of this manual backup, in days. Valid values: 7 to 730. A value of -1 means the backup does not expire during the instance lifetime. If not specified, the retention period follows the automatic backup policy. |
60 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| BackupJobID |
string |
The ID of the backup task. |
"1022,2480" |
| RequestId |
string |
The ID of the request. |
2FF6158E-3394-4A90-B634-79C49184**** |
Examples
Success response
JSON format
{
"BackupJobID": "\"1022,2480\"",
"RequestId": "2FF6158E-3394-4A90-B634-79C49184****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.