Mengubah metode penagihan instans dari pay-as-you-go menjadi langganan, atau dari langganan menjadi pay-as-you-go.
Deskripsi operasi
Before you call this operation, make sure that you understand the billing methods and pricing of ApsaraDB for MongoDB.
Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
-
The instance is in the Running state.
-
The instance has no unpaid billing method change orders.
-
The instance type is available for purchase. For more information about unavailable instance types, see Instance types.
To change the billing method of an instance whose instance type is no longer available for purchase, call the ModifyDBInstanceSpec or ModifyNodeSpec operation to change the instance type first.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:TransformInstanceChargeType |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
dds-2ze55b3ec56c**** |
| Period |
integer |
No |
Durasi langganan instans. Unit: bulan. Nilai valid: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, dan 36. |
1 |
| AutoPay |
boolean |
No |
Apakah akan mengaktifkan pembayaran otomatis. Nilai valid:
Catatan
Nilai default: true. |
true |
| BusinessInfo |
string |
No |
Informasi bisnis. Ini adalah parameter tambahan. |
{“ActivityId":"000000000"} |
| AutoRenew |
string |
No |
Apakah akan mengaktifkan perpanjangan otomatis. Nilai valid:
Catatan
Nilai default: false. |
false |
| CouponNo |
string |
No |
Kode kupon. Nilai default: |
default |
| ChargeType |
string |
Yes |
Metode penagihan instans. Nilai valid:
|
PrePaid |
| PricingCycle |
string |
No |
Unit durasi langganan. Nilai valid:
Nilai default: Month. |
Month |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Response |
||
| RequestId |
string |
The request ID. |
D8F1D721-6439-4257-A89C-F1E8E9C9**** |
| OrderId |
string |
The order ID. |
21084641369**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D8F1D721-6439-4257-A89C-F1E8E9C9****",
"OrderId": "21084641369****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | Period is mandatory for this action. | |
| 400 | InvalidParam | Period is invalid | |
| 400 | ResourceNotAvailable | Resource you requested is not available for finance user. | |
| 400 | InsufficientBalance | Your account does not have enough balance. | |
| 403 | AlreadyPrePaid | This instance is already prepaid | |
| 403 | RealNameAuthenticationError | Your account has not passed the real-name authentication yet. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.