Menambahkan alamat IP elastis (EIP) dan alamat IP virtual (VIP) suatu zona ke dalam Rekaman DNS.
Deskripsi operasi
Operasi ini hanya didukung oleh instans Application Load Balancer (ALB) yang menggunakan alamat IP statis. Sebelum memanggil operasi ini, Anda harus terlebih dahulu memanggil operasi StartShiftLoadBalancerZones untuk menghapus zona dari instans ALB.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:CancelShiftLoadBalancerZones |
update |
*LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan client untuk menghasilkan token tersebut, tetapi Anda harus memastikan bahwa token tersebut unik di antara berbagai permintaan. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token client. ID permintaan mungkin berbeda untuk setiap permintaan. |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
| DryRun |
boolean |
No |
Menentukan apakah hanya akan menjalankan dry run tanpa benar-benar melakukan permintaan. Nilai yang valid:
|
true |
| LoadBalancerId |
string |
Yes |
ID instans ALB. |
alb-o9ulmq5hgn68jk**** |
| ZoneMappings |
array<object> |
Yes |
Pemetaan antara zona dan vSwitch. Catatan
Anda hanya dapat menambahkan satu zona dalam setiap panggilan. |
|
|
object |
No |
|||
| 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 mengambil daftar zona terbaru. |
cn-hangzhou-a |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "5A2CFF0E-5718-45B5-9D4D-70B3FF3898\n"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.LoadBalancer | The status of %s [%s] is incorrect. | |
| 400 | IncorrectBusinessStatus.LoadBalancer | The business status of %s [%s] is incorrect. | |
| 400 | IncorrectBusinessStatus.Eip | The business status of %s [%s] is incorrect. | |
| 400 | OperationDenied.ZoneVSwitchChanged | The operation is not allowed because of %s. | |
| 400 | OperationDenied.ZoneMappingsNotChanged | The operation is not allowed because of %s. | |
| 400 | OperationDenied.ZoneVSwitchNotExist | The operation is not allowed because of %s. | |
| 400 | OperationDenied.EniStatusNotSupport | The operation is not allowed because of %s. | |
| 400 | OperationDenied.OnlyFixedAddressAllocatedModeSupported | The operation is not allowed because of %s. | |
| 400 | OperationFailed.CancelShiftLoadBalancerZonesFailed | The operation is not allowed because of %s. | |
| 400 | ResourceNotEnough.VSwitchIp | The specified resource %s is not enough. | |
| 400 | Mismatch.ZoneIdAndVSwitchId | The %s and %s are mismatched. | |
| 404 | ResourceNotFound.LoadBalancer | The specified resource %s is not found. | |
| 404 | ResourceNotFound.VSwitch | The specified resource %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.