Mengubah metode penagihan Instans database Database Apsara for Tair (Redis® OSS-Compatible) dari pay-as-you-go menjadi langganan (di muka).
Deskripsi operasi
Untuk operasi Konsol yang sesuai, lihat Beralih ke langganan.
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 DescribeInstances untuk mengkueri ID instans. |
r-bp1zxszhcgatnx**** |
| Period |
integer |
Yes |
Durasi langganan. Unit: months. Nilai valid: 1 hingga 9, 12, 24, dan 36. |
12 |
| AutoPay |
boolean |
No |
Apakah akan mengaktifkan pembayaran otomatis. Nilai valid:
|
true |
| AutoRenew |
string |
No |
Apakah akan mengaktifkan perpanjangan otomatis. Nilai valid:
|
false |
| AutoRenewPeriod |
integer |
No |
Periode perpanjangan otomatis. Unit: months. Nilai valid: 1, 2, 3, 6, dan 12. Catatan
Parameter ini wajib diisi ketika AutoRenew diatur ke true. |
3 |
| CouponNo |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
Pengatur waktu ketika Instans kedaluwarsa setelah metode penagihan diubah menjadi langganan. |
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.