調用AssignPrivateIpAddresses為彈性網卡分配輔助私人IP地址。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:AssignPrivateIpAddresses |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| NetworkInterfaceId |
string |
是 |
彈性網卡 ID。 |
eni-uf6533jbifugr5f***** |
| VSwitchId |
string |
否 |
交換器 ID。 |
vsw-5rllcjb3ol6duzjdnbm1o***** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| AssignedPrivateIpAddressesSet |
object |
已指派輔助私網 IP 位址的彈性網卡資訊組成的集合。 |
|
| NetworkInterfaceId |
string |
彈性網卡 ID。 |
eni-uf620pb4d19ljnu4a64m |
| PrivateIpSet |
array |
已指派的私網 IP 位址。 |
|
|
string |
已指派的私網 IP 位址。 |
10.0.XXX |
樣本
正常返回樣本
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"AssignedPrivateIpAddressesSet": {
"NetworkInterfaceId": "eni-uf620pb4d19ljnu4a64m",
"PrivateIpSet": [
"10.0.XXX"
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。