同じリージョンにデプロイされているクラウドリソースに、エラスティック IP アドレス (EIP) を関連付けます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:AssociateEnsEipAddress |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AllocationId |
string |
必須 |
関連付ける EIP の ID。 |
eip-5sc1sgcrsrwgwdvx44hru**** |
| InstanceId |
string |
必須 |
EIP が関連付けられているクラウドサービスの ID。 説明
Edge Load Balancer (ELB) インスタンスの ID を指定できます。 |
lb-5saivuir6b1mupxjfbhmk**** |
| InstanceType |
string |
任意 |
EIP を関連付けるインスタンスのタイプ。有効な値は次のとおりです。
|
SlbInstance |
| Standby |
boolean |
任意 |
EIP がセカンダリ EIP であるかどうかを指定します。有効な値は次のとおりです。
|
true |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエスト ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
例
成功レスポンス
JSONJSON
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | RegionAccessDenied | Could not operate this region's resource | |
| 400 | InstanceNotFound | The input parameter instancdId that is not found. | |
| 400 | ens.interface.error | An error occurred while call the API. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | IncorrectEipStatus | The current status of the resource does not support this operation. | |
| 400 | InvalidAssociation.Duplicated | Specified instance already is associated. | |
| 400 | LoadBalancerNotFound | The input parameter allocationId that is not found. | |
| 400 | EipNotFound | The input parameter allocationId that is not found. | |
| 400 | IncorrectInstanceStatus | Current instance status does not support this operation. | |
| 400 | InvalidAssociation.AssociateEipFist | Associate EIP first. | |
| 400 | InvalidAssociation.RegionNotSupportStandby | The region of EIP does not support standby. | |
| 400 | NatNotFound | The input parameter allocationId that is not found. | |
| 400 | InvalidAssociation.NetworkTypeNotSupport | The instance network type does not support binding to EIP. | |
| 400 | EniNotFound | The input parameter allocationId that is not found. | |
| 400 | IncorrectEniStatus | Current instance status does not support this operation. | |
| 400 | InvalidParameter.EniServiceManaged | The eni is managed by service. | |
| 400 | InvalidAssociation.EniNotSupportStandby | Eni does not support standby eip. | |
| 400 | IncorrectEniType | The type of eni is invalid. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。