Mengaktifkan atau menonaktifkan perpanjangan otomatis untuk instans Database Apsara for MongoDB.
Deskripsi operasi
Before you call this operation, make sure that you fully understand the billing methods and pricing.
This operation is applicable to subscription instances.
When auto-renewal is enabled, your payment will be collected nine days before the expiration date of ApsaraDB for MongoDB. Ensure that your account has sufficient balance.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyInstanceAutoRenewalAttribute |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID Wilayah Instans. Anda dapat memanggil operasi DescribeDBInstanceAttribute untuk mengkueri ID Wilayah Instans. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
ID Instans. |
dds-bp15da1923e3**** |
| Duration |
string |
No |
Periode perpanjangan otomatis. Nilai valid: 1 hingga 12. Unit: bulan. Catatan
Parameter ini hanya valid ketika AutoRenew diatur ke true. |
1 |
| AutoRenew |
string |
Yes |
Apakah akan mengaktifkan perpanjangan otomatis. Nilai valid:
Catatan
Jika parameter ini diatur ke true, Anda harus mengatur parameter Duration. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
EFD65226-08CC-4C4D-B6A4-CB3C382F67B0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EFD65226-08CC-4C4D-B6A4-CB3C382F67B0"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDbInstanceId.NotFound | Specified instance does not exist. | The instance ID does not exist. |
| 400 | InvalidDbInstanceIdInvalid | Instance dbInstanceId is invalid. | |
| 400 | InstanceAutoRenewInvalid | Instance auto renewal is invalid. | |
| 400 | InstanceChargeTypeInvalid | Instance charge type is invalid. | The instance charge type is invalid. |
| 400 | InvalidDuration.Invalid | Instance duration is invalid. | |
| 403 | ClassicNetworkNotSupport | Classic network has not been supported, try to use VPC. | The current operation does not support classic network instances, please use VPC network. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.