Memodifikasi zona dan atribut zona dari instans Network Load Balancer (NLB).
Deskripsi operasi
Saat memanggil operasi ini, pastikan untuk menentukan semua zona dari instans NLB, termasuk zona yang sudah ada dan zona baru. Jika zona yang sudah ada tidak ditentukan, zona tersebut akan dihapus.
Prasyarat
-
Instans NLB telah dibuat. Untuk informasi selengkapnya, lihat CreateLoadBalancer.
-
Anda dapat memanggil operasi GetLoadBalancerAttribute untuk mengkueri zona dan atribut zona dari instans NLB.
-
UpdateLoadBalancerZones adalah operasi asinkron. Setelah permintaan dikirim, sistem mengembalikan ID permintaan dan menjalankan tugas di latar belakang. Anda dapat memanggil operasi GetJobStatus untuk mengkueri status tugas:
Jika tugas berada dalam status Succeeded, zona dan atribut zona telah dimodifikasi.
Jika tugas berada dalam status Processing, zona dan atribut zona sedang dimodifikasi. Dalam hal ini, Anda hanya dapat melakukan operasi kueri.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:UpdateLoadBalancerZones |
update |
*LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerId |
string |
Yes |
ID instans NLB. |
nlb-83ckzc8d4xlp8o**** |
| ZoneMappings |
array<object> |
Yes |
Pemetaan antara zona dan vSwitch. Anda dapat menentukan hingga 10 zona. |
|
|
object |
No |
Pemetaan antara zona dan vSwitch. Anda dapat menentukan hingga 10 zona. |
||
| VSwitchId |
string |
Yes |
ID vSwitch di zona tersebut. Secara default, setiap zona menggunakan satu vSwitch dan satu subnet. |
vsw-bp1rmcrwg3erh1fh8**** |
| ZoneId |
string |
Yes |
ID zona. Anda dapat memanggil operasi DescribeZones untuk mengkueri daftar zona terbaru. |
cn-hangzhou-a |
| PrivateIPv4Address |
string |
No |
Alamat IP pribadi. |
192.168.36.16 |
| AllocationId |
string |
No |
ID elastic IP address (EIP) atau Anycast EIP. |
eip-bp1aedxso6u80u0qf**** |
| EipType |
string |
No |
Tipe EIP. Nilai yang valid:
Catatan
Untuk wilayah yang mendukung Anycast EIP, lihat Limits. Parameter ini wajib ditentukan jika AddressType diatur ke Internet. |
Common |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token tersebut. Pastikan token unik di antara permintaan yang berbeda. Hanya karakter ASCII yang diizinkan. Catatan
Jika Anda tidak menyetel parameter ini, nilai RequestId akan digunakan.**** Nilai RequestId berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
No |
ID wilayah tempat instans NLB ditempatkan. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
respons |
||
| RequestId |
string |
ID permintaan. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| JobId |
string |
ID tugas asinkron. |
72dcd26b-f12d-4c27-b3af-18f6aed5**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceInCreating.loadbalancer | The specified resource of loadbalancer is creating, please try again later. | The specified resource of loadbalancer is creating, please try again later. |
| 400 | OperationDenied.ProtectedPrivateIPv4AddressChanged | The operation is not allowed because of ProtectedPrivateIPv4AddressChanged. | |
| 400 | OperationFailed.vSwitchNotSupportIpv6 | The operation failed because of vSwitchNotSupportIpv6. | |
| 400 | OperationDenied.%s | The operation is not allowed because of %s. | |
| 400 | OperationDenied.ZoneVSwitchChanged | The operation is not allowed because of ZoneVSwitchChanged. | The existing zone does not allow changes to the virtual switch. |
| 400 | InvalidZones | The current zone list is illegal. | The Availability Zone used in Zone maping is illegal. |
| 400 | ResourceInConfiguring.loadbalancer | The specified resource of loadbalancer is being configured, please try again later. | The specified resource of loadbalancer is being configured, please try again later. |
| 400 | SystemBusy | System is busy, please try again later. | |
| 400 | ResourceNotEnough.VSwitchIp | The specified resource of VSwitchIp is not enough. | The specified virtual switch (vSwitch) IP resources are insufficient. |
| 403 | UnauthorizedZone | The specified zone of %s is not authorized. | |
| 404 | ResourceNotFound.loadBalancer | The specified resource of loadbalancer is not found. | The specified load balancer resource was not found. Please check the input parameters. |
| 404 | ResourceNotFound.VSwitch | The specified resource of vSwitch is not found. | The specified vSwitch resource was not found. Please check the input parameters. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.