Menyambungkan beberapa elastic IP addresses (EIPs) ke instans layanan cloud di wilayah yang sama secara batch.
Deskripsi operasi
AssociateEipAddressBatch menyambungkan beberapa EIP ke instans layanan cloud secara batch. Operasi ini hanya mendukung penyambungan batch EIP ke Instans Gateway NAT Internet atau instans antarmuka jaringan sekunder (NIC) di wilayah yang sama. Untuk menyambungkan EIP ke instans layanan cloud lainnya, panggil AssociateEipAddress.
- AssociateEipAddressBatch adalah operasi asinkron. Setelah Anda memanggil operasi ini, sistem mengembalikan ID permintaan, tetapi instans EIP belum tersambung ke instans layanan cloud. Tugas penyambungan terus berjalan di latar belakang. Anda dapat memanggil DescribeEipAddresses untuk mengkueri status instans EIP:
Jika instans EIP berada dalam status Associating, instans EIP sedang disambungkan. Dalam status ini, Anda hanya dapat menjalankan operasi kueri.
Jika instans EIP berada dalam status InUse, instans EIP telah tersambung.
AssociateEipAddressBatch tidak mendukung penyambungan konkuren dari instans EIP yang sama dengan instans layanan cloud.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:AssociateEipAddressBatch |
update |
*Address
Instance
NatGateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah EIP yang akan disambungkan ke instans layanan cloud. Anda dapat memanggil DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| BindedInstanceId |
string |
Yes |
ID instans layanan cloud tempat EIP akan disambungkan. Anda dapat menentukan ID instans Gateway NAT Internet atau ID instans antarmuka jaringan sekunder (NIC). |
ngw-hp3akk9irtd69jad**** |
| BindedInstanceType |
string |
Yes |
Tipe instans tempat EIP akan disambungkan. Nilai valid:
|
Nat |
| Mode |
string |
No |
Mode asosiasi. Atur nilai menjadi MULTI_BINDED, yang menentukan mode multi-EIP-ke-ENI. Parameter ini diperlukan hanya jika InstanceType diatur ke NetworkInterface. |
MULTI_BINDED |
| InstanceIds |
array |
Yes |
Daftar EIP yang akan disambungkan ke instans layanan cloud. Anda harus menentukan minimal 1 EIP dan dapat menentukan hingga 50 EIP. |
|
|
string |
No |
ID instans EIP yang akan disambungkan ke instans layanan cloud. Anda harus menentukan minimal 1 ID instans EIP dan dapat menentukan hingga 50 ID instans EIP. |
eip-2zeerraiwb7ujsxdc**** |
|
| RegionId |
string |
Yes |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
cn-hangzhou |
| 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 hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
02fb3da4-130e-11e9-8e44-0016e04115b |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| RequestId |
string |
ID permintaan. |
54B48E3D-DF70-471B-AA93-08E683A1B45 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAssociation.Duplicated | Specified instance already is associated. | |
| 400 | OperationDenied | Specified instance is not in VPC. | |
| 400 | InvalidParameter.Mismatch | Specified elastic IP address and ECS instance are not in the same region. | |
| 400 | IncorrectEipStatus | Current elastic IP status does not support this operation | |
| 400 | IncorrectInstanceStatus | Current instance status does not support this operation. | |
| 400 | InvalidInstanceType.ValueNotSupported | The specified value of InstanceType is not supported. | |
| 400 | IncorrectHaVipStatus | HaVip can be operated by this action only when it's status is Available or InUse. | Operasi ini hanya diperbolehkan ketika instans HaVip berada dalam status Available atau InUse. |
| 400 | InvalidParameter | The specified parameter is not valid. | |
| 400 | Forbidden | The eip instance owener error | EIP bukan milik pemanggil saat ini. Periksa apakah Anda memiliki izin untuk menggunakan EIP ini. |
| 400 | TaskConflict | The eip operate too frequent, TaskConflict. | Operasi terlalu sering. Tunggu sebentar lalu coba lagi. |
| 400 | InvalidBindingStatus | The eip binding status invalid. | |
| 400 | BIND_INSTANCE_HAVE_PORTMAP_OR_BIND_EIP | The instance may have portMap or already bind eip. | Aturan penerusan port (DNAT) sudah ada untuk Instans ECS. Hapus aturan penerusan port yang sesuai sebelum melanjutkan. |
| 400 | EIP_CAN_NOT_ASSOCIATE_WITH_PUBLIC_IP | instance already bind natpublicip,cannot bind eip. | |
| 400 | BIND_INSTANCE_OWENER_ERROR | Cannot operate the eip. | |
| 400 | NATGATEWAY_FINANCIALLOCKED | The NatGateway has expire, cannot do bind operation. | |
| 400 | InvalidParameter.InstanceTypeNotSupport | The specified instance type is not support. | |
| 400 | QuotaExceeded.NumberOfTrafficEip | The number of traffic eip on natgw exceed limitation. | |
| 400 | QuotaExceeded.NumberOfEip | Binded eip Quota exceed on this NatGw. | Jumlah EIP yang disambungkan ke gerbang NAT ini melebihi batas kuota. |
| 400 | InvalidEipBandwidth.OutOfMaxValue | The Eip Bandwidth is invalid. | |
| 400 | Forbidden.EipCanNotBindGatgw | Eip can not bind on natgw. | |
| 400 | InvalidAction.Denied | Action is denied due to unfinished Eip configuration modification. | Operasi ditolak karena modifikasi konfigurasi EIP belum selesai. |
| 400 | InstanceType.NotSupport | The instance type is invalid. | |
| 400 | InvalidParams.NotFound | instance not found | |
| 400 | BindInstance.NotSupported | bind instance type %s is not supported. | |
| 400 | Forbidden.InstanceBandwidthNotZero | Eip can not bind with instance when it's bandwidth is not zero. | |
| 400 | INSTANCE_TYPE_NOT_SUPPORT | The instance type is invalid. | |
| 400 | ServerRegion.Invalid | Eip bind remote server region invalid. | |
| 400 | Eni.Attached | The eni should be detached from ecs when associating with direct eip. | Saat ENI dikaitkan dengan EIP dalam mode cut-through, ENI harus dilepaskan dari Instans ECS. |
| 400 | Invalid.DirectEip.BindType | The direct eip can be only associated with eni. | |
| 400 | Invalid.Function.NotSupported | Multi-IP function is under test, the region or uid is not supported. | |
| 400 | InvalidStatus.EniStatusNotSupport | %s | |
| 400 | InvalidParameter.EniInstanceId | %s | |
| 400 | %s | %s | |
| 400 | EipBatchBind.TypeNotSupport | eip batch bind type not support | |
| 400 | OperationFailed.RegionNotMatch | The specified eip is not in this region | |
| 400 | InvalidEIPStatus.BizDisabled | The EIP has been locked. | Instans EIP terkunci. |
| 400 | Forbidden.FinancialLocked | The ip business status is invalid. | Operasi ini tidak dapat dilakukan ketika antarmuka router memiliki pembayaran tertunda. |
| 400 | OperationDenied.Unauthorized | The operation is not allowed because the user is not in the whitelist. | Operasi tidak diizinkan karena pengguna tidak berada dalam daftar putih. |
| 400 | OperationDenied.UnsupportedEipBindMode | The operation is not supported for the NAT gateway due to its EIP binding mode. | Tipe pengikatan EIP dari gerbang NAT ini tidak mendukung operasi ini. |
| 400 | OperationDenied.Ipv4GatewayExist | The operation is not allowed because of Ipv4GatewayExist. | |
| 404 | InvalidAllocationId.NotFound | Specified allocation ID is not found. | |
| 404 | InvalidInstanId.NotFound | Specified instance does not exist. | |
| 404 | Forbidden.RegionNotFound | Specified instance is not found during access authentication. | Wilayah saat ini tidak didukung. |
| 404 | OperationDenied.VpcIpv4GatewayEnabled | The operation is not allowed because of the VPC of the NAT gateway has opened IPv4 Gateway. | Operasi tidak diizinkan karena VPC dari gerbang NAT sudah mengaktifkan gerbang IPv4. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.