调用AssignPrivateIpAddresses为弹性网卡分配辅助私有IP地址。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
NetworkInterfaceId | string | 是 | 弹性网卡 ID。 | eni-uf6533jbifugr5f***** |
VSwitchId | string | 否 | 交换机 ID。 | vsw-5rllcjb3ol6duzjdnbm1o***** |
返回参数
示例
正常返回示例
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. | - |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-09-21 | OpenAPI 错误码发生变更 | 查看变更详情 |