You need to enable JavaScript to run this app.
导航

UnassignPrivateIpAddresses

最近更新时间2024.01.10 10:41:31

首次发布时间2022.03.01 09:06:31

调用 UnassignPrivateIpAddresses 接口,为指定的网卡释放辅助私网IPv4地址。

调用说明

  • 仅状态为AvailableInUse状态下的辅助网卡,可释放辅助私网IPv4地址。
  • 为主网卡释放辅助私网IPv4时,主网卡所属的实例状态必须为RUNNINGSTOPPED状态。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringUnassignPrivateIpAddresses要执行的操作。取值:UnassignPrivateIpAddresses。
VersionString2020-04-01API版本信息,取值为:2020-04-01。

NetworkInterfaceId

String

eni-bp67acfmxazb4p****

网卡的ID。
您可以调用 DescribeNetworkInterfaces 接口,查询网卡的ID。

PrivateIpAddress.N

String

PrivateIpAddress.1=192.168.XX.10&PrivateIpAddress.2=192.168.XX.12

网卡待释放的辅助私网IPv4地址。

  • 参数 - N:表示辅助私网IPv4地址的序号。
  • 多个辅助私网IPv4地址之间用&分隔。

返回数据

参数名称
类型
示例值
描述
RequestIdString473469C7-AA6F-4DC5-B3DB-A3DC0DE3****请求ID。

请求示例

GET /?Action=UnassignPrivateIpAddresses&Version=2020-04-01&NetworkInterfaceId=eni-bp67acfmxazb4ph****&PrivateIpAddress.1=192.168.XX.10 HTTP/1.1
Host: open.volcengineapi.com
Service: vpc
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
        "Action": "UnassignPrivateIpAddresses",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400InvalidAnycastEip.InUseThe specified anycast elastic IP is being operated by another request.指定的任播公网IP正被另一个请求操作,请稍后再试。
400InvalidEip.InvalidStatusThe specified elastic ip is not in the correct status for the request.指定的弹性公网IP所处的状态无法响应该请求。
400InvalidEni.InvalidStatusThe specified elastic network interface is not in the correct status for the request.指定的弹性网卡所处的状态无法响应该请求。
400InvalidPrivateIp.MalformedThe specified private ip is malformed.指定的私网IP不合法。
403ForbiddenYou are not authorized to perform operations on the specified elastic network interface. The specified elastic network interface is a service-managed elastic network interface.无权限对指定弹性网卡进行操作。指定的弹性网卡为云产品托管的弹性网卡。
404InvalidEniId.NotFoundThe specified elastic network interface does not exist.指定的弹性网卡不存在。