Disassociates an elastic IP address (EIP) from the cloud resource to which it is bound.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:UnAssociateEnsEipAddress |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AllocationId |
string |
Yes |
The instance ID of the edge elastic IP address (EIP). If the EIP is referenced by an SNAT entry, invoke DeleteSnatIpForSnatEntry to remove it first. If the EIP is referenced by a DNAT entry, invoke DeleteForwardEntry to delete it first, or set Force to true under Settings as needed. |
eip-5sqa431nx3vee8heqxfxp**** |
| Force |
boolean |
No |
Specifies whether to forcibly disassociate the EIP when the EIP is bound to a NAT gateway that has DNAT or SNAT entries. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
4A431388-2D4B-46F4-A96B-D4E6BD0688C1 |
Examples
Success response
JSON format
{
"RequestId": "4A431388-2D4B-46F4-A96B-D4E6BD0688C1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceNotFound | The input parameter instancdId that is not found. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | IncorrectEipStatus | The current status of the resource does not support this operation. | The Eip status is incorrect. Check the Eip status. |
| 400 | EipNotFound | The input parameter allocationId that is not found. | |
| 400 | IncorrectEipIpStatus | The ip status of EIP is invalid. | |
| 400 | InvalidUnAssociation.UnAssociateStandbyEipFist | Unassociate standby eip first. | |
| 400 | ens.interface.error | Failed to call API. | |
| 400 | InvalidIpStatus.HasBeenUsedByForwardEntry | The eip has been used by dnat. | There is dnat using this Eip. |
| 400 | InvalidIpStatus.HasBeenUsedBySnatTable | The eip has been used by snat. | This Eip is in use by snat. |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.