Mengubah bandwidth puncak instans Internet Shared Bandwidth.
Deskripsi operasi
Sebelum memanggil operasi ini, perhatikan informasi berikut:
- ModifyCommonBandwidthPackageSpec adalah operasi asinkron. Setelah Anda mengirim permintaan, sistem akan mengembalikan ID permintaan, tetapi bandwidth puncak instans Internet Shared Bandwidth belum diubah. Tugas modifikasi masih berjalan di latar belakang. Anda dapat memanggil DescribeCommonBandwidthPackages untuk mengkueri status instans Internet Shared Bandwidth.
Jika instans Internet Shared Bandwidth berada dalam status Modifying, bandwidth puncak sedang dimodifikasi. Dalam status ini, Anda hanya dapat melakukan operasi kueri dan tidak dapat melakukan operasi lain.
Jika instans Internet Shared Bandwidth berada dalam status Available, bandwidth puncak telah dimodifikasi.
ModifyCommonBandwidthPackageSpec tidak mendukung modifikasi konkuren pada bandwidth puncak instans Internet Shared Bandwidth yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyCommonBandwidthPackageSpec |
update |
*BandwidthPackage
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans Internet Shared Bandwidth. Anda dapat memanggil DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| BandwidthPackageId |
string |
Yes |
ID instans Internet Shared Bandwidth. |
cbwp-2ze2ic1xd2qeqk145**** |
| Bandwidth |
string |
Yes |
Bandwidth puncak instans Internet Shared Bandwidth. Unit: Mbit/s. Nilai valid: **1** hingga **1000**.. |
1000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| RequestId |
string |
ID permintaan. |
7F129000-F929-4AF5-BE8D-BAE434C795306 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "7F129000-F929-4AF5-BE8D-BAE434C795306"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotEnough.Bandwidth | The specified resource of Bandwidth is not enough. | Sumber daya bandwidth tidak mencukupi. |
| 400 | InvalidParameter.Bandwidth | The specified bandwidth is not valid. | |
| 400 | InvalidBandwidthPackageId.NotFound | The specified BandwidthPackageId not exist. | |
| 400 | InvalidCommonBandwidthPackageId.NotFound | The specified BandwidthPackageId is not found. | |
| 400 | IncorrectStatus.ResourceStatus | Resource status is abnormal for renew. | |
| 400 | SYSTEM.SALE_VALIDATE_UNEXPECTED_ERROR | You have arrears and do not meet the purchase conditions. | |
| 400 | OperationFailed.SyncOrderToSub | SyncOrderToSub error. | Operasi gagal. |
| 400 | OperationFailed.SaleValidate | Validate sale condition with subArticle failed. | Gagal memvalidasi kondisi penjualan dengan subArticle. |
| 400 | OperationFailed.QueryCommodityInfo | Operation failed because quey commodity info error. | |
| 400 | OperationFailed.QueryPrice | Query price failed when create order. | Gagal menanyakan harga saat membuat pesanan. |
| 400 | Forbidden.ChargeTypeIsPrepaid | It's forbidden to change prepaid CBWP's bandwidth by API. It can be changed on Aliyun web console. | |
| 400 | IncorrectStatus.CbwpModifying | Cbwp Modifying status is invalid. | |
| 500 | OrderError.BandwidthPackage | The Account failed to create order. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidBandwidthPackageId.NotFound | The specified BandwidthPackageId does not exist in our records. | |
| 404 | InvalidBandwidth.ValueNotSupported | The specified value of Bandwidth not supported. | |
| 404 | BandwidthPackage.FinancialLocked | The specified BandwidthPackage has been Financial Lock. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.