Mengubah kebijakan cadangan otomatis untuk kluster PolarDB Basis Data Relasional Cloud-Native.
Deskripsi operasi
You can also modify the automatic backup policy for a PolarDB cluster in the console. For more information, see backup settings.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyBackupPolicy |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. Catatan
Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri detail semua kluster di Wilayah tertentu, termasuk ID kluster. |
pc-bp13wz9586voc**** |
| PreferredBackupTime |
string |
No |
Pengatur waktu untuk cadangan otomatis. Tentukan waktu dalam UTC dan dalam format |
15:00Z-16:00Z |
| PreferredBackupPeriod |
string |
No |
Siklus cadangan. Nilai valid:
Catatan
|
Monday,Tuesday |
| DataLevel1BackupRetentionPeriod |
string |
No |
Periode retensi untuk cadangan level-1, dalam hari. Nilai valid: 3 hingga 14. Catatan
|
3 |
| DataLevel2BackupRetentionPeriod |
string |
No |
Periode retensi cadangan level-2. Nilai valid:
Catatan
|
0 |
| BackupRetentionPolicyOnClusterDeletion |
string |
No |
Apakah akan menyimpan cadangan saat Anda menghapus Kluster. Nilai valid:
Catatan
Nilai default adalah |
NONE |
| BackupFrequency |
string |
No |
Frekuensi cadangan. Nilai valid:
Catatan
|
Normal |
| DataLevel1BackupFrequency |
string |
No |
Frekuensi cadangan. Nilai valid:
Catatan
|
Normal |
| DataLevel1BackupTime |
string |
No |
Pengatur waktu untuk cadangan otomatis. Tentukan waktu dalam UTC dan dalam format Catatan
|
15:00Z-16:00Z |
| DataLevel1BackupPeriod |
string |
No |
Siklus cadangan level-1. Nilai valid:
Catatan
|
Monday,Tuesday |
| DataLevel2BackupPeriod |
string |
No |
Siklus cadangan level-2. Nilai valid:
Catatan
|
Monday,Tuesday |
| DataLevel2BackupAnotherRegionRegion |
string |
No |
Wilayah tujuan untuk cadangan level-2 lintas wilayah. Untuk informasi selengkapnya tentang Wilayah yang mendukung cadangan lintas wilayah, lihat Tampilan Ikhtisar. Catatan
|
cn-hangzhou |
| DataLevel2BackupAnotherRegionRetentionPeriod |
string |
No |
Periode retensi cadangan level-2 lintas wilayah. Nilai valid:
Catatan
|
30 |
| BackupPolicyLevel |
string |
No |
Tingkat Kebijakan cadangan. Nilai valid:
Catatan
|
Normal |
| AdvancedDataPolicies |
array<object> |
No |
Kebijakan cadangan lanjutan. Catatan
|
|
|
object |
No |
|||
| PolicyId |
string |
No |
The ID of the backup policy. You can call the DescribeBackupPolicy operation to view the ID. |
71930ac2e9f15e41615e10627c****** |
| ActionType |
string |
No |
The action type. Valid values:
|
CREATE |
| RetentionType |
string |
No |
The retention type for the backup set. Valid values:
|
delay |
| RetentionValue |
string |
No |
The number of days to retain the backup. |
7 |
| FilterType |
string |
No |
The filter type for the advanced policy. Valid values:
|
crontab |
| FilterKey |
string |
No |
The scheduling type. Valid values:
Catatan
This parameter is required only if |
dayOfWeek |
| FilterValue |
string |
No |
The backup cycle. |
1,2,3,4,5,6,7 |
| SrcRegion |
string |
No |
The source region for the backup policy. |
cn-shanghai |
| SrcType |
string |
No |
The source type for the backup policy. Valid values:
|
level1 |
| DestRegion |
string |
No |
The destination region for the backup policy. |
cn-beijing |
| DestType |
string |
No |
The destination type for the backup policy. Valid values:
|
level2 |
| OnlyPreserveOneEachHour |
boolean |
No |
The retention policy for hourly backups. Valid values:
Catatan
This parameter cannot be modified and is fixed to |
true |
| AutoCreated |
boolean |
No |
Indicates whether the backup policy is automatically generated by the system. Catatan
This value is automatically generated. You do not need to specify this parameter. |
false |
| OnlyPreserveOneEachDay |
boolean |
No |
The retention policy for backups that are more than 24 hours old. Valid values:
|
true |
| DumpAction |
string |
No |
The method to convert a level-1 backup to a level-2 backup. Valid values:
|
copy |
| BakType |
string |
No |
The backup type. Valid values:
Catatan
This parameter cannot be modified and is fixed to |
F |
| StorageClass |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
C5A5DF0E-5968-4DC1-882E-AC2FE7****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C5A5DF0E-5968-4DC1-882E-AC2FE7******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDataLevel1BackupRetentionPeriod.Malformed | The specified parameter DataLevel1BackupRetentionPeriod is not valid. | |
| 400 | InvalidDataLevel2BackupRetentionPeriod.Malformed | The specified parameter DataLevel2BackupRetentionPeriod is not valid. | |
| 400 | InvalidBackupRetentionPeriod.Malformed | The specified parameter BackupRetentionPeriod is not valid. | |
| 400 | InvalidBackupFrequency.Malformed | The specified parameter BackupFrequency is not valid. | |
| 400 | InvalidPreferredBackupPeriod.Malformed | The specified parameter PreferredBackupPeriod is not valid. | |
| 400 | InvalidDataLevel2BackupPeriod.Malformed | The specified parameter DataLevel2BackupPeriod is not valid. | |
| 400 | InvalidDataLevel1BackupPeriod.Malformed | The specified parameter DataLevel1BackupPeriod is not valid. | |
| 400 | InvalidPreferredBackupTime.Malformed | The specified parameter PreferredBackupTime is not valid. | |
| 400 | InvalidDataLevel1BackupTime.Malformed | The specified parameter DataLevel1BackupTime is not valid. | |
| 400 | InvalidDataLevel1BackupFrequency.Malformed | The specified parameter DataLevel1BackupFrequency is not valid. | |
| 400 | InvalidDataLevel2AnotherRegionRegion.NotFound | The specified parameter DataLevel2BackupAnotherRegionRegion does not found. | |
| 400 | InvalidDataLevel2AnotherRegionBackupRetentionPeriod.Malformed | The specified parameter DataLevel2BackupAnotherRegionRetentionPeriod is not valid. | |
| 403 | IncorrectBackupPolicy | Current DB type does not support low frequency backupPolicy operation. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidParam | new archiveBackup policy already exists. dumpretention parameter cannot used alone | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.