Meningkatkan konfigurasi paket untuk server aplikasi simple tertentu.
Deskripsi operasi
-
Hanya peningkatan ke paket tingkat lebih tinggi yang didukung. Untuk informasi selengkapnya mengenai paket, lihat Billing items.
-
Saat memanggil operasi ini untuk melakukan upgrade server, pastikan saldo akun Alibaba Cloud Anda mencukupi. Jika tidak, peningkatan akan gagal.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:UpgradeInstance |
update |
*Instans.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans dari server aplikasi simple yang ditentukan. |
ace0706b2ac4454d984295a94213**** |
| RegionId |
string |
Yes |
ID wilayah dari server aplikasi simple yang ditentukan. |
cn-hangzhou |
| PlanId |
string |
Yes |
ID paket tujuan peningkatan. Anda dapat memanggil ListPlans untuk menanyakan informasi paket. |
swas.s2.c2m2s50b4t08 |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menghasilkan token ini di sisi klien, tetapi harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya boleh berisi karakter ASCII dan panjangnya tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat How to ensure idempotence. |
123e4567-e89b-12d3-a456-426655440000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
20758A-585D-4A41-A9B2-28DA8F4F**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPlanIdUpgrade.ValueNotSupported | The specification of the specified planId is lower than the current server specification. | |
| 500 | InternalError | An error occurred while processing your request. | |
| 500 | NotEnoughUpgradeStock | The upgrade stock is insufficient. | |
| 403 | PaymentFailed | Payment failed. Please check your account balance. | |
| 403 | InvalidInstance.UnPaidOrder | The specified Instance has an unpaid order. | |
| 404 | InvalidPlanId.NotFound | The specified PlanId does not exist. | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.