Modifies the configurations of an endpoint group.
Operation description
-
UpdateEndpointGroup is an asynchronous operation. After you send a request, the system returns a request ID, but the operation is still being performed in the system background. You can call the DescribeEndpointGroup operation to query the state of an endpoint group.
- If the endpoint group is in the updating state, it indicates that the configurations of the endpoint group are being modified. In this case, you can perform only query operations.
- If the endpoint group is in the active state, it indicates that the configurations of the endpoint group are modified.
-
The UpdateEndpointGroup operation cannot be repeatedly called for the same Global Accelerator (GA) instance within a specific period of time.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ga:UpdateEndpointGroup | update |
|
| 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 specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
| 123e4567-e89b-12d3-a456-426655440000 |
EndpointGroupId | string | Yes | The ID of the endpoint group. | epg-bp1dmlohjjz4kqaun**** |
Name | string | No | The name of the endpoint group. The name must be 1 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter. | group1 |
Description | string | No | The description of the endpoint group. The description can be up to 200 characters in length and cannot start with | EndpointGroup |
EndpointGroupRegion | string | Yes | The ID of the region where the endpoint group is created. | cn-hangzhou |
TrafficPercentage | integer | No | The weight of the endpoint group when the listener is associated with multiple endpoint groups. | 20 |
HealthCheckIntervalSeconds | integer | No | The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. | 3 |
HealthCheckPath | string | No | The path to which health check requests are sent. | /healthcheck |
HealthCheckPort | integer | No | The port that is used for health checks. Valid values: 1 to 65535. | 20 |
HealthCheckProtocol | string | No | The protocol over which to send health check requests. Valid values:
| tcp |
ThresholdCount | integer | No | The number of consecutive health check failures that must occur before a healthy endpoint group is considered unhealthy, or the number of consecutive health check successes that must occur before an unhealthy endpoint group is considered healthy. Valid values: 2 to 10. | 3 |
EndpointConfigurations | array<object> | No | The configurations of endpoints in the endpoint group. | |
object | No | The configurations of endpoints in the endpoint group. | ||
Type | string | Yes | The type of the endpoint. Valid values:
Note
For more information, see Service-linked roles. | Ip |
EnableClientIPPreservation | boolean | No | Specifies whether to preserve client IP addresses by using the TCP Option Address (TOA) module. Valid values:
| false |
Weight | integer | Yes | The weight of the endpoint. Valid values: 0 to 255. Note
If you set the weight of an endpoint to 0, GA stops distributing traffic to the endpoint. Proceed with caution.
| 20 |
EnableProxyProtocol | boolean | No | Specifies whether to use the proxy protocol to preserve client IP addresses. Valid values:
| false |
Endpoint | string | Yes | Enter the IP address, domain name, or instance ID based on the value of the Type parameter. | 120.XX.XX.21 |
SubAddress | string | No | The private IP address of the ENI. Note
This parameter is available only when you set the endpoint type to ENI. If you leave this parameter empty, the primary private IP address of the ENI is used.
| 172.168.XX.XX |
EndpointRequestProtocol | string | No | The protocol that is used by the backend service. Valid values:
Note
| HTTP |
EndpointProtocolVersion | string | No | The protocol version that is used by the backend service. Valid values:
Note
This parameter takes effect only when you set EndpointRequestProtocol to HTTPS.
| HTTP1.1 |
PortOverrides | array<object> | No | The mappings between ports. | |
object | No | The mappings between ports. | ||
ListenerPort | integer | No | The listener port that is mapped to the endpoint port. Note
| 443 |
EndpointPort | integer | No | The endpoint port that is mapped to the listener port. | 80 |
HealthCheckEnabled | boolean | No | Specifies whether to enable the health check feature. Valid values: Valid values:
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6FEA0CF3-D3B9-43E5-A304-D217037876A8\t"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission.EnableHealthCheck | You do not have permission to enable health check. | The current account does not have the permissions to enable health checks. |
400 | NotExist.EndPointGroup | The endpoint group does not exist. | The endpoint group does not exist. |
400 | StateError.EndPointGroup | The specified state of endpoint group is invalid. | The endpoint group is in an invalid state. |
400 | NotExist.Listener | The listener does not exist. | The listener does not exist. |
400 | NotActive.Listener | The state of the listener is not active. | The listener is unstable. |
400 | NotExist.Accelerator | The accelerated instance does not exist. | The GA instance does not exist. |
400 | StateError.Accelerator | The state of the accelerated instance is invalid. | The status of the GA instance is invalid. |
400 | QuotaExceeded.EndPoint | The maximum number of endpoints is exceeded. | The maximum number of endpoints is exceeded. |
400 | NoPermission.VpcEndpoint | You are not authorized to perform the operation. | The user does not have permissions to create service linked roles. Contact the Alibaba Cloud account owner or the permission administrator to grant the current user AliyunGlobalAccelerationFullAccess or create custom permission policies for service linked role. The following content describes the detailed information about custom permission policies: ServiceName: vpcendpoint.ga.aliyuncs.com. Service linked role name: AliyunServiceRoleForGaVpc. Endpoint Permission: ram:CreateServiceLinkedRole. |
400 | EndPointRequestProtocolIllegal.EndpointGroup | endpoint group request protoco is illegal | - |
400 | QuotaExceeded.PortOverride | The number of port override exceeds the limit. | The number of port override exceeds the limit. |
400 | NotExist.ListenerPort | listener port %s is not exist | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-20 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-11-22 | The Error code has changed | View Change Details |
2023-09-14 | The Error code has changed | View Change Details |
2023-06-20 | The Error code has changed | View Change Details |