Elastic Network Interface (ENI) にセカンダリプライベート IP アドレスを割り当てます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:AssignPrivateIpAddresses |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| NetworkInterfaceId |
string |
必須 |
ENI の ID。 |
eni-uf6533jbifugr5f***** |
| VSwitchId |
string |
任意 |
vSwitch の ID。 |
vsw-5rllcjb3ol6duzjdnbm1o***** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエストの ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| AssignedPrivateIpAddressesSet |
object |
ENI と、ENI に割り当てられたセカンダリプライベート IP アドレスの詳細。 |
|
| NetworkInterfaceId |
string |
ENI の ID。 |
eni-uf620pb4d19ljnu4a64m |
| PrivateIpSet |
array |
割り当てられたプライベート IP アドレス。 |
|
|
string |
割り当てられたプライベート IP アドレス。 |
10.0.XXX |
例
成功レスポンス
JSONJSON
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"AssignedPrivateIpAddressesSet": {
"NetworkInterfaceId": "eni-uf620pb4d19ljnu4a64m",
"PrivateIpSet": [
"10.0.XXX"
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | InvalidEniId.NotFound | The specified NetworkInterfaceId does not exist. | |
| 400 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | |
| 400 | InvalidOperation.InstanceNotSupport | The specified instance does not support this operation. | |
| 400 | InvalidVSwitchId.NotFound | The specified VSwitchId does not exist. | |
| 400 | InvalidVSwitchId.NotBelongNetwork | The specified VSwitch is not bound to instance's network. | |
| 400 | MaxEniPrivateIpsCountExceeded | The maximum number of privateIp in a eni is exceeded. | |
| 400 | InvalidVSwitchId.IpNotEnough | Don't have enough private IPs in this switch. | |
| 400 | IncorrectEniStatus | Current eni status does not support this operation. | |
| 400 | InvalidParameter.EniServiceManaged | The eni is managed by service. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。