Disassociates a high-availability virtual IP address (HaVip) from an ECS instance.
This API has been deprecated. We recommend migrating to Vpc(2016-04-28) - UnassociateHaVip for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:UnassociateHaVip |
delete |
*Instance
*HaVip
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
|
|
| RegionId |
string |
Yes |
DescribeRegions operation to query the latest region list. |
|
| HaVipId |
string |
Yes |
|
|
| InstanceId |
string |
Yes |
|
|
| Force |
string |
No |
true, you can disassociate the HaVip from a master instance. Valid values: true and false. The default value is false. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| RequestId |
string |
|
Examples
Success response
JSON format
{
"RequestId": ""
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectHaVipStatus | HaVip can be operated by this action only when it's status is InUse. | |
| 400 | IncorrectInstanceStatus | ECS instance can be operated by this action only when it's status is Running or Stopped. | |
| 400 | ResourceNotAssociated | The HaVip and ECS instance are not associated. | The HAVIP and the ECS instance are not associated. |
| 400 | Forbidden.UnassociateMaster | Unassociating a master instance is not allowed unless the parameter Force is True. | |
| 400 | OperationFailed.DistibuteLock | Distibute lock fail. | |
| 400 | Forbidden.HaVip | No permissions to perform operations on HAVIPs. Please apply for privilege--vpc_privilege_allow_buy_havip_instance. | You do not have the permissions to manage the HAVIP. Go to the Quota Center to apply for the permissions. |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | Region information error |
| 404 | InvalidHaVipId.NotFound | The specified HaVip does not exist in the specified region. | |
| 404 | InvalidInstanceId.NotFound | The specified Instance does not exist in the specified region. | The specified instance does not exist. Check whether the instance ID is correct. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.