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

DisassociateEipAddress

最近更新时间2024.04.11 16:40:49

首次发布时间2021.07.31 07:47:47

调用 DisassociateEipAddress 接口,将公网IP与云资源解绑。

调用说明

公网类型负载均衡不支持解绑公网IP,您可调用 ModifyLoadBalancerAttributes 将其转换成私网类型负载均衡后,再进行解绑。

请求参数

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

AllocationId

String

eip-2ze7ujxscd****

要解绑的公网IP的ID。
您可以调用 DescribeEipAddresses 接口,查询公网IP的ID。

InstanceType

String

EcsInstance

待解绑云资源的类型。取值如下:

  • Nat:公网NAT网关。
  • NetworkInterface: 网卡。
  • ClbInstance: 负载均衡CLB(私网)。
  • EcsInstance:云服务器ECS。
  • HaVip:高可用虚拟IP。

说明

高可用虚拟IP正在邀测中,如需试用,请联系客户经理。

InstanceIdStringi-2zebbhyczzaweeval****待解绑云资源的ID。根据InstanceType传入的参数,传入对应类型云资源的ID。

ClientToken

String

123e4567-e89b-12d3-a456-42665544****

保证请求幂等性。由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。取值:

  • 仅支持ASCII字符,且不能超过64个字符。

返回数据

参数名称
类型
示例值
描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=DisassociateEipAddress&Version=2020-04-01&AllocationId=eip-2ze7ujxscd**** HTTP/1.1
Host: open.volcengineapi.com
Service: vpc
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "DisassociateEipAddress",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-beijing"
    },   
    "Result":{
        "RequestId": "2021062415303301022514515207C4****"
    }
}

错误码

公共错误码,请参见 公共错误码 。

HttpCode
错误码
错误信息
描述
400IdempotentParameterMismatchArguments on this idempotent request are inconsistent with arguments used in previous request(s).此幂等请求的参数与前一个请求中使用的参数不一致。
400InvalidEip.InstanceMismatchThe specified elastic ip and instance mismatch.指定的公网IP和实例不匹配。
400InvalidEip.InvalidStatusThe specified elastic ip address 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.指定的弹性网卡所处的状态无法响应该请求。
400InvalidNatGateway.InvalidStatusThe operation is not supported by the current nat gateway.指定的NAT网关所处的状态无法响应该请求。
400IncorrectNatGatewayStatusThe operation is not supported by the current nat gateway.当前操作不支持,请稍后重试。
400InvalidParameter.ClientTokenMalformedThe specified parameter ClientToken is malformed.指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。
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.无权限对指定弹性网卡进行操作。指定的弹性网卡为云产品托管的弹性网卡。
403ForbiddenYou are not authorized to perform operations on the specified elastic ip and public CLB.无权限操作此EIP和公网CLB。
403ForbiddenYou are not authorized to disassociate elastic ip from Nat gateway.无权限将公网IP从NAT网关解绑。
403ForbiddenYou are not authorized to perform operations on the specified elastic ip and private CLB.无权限操作此EIP和私网CLB。
403ForbiddenYou are not authorized to perform operations on the specified elastic ip and ALB.无权限操作此EIP和ALB。
404InvalidEip.NotFoundThe specified EIP does not exist.指定的公网IP不存在。
404InvalidInstance.NotFoundThe specified instance does not exist.指定的实例不存在。
412IdempotentProcessingThe request uses the same client token as a previous one that is still in process.幂等请求处理中。