Disassociates an elastic IP address (EIP) from an instance.
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 ID of the EIP. |
eip-5sqa431nx3vee8heqxfxp**** |
| Force |
boolean |
No |
Specifies whether to disassociate the EIP from a NAT gateway if a DNAT or SNAT entry is added to the NAT gateway. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
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.