Modifies endpoints of a custom routing listener.
Operation description
Description
-
UpdateCustomRoutingEndpoints is an asynchronous operation. After you send a request, the system returns a request ID, but the operation is still being performed in the background. You can call the DescribeCustomRoutingEndpointGroup operation to query the state of the endpoint groups associated with a custom routing listener and check whether the endpoints are modified.
-
If an endpoint group is in the updating state, the endpoints are being modified. In this case, you can perform only query operations.
-
If an endpoint group is in the active state, the endpoints are modified.
-
-
The UpdateCustomRoutingEndpoints operation cannot be called repeatedly for the same Global Accelerator (GA) instance within a specific period of time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ga:UpdateCustomRoutingEndpoints |
update |
*CustomRoutingEndpointGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the GA instance is deployed. Set the value to cn-hangzhou. |
cn-hangzhou |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters. Note
If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId may be different for each API request. |
123e4567-e89b-12d3-a456-426655440000 |
| EndpointGroupId |
string |
Yes |
The ID of the endpoint group that contains the endpoints you want to modify. |
epg-bp1bpn0kn908w4nb**** |
| EndpointConfigurations |
array<object> |
Yes |
The endpoint configurations. |
|
|
array<object> |
No |
The endpoint configurations. |
||
| TrafficToEndpointPolicy |
string |
No |
The access policy of traffic for the specified endpoint. Default value: DenyAll. Valid values:
You can configure up to 20 access policies for the specified endpoint. |
DenyAll |
| EndpointId |
string |
No |
The ID of the endpoint. You can specify up to 20 endpoint IDs. |
ep-bp1dmlohjjz4kqaun**** |
| PolicyConfigurations |
array<object> |
No |
The policy configurations. |
|
|
array<object> |
No |
The policy configurations. |
||
| Address |
string |
No |
The IP address of the destination to which to allow traffic. This parameter takes effect only when TrafficToEndpointPolicy is set to AllowCustom. You can specify up to 20 destination IP addresses for each endpoint. |
10.0.XX.XX |
| PortRanges |
array<object> |
No |
The port range of the destination to which traffic is forwarded. The value of this parameter must fall within the port range of the endpoint group. If you leave this parameter empty, traffic is forwarded to all destination ports. This parameter takes effect only when TrafficToEndpointPolicy is set to AllowCustom. You can specify port ranges for up to 20 destinations for each endpoint and specify up to 20 port ranges for each destination. |
|
|
object |
No |
The port range of the destination to which traffic is forwarded. The value of this parameter must fall within the port range of the endpoint group. If you leave this parameter empty, traffic is forwarded to all destination ports. This parameter takes effect only when TrafficToEndpointPolicy is set to AllowCustom. You can specify port ranges for up to 20 destinations for each endpoint and specify up to 20 port ranges for each destination. |
||
| FromPort |
string |
No |
The start port of the port range in the destination to which to allow traffic. The specified port must fall within the port range of the specified endpoint group. This parameter takes effect only when TrafficToEndpointPolicy is set to AllowCustom. You can specify port ranges for up to 20 destinations for each endpoint and specify up to 20 start ports for each destination. |
80 |
| ToPort |
string |
No |
The end port of the port range in the destination to which to allow traffic. The specified port must fall within the port range of the specified endpoint group. This parameter takes effect only when TrafficToEndpointPolicy is set to AllowCustom. You can specify port ranges for up to 20 destinations for each endpoint and specify up to 20 end ports for each destination. |
80 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| EndpointIds |
array |
The IDs of the endpoints. |
|
|
string |
The IDs of the endpoints. |
ep-bp1dmlohjjz4kqaun**** |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"EndpointIds": [
"ep-bp1dmlohjjz4kqaun****"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NotExist.EndPointGroup | endpoint group %s is not exist | The endpoint group %s does not exist. |
| 400 | NotExist.Listener | listener %s is not exist | The listener %s does not exist. |
| 400 | StateError.EndPointGroup | endpoint group state %s is illegal | The endpoint group is in an invalid state. |
| 400 | NotActive.Listener | listener %s is not active | The listener %s is unavailable. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.