释放公网IP。
说明
目前该API接口已标记为弃用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ecs:ReleasePublicIpAddress |
delete |
*Instance
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
实例所属地域 ID。 |
cn-hangzhou |
| InstanceId |
string |
否 |
指定的实例 ID。 |
i-bp67acfmxazb4p**** |
| PublicIpAddress |
string |
是 |
实例公网 IP 地址。 |
121.40.**.** |
| DryRun |
boolean |
否 |
说明
该参数暂未开放使用。 |
hide |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| RemainTimes |
string |
说明
该参数暂未开放使用。 |
hide |
示例
正常返回示例
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"RemainTimes": "hide"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | OperationDenied | Specified operation is denied as your instance is in VPC. | 由于实例存在于 VPC 中,指定的操作不合法。 |
| 400 | InvalidIpAddress.NotFound | The specified parameter "IpAddress" is not found in your records. | |
| 400 | DryRunOperation | This is a dryrun request with successful result. | |
| 403 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | |
| 403 | InstanceLockedForSecurity | The specified operation is denied as your instance is locked for security reasons. | 实例被安全锁定。 |
| 403 | InvalidIpAddress.NeedInstanceId | The specified IpAddress need to release with InstanceId. | |
| 403 | OperationTimesOverLimit | The specified operation is denied as release public ip times over the limit. | 实例允许释放 IP 的次数超过限制。 |
| 403 | Forbidden.ExceedDuration | Instance nat public ip can only be released in 6 hours after ecs created. | 释放ECS的公网IP,必须要在ECS创建后的6小时内。 |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | 指定的实例ID无效。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?