高可用性仮想 IP アドレス (HAVIP) を Edge Node Service (ENS) インスタンスまたは Elastic Network Interface (ENI) に関連付けます。
操作説明
この操作を呼び出して HAVIP を関連付ける際は、次の点にご注意ください。
-
HAVIP は関連付けられるとすぐに有効になります。ENS インスタンスを再起動する必要はありません。ただし、HAVIP を ENS インスタンスの ENI に関連付ける必要があります。
-
HAVIP と ENS インスタンスは、同じ vSwitch に属している必要があります。
-
ENS インスタンスの状態は、実行中または停止済みである必要があります。
-
HAVIP の状態は、利用可能または使用中である必要があります。
-
AssociateHaVip は非同期操作です。リクエストが送信されると、システムはリクエスト ID を返し、バックグラウンドでタスクを実行します。DescribeHaVips 操作を呼び出して、HAVIP の状態をクエリできます。
HAVIP が関連付け中の状態である場合、HAVIP は関連付け処理中です。
HAVIP が使用中の状態である場合、HAVIP は関連付けられています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:AssociateHaVip |
update |
*HaVip
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| HaVipId |
string |
必須 |
HAVIP の ID。 |
havip-5p14t**** |
| InstanceId |
string |
必須 |
インスタンスの ID。 |
i-50c4**** |
| InstanceType |
string |
任意 |
HAVIP に関連付けるインスタンスのタイプ。有効な値:
|
EnsInstance |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエスト ID。 |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
例
成功レスポンス
JSONJSON
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。