Mengonversi metode penagihan disk data yang menyambungkan ke Instance ECS langganan antara pay-as-you-go dan langganan.
Deskripsi operasi
Sebelum Anda mengonversi metode penagihan disk data, lihat Mengubah metode penagihan disk.
Perhatikan hal-hal berikut saat Anda memanggil operasi ini:
Anda tidak dapat mengubah metode penagihan disk data yang menyambungkan ke Instans pay-as-you-go. Instans pay-as-you-go hanya mendukung disk pay-as-you-go.
Instans tempat disk data menyambungkan tidak boleh berada dalam status kedaluwarsa dan berhenti.
Selisih harga sebelum dan setelah perubahan metode penagihan akan dikembalikan ke metode pembayaran asli Anda. Kupon yang telah digunakan tidak dapat dikembalikan.
Setelah metode penagihan disk berhasil diubah, Anda tidak dapat mengubahnya lagi dalam waktu lima menit.
Setelah metode penagihan diubah, pembayaran otomatis diaktifkan secara default. Pastikan saldo akun Anda mencukupi. Jika tidak, pesanan abnormal akan dibuat, dan Anda hanya dapat membatalkan pesanan tersebut. Jika saldo akun Anda tidak mencukupi, Anda dapat mengatur parameter AutoPay menjadi false. Dalam hal ini, pesanan yang belum dibayar akan dibuat. Anda dapat log on ke Konsol Expenses and Costs Alibaba Cloud dan membuka halaman Daftar Pesanan untuk menyelesaikan pembayaran.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyDiskChargeType |
update |
*Instance.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID Instans tempat disk menyambungkan. |
i-bp1i778bq705cvx1**** |
| RegionId |
string |
Yes |
ID wilayah Instans. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| DiskIds |
string |
Yes |
Daftar ID disk. Nilainya adalah array JSON yang berisi hingga 16 ID yang dipisahkan oleh koma (,). |
["d-bp67acfmxazb4ph****", "d-bp67acfmxazb4pi****", … "d-bp67acfmxazb4pj****"] |
| AutoPay |
boolean |
No |
Apakah akan mengaktifkan pembayaran otomatis. Nilai valid:
|
true |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi pastikan token tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| DiskChargeType |
string |
No |
Metode penagihan disk. Nilai valid:
Catatan
Saat Anda mengonversi disk pay-as-you-go menjadi langganan, siklus penagihan biaya kapasitas akan disinkronkan secara otomatis dengan Instance ECS yang terkait. |
PostPaid |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
string |
ID pesanan. |
123456**** |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"OrderId": "123456****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidInstanceType.ValueUnauthorized | The specified InstanceType is not authorized. | |
| 400 | InvalidInstanceType.ValueNotSupported | The specified InstanceType is not supported. | Tipe instans yang ditentukan tidak valid karena berada di luar rentang yang tersedia. |
| 400 | MissingParameter.RegionId | RegionId should not be null. | Parameter RegionId tidak boleh kosong. |
| 400 | MissingParameter.InstanceIdNotSupported | InstanceId should not be null. | Parameter InstanceId tidak boleh kosong. |
| 400 | ChargeTypeViolation | The operation is not permitted due to charge type of the instance. | Metode penagihan tidak mendukung operasi ini. Periksa apakah metode penagihan instans bertentangan dengan operasi ini. |
| 400 | InvalidInstanceId.Released | The specified Instance is not exist. | Instans yang ditentukan tidak ada. Periksa apakah ID instans sudah benar. |
| 400 | InvalidInstance.PurchaseNotFound | The specified Instance has no purchase. | Instans yang ditentukan tidak dapat dibeli. |
| 400 | InvalidInstance.UnPaidOrder | The specified Instance has unpaid order. | Instans yang ditentukan memiliki pesanan yang belum dibayar. Selesaikan pembayaran sebelum melanjutkan. |
| 400 | InvalidClientToken.ValueNotSupported | The ClientToken provided is invalid. | ClientToken yang ditentukan tidak valid. |
| 400 | Account.Arrearage | Your account has been in arrears. | Saldo akun Anda tidak mencukupi. Isi ulang akun Anda sebelum melanjutkan. |
| 400 | Idempotence.SignatureMismatch | There is a idempotence signature mismatch between this and last request. | Ketika permintaan menggunakan token idempotensi yang sama dengan permintaan sebelumnya, semua parameter lainnya juga harus cocok secara tepat. |
| 400 | OrderCreationFailed | Order creation failed. Please check your parameters and try again later. | |
| 400 | Throttling | Request was denied due to request throttling. Please try again after 5 minutes. | |
| 400 | InstanceDowngrade.QuotaExceed | Quota of instance downgrade is exceed. | Kuota menurunkan spesifikasi instans telah terlampaui. Anda tidak dapat melakukan operasi ini. |
| 400 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | |
| 400 | InvalidDisk.DetachedSystemDisk | The specified disk is a detached system disk. This operation is not supported. | |
| 400 | LastOrderProcessing | The previous order is still processing. Please try again later. | Pesanan sedang diproses. Coba lagi nanti. |
| 400 | InvalidAction.WithActiveElasticUpgrade | The instance has active Elastic Upgrade. | |
| 400 | DISK_IN_DEDICATED_BLOCK_STORAGE_CLUSTER | The disk in dedicated block storage cluster is not allowed to do this operation. | |
| 400 | NoPermission.Price | The operation requires price permission. Please either apply for permission from your main account or set the parameter AutoPay to true. | |
| 400 | NoPermission.Refund | The operation requires refund permission. Please apply for permission from your main account. | Akun tidak memiliki izin untuk melakukan pengembalian dana. Akun utama harus memberikan izin terkait pengembalian dana. |
| 400 | InvalidOperation.DiskMustAttachedToInstance | The specified data disks must have been attached to this instance. | Disk yang ditentukan harus sudah tersambung ke instans ini. |
| 400 | InstanceExpiredOrInArrears | The specified operation is denied as your prepay instance is expired (prepay mode) or in arrears (afterpay mode). | Instans telah kedaluwarsa atau memiliki pembayaran tertunda. Perpanjang instans atau lunasi pembayaran yang outstanding sebelum melakukan operasi ini. |
| 400 | InvalidOrder.Overdue | The specified account has overdue orders. | Anda memiliki tagihan tertunda dan tidak memenuhi persyaratan pembelian. Bayar tagihan tertunda sebelum melakukan pembelian. |
| 400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | Status instans saat ini tidak mendukung operasi ini. |
| 400 | InvalidOperation.RenewDowngradeNotEffective | The current instance has a renewal downgrade record that has not yet taken effect. | Instans saat ini memiliki catatan perpanjangan dan menurunkan spesifikasi yang tertunda dan belum berlaku. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidInstanceType.ValueNotSupported | The specified InstanceType is not supported. | |
| 403 | InvalidAccountStatus.NotEnoughBalance | Your account does not have enough balance. | |
| 403 | Throttling | Request was denied due to request throttling. Please try again after 5 minutes. | |
| 403 | InvalidInstanceChargeType.NotFound | The chargeType of the instance does not support this operation. | Metode penagihan instans yang ditentukan tidak ada. |
| 403 | InvalidOperation.MultiAttachDisk | Multi attach disk does not support this operation. | Disk dengan fitur multi-attach diaktifkan tidak mendukung operasi ini. |
| 403 | InvalidOperation.UnpaidOrder | The specified instance has unpaid orders and does not support the current operation. | Instans yang ditentukan memiliki pesanan yang belum dibayar. Operasi saat ini tidak didukung. |
| 403 | OperationDenied | The specified InstanceType or Zone is not available or not authorized. | Snapshot yang ditentukan tidak mengizinkan pembuatan volume data. |
| 403 | IncorrectDiskStatus | The operation is not supported in this status. | Disk saat ini tidak mendukung operasi ini. Pastikan disk digunakan secara normal dan tidak ada pembayaran tertunda. |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist. | RegionId yang ditentukan tidak ada. Periksa apakah produk tersedia di wilayah ini. |
| 404 | PaymentMethodNotFound | No billing method has been registered on the account. | Akun belum mendaftarkan metode pembayaran. |
| 404 | InvalidZoneId.NotFound | The ZoneId provided does not exist in our records. | |
| 404 | InvalidRamRole.NotFound | The specified parameter "RAMRoleName" does not exist. | RamRoleName yang ditentukan tidak ada. |
| 404 | InvalidDiskIds.NotFound | Some of the specified data disks do not exist. | Disk yang ditentukan tidak ada. |
| 404 | InvalidDiskIds.NotPortable | The specified DiskId is not portable. | |
| 404 | InvalidDataDiskSize.ValueNotSupported | The specified parameter "Size" is not supported. | |
| 404 | InvalidAction.NotSupported | The specified action is not supported. | Operasi API yang ditentukan tidak didukung. |
| 404 | InvalidInstanceStatus.NotSupported | The status of the specified instance is invalid. | Status instans saat ini tidak mendukung operasi ini. |
| 404 | InvalidInstanceId.NOT_FOUND | The specified instance is not exist. | Instans yang ditentukan tidak ada. |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | Instans yang ditentukan tidak ada. Periksa apakah ID instans sudah benar. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.