All Products
Search
Document Center

Global Accelerator:UpdateBandwidthPackage

Last Updated:Jun 10, 2026

Mengubah konfigurasi paket bandwidth.

Deskripsi operasi

Before you call this operation, note the following:

  • If you do not change the bandwidth value, UpdateBandwidthPackage is a synchronous operation. The modification takes effect immediately.

  • If you change the bandwidth value of a bandwidth plan that is not associated with a Global Accelerator (GA) instance, UpdateBandwidthPackage is an asynchronous operation. The system returns a request ID, but the modification is not complete. The system performs the task in the background. You can call the DescribeBandwidthPackage operation to query whether the configuration of the bandwidth plan is modified:

    • If the values of the parameters that you want to modify remain unchanged, the bandwidth plan is being modified. In this case, you can only perform query operations.

    • If the values of the parameters that you want to modify have changed, the modification is complete.

  • If you change the bandwidth value of a bandwidth plan that is associated with a GA instance, UpdateBandwidthPackage is an asynchronous operation. The system returns a request ID, but the modification is not complete. The system performs the task in the background. You can call the DescribeAccelerator operation and query the status of the GA instance to check whether the bandwidth plan is modified:

    • If the GA instance is in the configuring state, the bandwidth plan that is associated with the GA instance is being modified. In this case, you can only perform query operations.

    • If the GA instance is in the active state, the bandwidth plan that is associated with the GA instance has been modified.

  • You cannot repeatedly call the UpdateBandwidthPackage operation to modify the configuration of the same bandwidth plan.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

ga:UpdateBandwidthPackage

update

*BandwidthPackage

acs:ga:{#regionId}:{#accountId}:bandwidthpackage/{#bandwidthPackageId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID wilayah tempat instans Akselerator Global di-deploy. Tetapkan nilainya ke cn-hangzhou.

cn-hangzhou

BandwidthPackageId

string

Yes

ID paket bandwidth yang ingin Anda ubah.

gbwp-bp1sgzldyj6b4q7cx****

Name

string

No

Nama paket bandwidth. Nama harus terdiri dari 1 hingga 128 karakter, diawali dengan huruf atau karakter Mandarin, dan dapat berisi huruf, angka, titik (.), garis bawah (_), dan tanda hubung (-).

testName

Description

string

No

Deskripsi paket bandwidth.

Deskripsi dapat terdiri dari hingga 256 karakter.

testDescription

Bandwidth

integer

No

Bandwidth paket bandwidth. Unit: Mbit/s.

Nilai valid: 2 hingga 2000.

2

BandwidthType

string

No

Tipe bandwidth. Nilai valid:

  • Basic: bandwidth standar.

  • Enhanced: bandwidth yang ditingkatkan.

  • Advanced: bandwidth premium.

Catatan

Anda dapat meningkatkan paket bandwidth Basic ke Enhanced, atau menurunkan spesifikasi paket bandwidth Enhanced ke Basic. Anda tidak dapat mengubah tipe bandwidth paket bandwidth Advanced.

Basic

AutoPay

boolean

No

Apakah akan mengaktifkan pembayaran otomatis. Nilai valid:

  • false (default): menonaktifkan pembayaran otomatis. Setelah pesanan dibuat, Anda harus membuka Order Hub untuk menyelesaikan pembayaran.

  • true: mengaktifkan pembayaran otomatis. Sistem secara otomatis membayar tagihan.

Catatan

Parameter ini hanya diperlukan untuk pesanan Peningkatan daftar.

false

AutoUseCoupon

boolean

No

Apakah akan menggunakan kupon. Nilai valid:

  • true: ya.

  • false (default): tidak.

false

Elemen respons

Element

Type

Description

Example

object

The response.

BandwidthPackage

string

The ID of the bandwidth plan.

gbwp-bp1eo4f57z1kbbcmn****

Description

string

The description of the bandwidth plan.

testDescription

RequestId

string

The request ID.

1DF3A3CB-B621-44F8-9870-C20D034D7AB

Name

string

The name of the bandwidth plan.

testName

Contoh

Respons sukses

JSONformat

{
  "BandwidthPackage": "gbwp-bp1eo4f57z1kbbcmn****",
  "Description": "testDescription",
  "RequestId": "1DF3A3CB-B621-44F8-9870-C20D034D7AB",
  "Name": "testName"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 COMMODITY.INVALID_COMPONENT The Basic type only can be upgraded to the Enhanced, and the Enhanced type only can be downgraded to the Basic . The type of the Advance bandwidth can not be changed.
400 StateError.BandwidthPackage The state of bandwidth package is invalid. The bandwidth plan is in an invalid state.
400 NotExist.BandwidthPackage The bandwidth package does not exist. The bandwidth package does not exist.
400 UpgradeError.BandwidthPackage The bandwidth package configurations should be either all upgrades or all downgrades. You cannot upgrade and downgrade a bandwidth plan at the same time. You can only upgrade or downgrade the bandwidth plan.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.