Releases a contiguous Elastic IP Address (EIP) group by calling ReleaseEipSegmentAddress.
Operation description
-
The ReleaseEipSegmentAddress operation releases all EIPs in a contiguous EIP group.
-
Before you call ReleaseEipSegmentAddress, make sure that:
-
All EIPs in the contiguous EIP group are in the unassociated state. To disassociate an EIP from a cloud resource, call UnassociateEipAddress.
-
All EIPs in the contiguous EIP group are not added to an Internet Shared Bandwidth instance. To remove an EIP from an Internet Shared Bandwidth instance, call RemoveCommonBandwidthPackageIp.
-
-
ReleaseEipSegmentAddress is an asynchronous operation. After you send a request, the system returns a request ID, but the contiguous EIP group is not yet released. The release task continues to run in the background. You can call DescribeEipSegment to query the status of the contiguous EIP group:
If the contiguous EIP group is in the Releasing state, the EIPs are being released. In this state, you can only perform query operations.
If the contiguous EIP group cannot be found, the EIPs have been released.
-
ReleaseEipSegmentAddress does not support concurrent release of the same contiguous EIP group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ReleaseEipSegmentAddress |
delete |
*SegmentAddress
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the contiguous EIP group. You can call DescribeRegions to query the region ID. |
cn-hangzhou |
| SegmentInstanceId |
string |
Yes |
The instance ID of the contiguous EIP group to release. The system releases all EIPs in the contiguous EIP group. |
eipsg-2zett8ba055tbsxme**** |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId may be different for each API request. |
02fb3da4-130e-11e9-8e44-001sdfg |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
F7A6301A-64BA-41EC-8284-8F4838C15D1F |
Examples
Success response
JSON format
{
"RequestId": "F7A6301A-64BA-41EC-8284-8F4838C15D1F"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectEipStatus | Current elastic IP status does not support this operation. | |
| 400 | Forbidden.ChargeTypeIsPrepaid | It's forbidden to release a prepaid EIP | |
| 400 | Forbidden | The eip instance owener error | The EIP does not belong to your account. Check whether you have the permissions to perform the operation on the EIP. |
| 400 | TaskConflict.AssociateGlobalAccelerationInstance | Operate too frequent. | |
| 400 | InvalidOperation.DeletionProtection | The instance cannnot delete because of deletion protecion. | |
| 400 | OperationFailed.InstanceNotExist | Operation failed because eip segment instance not exist. | |
| 400 | OperationFailed.EipNumInconsistent | Operation failed because the number of eip is inconsistent. | |
| 400 | OperationFailed.EipStatusInvalid | Operation failed because eip instance status invalid. | The operation failed because the status of the EIP is invalid. |
| 400 | OperationFailed.EipInBwp | Operation failed because eip instance has been added to the bandwidth package. | |
| 400 | Forbidden.EipInBwp | The EIP has been associated with an EIP bandwidth plan. | You cannot delete the contiguous EIP group because EIPs in the group are associated with an EIP bandwidth plan. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 404 | InvalidAllocationId.NotFound | Specified allocation ID is not found. | |
| 404 | Forbidden.RegionNotFound | Specified region is not found during access authentication. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.