Memanggil operasi AssociateHaVip untuk mengikat HaVip ke instans ENS atau antarmuka jaringan elastis ENS (ENI).
Deskripsi operasi
Perhatikan hal-hal berikut saat memanggil operasi ini untuk mengikat alamat IP virtual ketersediaan tinggi (HaVip):
Setelah HaVip terikat, Anda tidak perlu memulai ulang instans ENS, tetapi Anda harus mengonfigurasi HaVip pada ENI instans ENS.
HaVip dan instans ENS yang akan diikat harus berada di vSwitch yang sama.
Instans ENS yang akan diikat harus dalam status Running atau Stopped.
Instans HaVip harus dalam status Available atau InUse.
- AssociateHaVip adalah operasi asinkron. Setelah sistem mengembalikan ID permintaan, HaVip belum selesai diikat, dan tugas pengikatan terus berjalan di latar belakang. Anda dapat memanggil DescribeHaVips untuk meminta status pengikatan HaVip:
Jika HaVip dalam status Associating, HaVip sedang dalam proses pengikatan.
Jika HaVip dalam status InUse, HaVip sudah selesai diikat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:AssociateHaVip |
update |
*HaVip
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| HaVipId |
string |
Yes |
ID instans HaVip yang akan diikat. |
havip-5p14t**** |
| InstanceId |
string |
Yes |
ID instans. |
i-50c4**** |
| InstanceType |
string |
No |
Tipe instans tempat HaVip diikat. Nilai yang valid:
|
EnsInstance |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
ID permintaan. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceNotFound | The input parameter instancdId that is not found. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | HaVipNotFound | The input parameter haVipId that is not found. | |
| 400 | IncorrectHaVipStatus | The status of the haVip is invalid. | |
| 400 | SystemError | Interface call error, please re-match, or contact the product. | |
| 400 | InstanceAlreadyAssociated | The instance is already bound. | |
| 400 | IncorrectNetworkInterfaceStatus | The operation could not be completed because the status of the specified network interface is invalid for this action. | |
| 400 | NetworkInterfaceNotFound | The specified network interface does not exist. | |
| 400 | NetworkInterfaceTypeNotSupported | This network interface type cannot be used with the current operation. | |
| 400 | IncorrectInstanceVSwitch | The binding instance must be under the same VSwitch. | |
| 400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | |
| 400 | CountLimitExceed.HaVipOnInstance | The amount of HaVip associated with the specified Instance reach its limits. | |
| 400 | CountLimitExceed.InstanceOnHaVip | The number of instances bound to HaVip has reached the limit. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.