Mengubah metode penagihan instans Tair antara subscription dan pay-as-you-go.
Deskripsi operasi
Sebelum memanggil operasi ini, pastikan Anda memahami implikasi penagihan dan catatan penggunaan. Untuk informasi selengkapnya, lihat:
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:TransformInstanceChargeType |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. Anda dapat memanggil operasi DescribeInstances untuk menanyakan ID instans. |
r-bp1zxszhcgatnx**** |
| Period |
integer |
No |
Durasi langganan, dalam bulan. Nilai yang valid: 1 hingga 9, 12, 24, dan 36. Catatan
Parameter ini tersedia dan wajib hanya ketika parameter ChargeType diatur ke PrePaid. |
1 |
| AutoPay |
boolean |
No |
Menentukan apakah pembayaran otomatis diaktifkan. Nilai yang valid:
|
true |
| ChargeType |
string |
Yes |
Metode penagihan target. Nilai yang valid:
|
PrePaid |
| AutoRenew |
string |
No |
Menentukan apakah perpanjangan otomatis untuk instans diaktifkan. Nilai yang valid:
Valid values:
|
false |
| AutoRenewPeriod |
integer |
No |
Periode perpanjangan otomatis, dalam bulan. Nilai yang valid: 1, 2, 3, 6, dan 12. Catatan
Parameter ini wajib ketika parameter AutoRenew diatur ke true. |
1 |
| CouponNo |
string |
No |
ID kupon. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| EndTime |
string |
Waktu kedaluwarsa instans. Catatan
Parameter ini dikembalikan hanya ketika Anda mengubah metode penagihan instans dari pay-as-you-go ke subscription. |
2021-05-13T00:00:00Z |
| RequestId |
string |
ID permintaan. |
82C791FB-8979-489E-853D-706D7743**** |
| OrderId |
string |
ID pesanan. |
20881824000**** |
Contoh
Respons sukses
JSONformat
{
"EndTime": "2021-05-13T00:00:00Z",
"RequestId": "82C791FB-8979-489E-853D-706D7743****",
"OrderId": "20881824000****"
}
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 | 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.