Mengonversi instance ApsaraDB for Tair (kompatibel dengan Redis) dari metode penagihan pay-as-you-go ke subscription.
Deskripsi operasi
Untuk melakukan operasi yang setara di konsol, lihat Ubah metode penagihan menjadi subscription.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:TransformToPrePaid |
update |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. Anda dapat memanggil operasi DescribeInstances untuk mendapatkan ID instans. |
r-bp1zxszhcgatnx**** |
| Period |
integer |
Yes |
Durasi langganan. Satuan: bulan. Nilai yang valid: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, dan 36. |
12 |
| AutoPay |
boolean |
No |
Menentukan apakah akan mengaktifkan pembayaran otomatis. Nilai yang valid:
|
true |
| AutoRenew |
string |
No |
Menentukan apakah akan mengaktifkan perpanjangan otomatis untuk instans. Nilai yang valid:
|
false |
| AutoRenewPeriod |
integer |
No |
Periode perpanjangan otomatis. Satuan: bulan. Nilai yang valid: 1, 2, 3, 6, dan 12. Catatan
Parameter ini wajib diisi jika AutoRenew diatur ke true. |
3 |
| CouponNo |
string |
No |
Kode kupon. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Objek respons. |
||
| EndTime |
string |
Waktu kedaluwarsa langganan baru instans. |
2019-01-18T16:00:00Z |
| RequestId |
string |
ID permintaan. |
426F1356-B6EF-4DAD-A1C3-DE53B9DAF586 |
| OrderId |
string |
ID pesanan. |
111111111111111 |
Contoh
Respons sukses
JSONformat
{
"EndTime": "2019-01-18T16:00:00Z",
"RequestId": "426F1356-B6EF-4DAD-A1C3-DE53B9DAF586",
"OrderId": "111111111111111"
}
Respons error
JSONformat
{
"OrderId":"202636204910941",
"RequestId":"426F1356-B6EF-4DAD-A1C3-DE53B9DAF586",
"EndTime":"2019-01-18T16:00:00Z"
}
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. | |
| 400 | Order.LatestOrderIsHanding | Latest order is handing, please retry later. | |
| 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.