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

ReleaseEipAddress

最近更新时间2023.11.07 08:11:51

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

调用 ReleaseEipAddress 接口,释放一个指定的公网IP。

调用说明

调用本接口释放公网IP,需要同时满足如下条件:

  • 公网IP为按量计费,或包月公网IP已到期。包年包月公网IP到期前,不支持调用本接口释放,若需要释放,请参考 退订说明 。
  • 公网IP未绑定云资源。
    您可调用 DescribeEipAddressAttributes 接口,查看是否绑定云资源,若已绑定,可调用  DisassociateEipAddress 接口解绑。
  • 公网IP未加入共享带宽包。
    您可调用 DescribeEipAddressAttributes 接口,查看是否已加入共享带宽包,若已加入,可调用 RemoveBandwidthPackageIp 接口从共享带宽包移出。

    说明

    共享带宽包正在邀测中,如需试用,请 提交工单 或联系客户经理。

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringReleaseEipAddress要执行的操作,取值:ReleaseEipAddress。
VersionString2020-04-01API的版本信息,当前版本为2020-04-01。
AllocationIdStringeip-2zewb7ujxscd****要释放的公网IP的ID。

返回数据

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

请求示例

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

返回示例

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

错误码

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

HttpCode
错误码
错误信息
描述
400InvaildIpv6.NotSupportThe specified IPv6 address does not support this operation.指定的IPv6地址不支持此操作。
400InvalidBillingType.MalformedThe specified billing type is malformed.指定的计费方式不合法。
400InvalidEip.InTemporaryUpgradeThe specified eip is in temporary upgrade.指定的EIP正在临时升配中。
400InvalidEip.InUseThe specified elastic ip is in use.指定的公网IP使用中。
400InvalidEip.InUseThe specified EIP has dependent resource of a bandwidth package.指定的公网IP已加入到共享带宽包,无法释放。
400InvalidEip.InvalidStatusThe specified elastic ip is not in the correct status for the request.指定的弹性公网IP所处的状态无法响应该请求。
400InvalidNatGateway.InvalidStatusThe specified NAT gateway is not in the correct status for the request.指定的NAT网关所处的状态无法响应该请求。
400PreOrderErrorFailed to create preorder.创建配置单失败。
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.无权限将EIP从Nat网关解绑。
403ForbiddenYou are not authorized to perform operations on the specified elastic ip and ALB.无权限操作此EIP和ALB。
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 network interface. The specified elastic network interface is a service-managed elastic network interface.无权限对指定弹性网卡进行操作。指定的弹性网卡为云产品托管的弹性网卡。
404InvalidInstance.NotFoundThe specified instance does not exist.指定的实例不存在。
404InvalidEip.GetInstanceDetailGet instance detail failed获取实例信息失败
404InvalidEip.NotFoundThe specified EIP does not exist.指定的公网IP不存在。