UnassociateEipAddress_专有网络_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

  • UnassociateEipAddress 接口属于异步接口,即系统会先返回一个请求 ID,但 EIP 并未完成解绑,系统后台的解绑任务仍在进行。您可以调用 DescribeEipAddresses 查询 EIP 的状态:
    • 当 EIP 处于 Unassociating 状态时,表示 EIP 正在解绑中,在该状态下,您只能执行查询操作,不能执行其他操作。
    • 当 EIP 处于 Available 时,表示 EIP 完成解绑。
  • UnassociateEipAddress 接口不支持并发解绑同一个 EIP。

流控信息

请求速率为120/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:UnassociateEipAddress
Delete
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
Address
acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
HaVip
acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}

请求参数

字段名称字段详情
Forceboolean

当 EIP 绑定了 NAT 网关,且 NAT 网关添加了 DNAT 或 SNAT 条目时,是否强制解绑 EIP,取值:展开详情

示例值:false
RegionIdstring

要解绑的 EIP 的地域 ID。展开详情

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
AllocationIdstring

要解绑的 EIP 的 ID。

示例值:eip-2zeerraiwb7uj6i0d****
InstanceIdstring

要解绑 EIP 的云产品实例的 ID。展开详情

示例值:i-hp3akk9irtd69jad****参考取值来源:
    AddGlobalAccelerationInstanceIp
InstanceTypestring

要解绑 EIP 的云产品类型,取值: 展开详情

示例值:EcsInstance
PrivateIpAddressstring

要解绑 EIP 的 ECS 实例或辅助弹性网卡实例的私网 IP 地址。

示例值:192.XX.XX.2参考取值来源:
    DescribeEipAddresses
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:02fb3da4-130e-11****

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:0ED8D006-F706-4D23-88ED-E11ED28DCAC0

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
IncorrectEipStatus
Current elastic IP status does not support this operation.诊断
400
InvalidInstanceId.NotFound
Specified instance does not exist.诊断
400
IncorrectInstanceStatus
The current status of instance does not support this operation.诊断
400
InvalidInstanceType.ValueNotSupported
The specified value of InstanceType is not supported.诊断
400
IncorrectHaVipStatus
This operation is denied because satus of the specified HaVip is neither Available nor InUse.诊断
400
OperationDenied
Eip of default vpc not allow this operation诊断
400
InvalidParameter
The specified parameter is not valid.诊断
400
TaskConflict
The eip operate too frequent, TaskConflict.诊断
400
InvalidBindingStatus
The eip binding status invalid.诊断
400
Forbidden.FinancialLocked
The ip business status is invalid.诊断
400
InvalidIpStatus.HasBeenUsedBySnatTable
The removed ip address has been used by snat table.诊断
400
InvalidIpStatus.HasBeenUsedByForwardEntry
The specified address has been used by forwardTable.诊断
400
Eni.Attached
The eni should be detached from ecs when associating with direct eip.诊断
400
InvalidEIPStatus.BizDisabled
The EIP has been locked.诊断
400
InvalidStatus.EcsStatusNotSupport
The special instance status Pending is not support operate诊断
400
InvalidStatus.EniStatusNotSupport
%s诊断
400
InvalidStatus.SnatOrDnat
Operation failed because snat or dnat in unstable status.诊断
400
DependencyViolation.SnatEntry
The specified eip is in ip pool.诊断
400
%s
%s诊断
400
InvalidStatus.NotAllow
Bind instance status invalid诊断
400
Forbidden
The eip instance owener error诊断
400
InvalidLoadBalancerId.NotFound
LoadBalancerId does not exist.诊断
400
OperationFailed.SystemBusy
Operation failed because system is busy.诊断
404
InvalidAllocationId.NotFound
Specified allocation ID is not found诊断
404
InvalidBindInstance.NotFound
The specified bind instance does not exist.诊断
404
Forbidden.RegionNotFound
Specified region is not found during access authentication.诊断

变更历史

变更时间变更内容概要操作
2023-06-26
变更错误码400
2022-11-25
变更错误码400
2022-11-17
变更错误码400

相关示例

申请eip-->绑定eni-->查询EIP的网关和掩码信息-->解绑eni
2021-12-16