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
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BindInstanceId | string | Yes | The ID of the cloud resource with which you want to associate the Anycast EIP. | lb-d7oxbixhxv1uupnon**** |
AnycastId | string | Yes | The ID of the Anycast EIP. | aeip-bp1ix34fralt4ykf3**** |
ClientToken | string | No | 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**** |
DryRun | boolean | No | Specifies whether to only precheck the request. Valid values:
| false |
PopLocationAddList | object [] | No | The access areas and access points to be added. | |
PopLocation | string | No | 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 |
PopLocationDeleteList | object [] | No | The access areas and access points to be deleted. | |
PopLocation | string | No | 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 |
AssociationMode | string | No | The association mode. Valid values:
| Default |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | OperationFailed.SetNormalAssociationMode | The only associated instance must be default mode. |
400 | OperationFailed.DeletedPopLocation | The operation is failed because of added Pop Location is invalid. |
400 | OperationFailed.AddPopLocation | The operation is failed because of added Pop Location is invalid. |
400 | ResourceNotFound.BindInstanceId | The specified resource BindInstanceId is not found. |
400 | ResourceNotFound.AnycastId | The specified resource AnycastId is not found. |
400 | IncorrectStatus.Anycast | The status of the Anycast instance is invalid. |
For a list of error codes, visit the Service error codes.