All Products
Search
Document Center

Anycast Elastic IP Address:UpdateAnycastEipAddressAssociations

Last Updated:Apr 03, 2024

If an Anycast EIP is associated with endpoints in different regions, you can change the access points that are mapped to an endpoint. You can call UpdateAnycastEipAddressAssociations to add or delete endpoints to modify the mappings between endpoints and access points.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
BindInstanceIdstringYes

The ID of the cloud resource with which you want to associate the Anycast EIP.

lb-d7oxbixhxv1uupnon****
AnycastIdstringYes

The ID of the Anycast EIP.

aeip-bp1ix34fralt4ykf3****
ClientTokenstringNo

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.
02fb3da4-130e-11e9-8e44-001****
DryRunbooleanNo

Specifies whether to only precheck the request. Valid values:

  • true: prechecks the request without updating the association information. 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.
false
PopLocationAddListobject []No

The access areas and access points to be added.

PopLocationstringNo

The access points in the access areas to be added.

You can call the DescribeAnycastPopLocations operation to query the access points in supported access areas.

us-west-1-pop
PopLocationDeleteListobject []No

The access areas and access points to be deleted.

PopLocationstringNo

The access points in the access areas to be deleted.

Note If the access point in the access area is associated with a default origin server, you cannot delete the access point in the access area.
eu-west-1-pop
AssociationModestringNo

The association mode. Valid values:

  • Default: the default mode. In this mode, cloud resources to be associated are set as default origin servers.
  • Normal: the standard mode. In this mode, cloud resources to be associated are set as standard origin servers.
Default

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

4EC47282-1B74-4534-BD0E-403F3EE64CAF

Examples

Sample success responses

JSONformat

{
  "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}

Error codes

HTTP status codeError codeError message
400OperationFailed.SetNormalAssociationModeThe only associated instance must be default mode.
400OperationFailed.DeletedPopLocationThe operation is failed because of added Pop Location is invalid.
400OperationFailed.AddPopLocationThe operation is failed because of added Pop Location is invalid.
400ResourceNotFound.BindInstanceIdThe specified resource BindInstanceId is not found.
400ResourceNotFound.AnycastIdThe specified resource AnycastId is not found.
400IncorrectStatus.AnycastThe status of the Anycast instance is invalid.

For a list of error codes, visit the Service error codes.