Mengubah strategi lifecycle data yang disimpan dalam backup plan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:ModifyStorageStrategy |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BackupPlanId |
string |
Yes |
ID backup plan. Dapatkan nilai parameter ini dengan memanggil API DescribeBackupPlanList. |
dbsqdss5tmh**** |
| BackupRetentionPeriod |
integer |
Yes |
Periode retensi data backup, dalam satuan hari. Nilai yang valid: 0 hingga 1825. Catatan
Nilai default: 730 hari. |
730 |
| DuplicationInfrequentAccessPeriod |
integer |
Yes |
Waktu untuk mengonversi ke penyimpanan Infrequent Access. Nilai ini harus lebih kecil daripada periode Archive Storage (parameter DuplicationArchivePeriod). Untuk informasi selengkapnya tentang penyimpanan Infrequent Access, lihat Storage Type Overview. Catatan
Nilai default: 180 hari. |
190 |
| DuplicationArchivePeriod |
integer |
Yes |
Waktu untuk mengonversi ke Archive Storage. Nilai ini harus lebih kecil daripada periode retensi data backup (parameter BackupRetentionPeriod). Untuk informasi selengkapnya tentang Archive Storage, lihat Storage Type Overview. Catatan
Nilai default: 365 hari. |
366 |
| ClientToken |
string |
No |
String arbitrer yang digunakan untuk memastikan idempotensi permintaan dan mencegah pengiriman duplikat. |
dbstest |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Rincian parameter respons. |
||
| HttpStatusCode |
integer |
Kode status HTTP. |
200 |
| RequestId |
string |
ID permintaan. |
E995F91F-6F89-503B-9F7D-502F58FD**** |
| ErrCode |
string |
Kode error. |
Param.NotFound |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai respons:
|
true |
| ErrMessage |
string |
Pesan error. |
findValidDBSJob error |
| BackupPlanId |
string |
ID backup plan. |
dbsqdss5tmh**** |
| NeedPrecheck |
boolean |
Menunjukkan apakah modifikasi ini memicu precheck. Nilai respons:
|
false |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"RequestId": "E995F91F-6F89-503B-9F7D-502F58FD****",
"ErrCode": "Param.NotFound",
"Success": true,
"ErrMessage": "findValidDBSJob error",
"BackupPlanId": "dbsqdss5tmh****",
"NeedPrecheck": false
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.