Memperbarui zona instans Gateway Load Balancer (GWLB).
Deskripsi operasi
请确保在使用该接口前,已充分了解网关型负载均衡产品的收费方式和价格。
UpdateLoadBalancerZones 属于异步接口,即系统返回一个请求 ID,但该实例可用区及可用区属性尚未修改成功,系统后台的变更任务仍在进行。您可以调用 GetLoadBalancerAttribute 查询网关型负载均衡实例的更新状态:
当网关型负载均衡实例处于 Configuring 状态时,表示网关型负载均衡实例正在更新中。
当网关型负载均衡实例处于 Active 状态时,表示网关型负载均衡实例更新成功。
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gwlb:UpdateLoadBalancerZones |
update |
*LoadBalancer
*VSwitch
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerId |
string |
Yes |
ID instans GWLB. |
gwlb-9njtjmqt7zfcqm**** |
| ZoneMappings |
array<object> |
Yes |
Pemetaan antara zona dan vSwitch. Anda harus menentukan setidaknya satu zona. Anda dapat menentukan paling banyak 20 zona. Jika wilayah mendukung dua zona atau lebih, tentukan dua zona atau lebih. |
|
|
object |
No |
|||
| VSwitchId |
string |
Yes |
The ID of the vSwitch in the zone. You can specify only one vSwitch (subnet) in each zone of a GWLB instance. |
vsw-bp1n75pbs77v5q6p3**** |
| ZoneId |
string |
Yes |
The zone ID. You can call the DescribeZones operation to query the most recent zone list. |
cn-hangzhou-h |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run tanpa menjalankan permintaan aktual. Nilai valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token klien hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token klien. ID permintaan mungkin berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-42665544**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
ED8905C2-A4F6-5E43-87B7-6A5DC8757146 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "ED8905C2-A4F6-5E43-87B7-6A5DC8757146"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationDenied.VSwitchChangeNotSupport | The operation is not allowed because of VSwitchChangeNotSupport. | Modifying the vSwitch is not allowed. |
| 400 | DuplicatedParam.VSwitchId | The param of VSwitchId is duplicated. | Duplicate vSwitchId parameter in list |
| 400 | DuplicatedParam.ZoneId | The param of ZoneId is duplicated. | Duplicate ZoneId parameter in list |
| 400 | IllegalParamSize.ZoneMappings | The param size of ZoneMappings is illegal. | Illegal number of ZoneMappings lists |
| 400 | IncorrectBusinessStatus.LoadBalancer | The business status of %s [%s] is incorrect. | Resource %s with business state %s does not support current operation |
| 400 | IncorrectStatus.LoadBalancer | The status of %s [%s] is incorrect. | Resource %s current state %s does not support operation |
| 400 | Mismatch.ZoneIdAndVSwitchId | The ZoneId and VSwitchId are mismatched. | The value of the ZoneId parameter does not match that of the vSwitchId |
| 400 | MissingParam.LoadBalancerId | The param of LoadBalancerId is missing. | Load balancing ID parameter missing |
| 400 | OperationDenied.VSwitchNotSupportIpv6 | The operation is not allowed because of VSwitchNotSupportIpv6. | The operation is not allowed because IPv6 is not enabled for the vSwitch. |
| 400 | ResourceAlreadyAssociated.GwlbeAssociated | The specified resource of %s is already associated. | The specified resource %s is already associated |
| 400 | ResourceNotEnough.VSwitchIp | The specified resource of VSwitchIp is not enough. | Insufficient vSwitch IP resources |
| 400 | ResourceNotFound.LoadBalancer | The specified resource of %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.