Disassociates an Anycast elastic IP address (Anycast EIP) from a cloud resource.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UnassociateAnycastEipAddress

The operation that you want to perform. Set the value to UnassociateAnycastEipAddress.

BindInstanceId String Yes lb-2zebb08phyczzawe****

The ID of the cloud resource from which you want to disassociate the Anycast EIP.

BindInstanceRegionId String Yes us-west-1

The region where the cloud resource is deployed.

BindInstanceType String Yes SlbInstance

The type of cloud resource from which you want to disassociate the Anycast EIP. Valid values:

  • SlbInstance: an internal-facing Server Load Balancer (SLB) instance that is deployed in a virtual private cloud (VPC)
  • NetworkInterface: an elastic network interface (ENI)
AnycastId String Yes aeip-2zeerraiwb7ujsxdc****

The ID of the Anycast EIP.

ClientToken String No 02fb3da4-130e-11e9-8e44-001****

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Note If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId may be different for each API request.
DryRun String No false

Specifies whether to only precheck the request. Valid values:

  • true: prechecks the request without disassociating the Anycast EIP. The system checks the required parameters, request syntax, and limits. If the request fails to pass the precheck, an error message is returned. If the request passes the precheck, the DryRunOperation error code is returned.
  • false (default): sends the API request. If the request passes the precheck, a 2xx HTTP status code is returned and the operation is performed.
PrivateIpAddress String No 192.168.XX.XX

The secondary private IP address of the ENI from which you want to disassociate the Anycast EIP.

This parameter is valid only when you set BindInstanceType to NetworkInterface. If you do not set this parameter, the primary private IP address of the ENI is returned.

Response parameters

Parameter Type Example Description
RequestId String FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UnassociateAnycastEipAddress
&BindInstanceId=lb-2zebb08phyczzawe****
&BindInstanceRegionId=us-west-1
&BindInstanceType=SlbInstance
&AnycastId=aeip-2zeerraiwb7ujsxdc****
&ClientToken=02fb3da4-130e-11e9-8e44-001****
&DryRun=false
&PrivateIpAddress=192.168.XX.XX
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UnassociateAnycastEipAddressResponse>
    <RequestId>FBDB18D8-E91E-4978-8D6C-6E2E3EE10133</RequestId>
</UnassociateAnycastEipAddressResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"
}

Error codes

For a list of error codes, visit the API Error Center.