Mengatur status perpanjangan otomatis untuk kluster PolarDB berlangganan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyAutoRenewAttribute |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterIds |
string |
Yes |
ID kluster database. |
pc-*************** |
| RegionId |
string |
Yes |
ID wilayah. Panjang ID tidak boleh lebih dari 50 karakter. Catatan
Panggil operasi DescribeRegions untuk mengkueri wilayah yang tersedia. |
cn-hangzhou |
| RenewalStatus |
string |
No |
Status perpanjangan otomatis. Nilai yang valid:
Nilai default: AutoRenewal. Catatan
Jika Anda mengatur parameter ini ke NotRenewal, sistem akan berhenti mengirim notifikasi kedaluwarsa. Sistem hanya akan mengirim satu notifikasi non-perpanjangan tiga hari sebelum tanggal kedaluwarsa. |
AutoRenewal |
| Duration |
string |
No |
Periode perpanjangan otomatis. Nilai yang valid:
Nilai default: 1. |
1 |
| PeriodUnit |
string |
No |
Unit periode perpanjangan. Nilai yang valid:
Nilai default: Month. |
Month |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-************ |
| CloudProvider |
string |
No |
ENS |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
4CE6DF97-AEA4-484F-906F-C407EE****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4CE6DF97-AEA4-484F-906F-C407EE******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRenewalStatus.Malformed | The specified parameter RenewalStatus is not valid. | |
| 400 | InvalidPeriodUnit.Malformed | The specified parameter PeriodUnit is not valid. | |
| 400 | InvalidDuration.Malformed | The specified parameter Duration is not valid. | |
| 403 | OperationDenied.DBClusterPayType | The operation is not permitted due to the pay type of cluster. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.