Domain name for API request: alb.intl.tencentcloudapi.com.
Query the target group list.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeTargetGroups. |
| Version | Yes | String | Common Params. The value used for this API: 2025-10-30. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| Filters.N | No | Array of Filter | Filter. Query backend services by specified filter criteria. Supported values: - The value of Name is VpcId. Filter target groups by VPC instance. The value of Values is a unique VPC ID list. -The value of Name is TargetType. Filter target groups by backend service type. The value of Values can be Instance.-The value of Name is TargetGroupName. Filter target groups by target group name. The value of Values is a list of target group names.- The value of Name is Protocol. Filter target groups by the backend service protocol of the target group. The value of Values is a list of backend service protocols of target groups.-Filter by tag. |
| MaxResults | No | Integer | Number of returned entries. Default value: 20. Maximum value: 100. |
| NextToken | No | String | Token for the next query. Not required for the first query or when there are no more queries. If there is a next query, the value is the NextToken value returned from the last API call. |
| TargetGroupIds.N | No | Array of String | Target group ID list. The ID format is lbtg- followed by 8 alphanumeric characters. |
| Parameter Name | Type | Description |
|---|---|---|
| NextToken | String | Token for the next query. If the current page is the last page, this field returns empty. |
| TargetGroups | Array of TargetGroupOutput | Target group information. |
| TotalCount | Integer | Total number of target groups. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: alb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTargetGroups
<Common request parameters>
{
"Filters": [
{
"Name": "Protocol",
"Values": [
"HTTP",
"HTTPS"
]
}
],
"MaxResults": 100
}
{
"Response": {
"TotalCount": 2,
"TargetGroups": [
{
"TargetGroupId": "lbtg-0zrnc9qa",
"TargetGroupName": "group1",
"TargetType": "Instance",
"Protocol": "HTTP",
"VpcId": "vpc-92hffaxb",
"SchedulerAlgorithm": "wrr",
"CreateTime": "2026-06-03T11:18:25+08:00",
"KeepaliveEnabled": false,
"Tags": [],
"RelatedLoadBalancersCount": 2,
"TargetGroupStatus": "Active",
"HealthCheckConfig": {
"HealthCheckEnabled": true,
"HealthCheckPort": 0,
"HealthCheckProtocol": "HTTP",
"HealthCheckCodes": [
"http_1xx",
"http_2xx",
"http_3xx",
"http_4xx"
],
"HealthCheckInterval": 5,
"HealthCheckHttpVersion": "HTTP1.1",
"HealthCheckMethod": "HEAD",
"HealthCheckPath": "/",
"HealthCheckTimeout": 2,
"HealthCheckHealthyThreshold": 3,
"HealthCheckUnhealthyThreshold": 3,
"HealthCheckHost": "aaa.com"
},
"StickySessionConfig": {
"StickySessionEnabled": false
}
},
{
"TargetGroupId": "lbtg-0zrnc9qa",
"TargetGroupName": "group2",
"TargetType": "Instance",
"Protocol": "HTTP",
"VpcId": "vpc-92hffaxb",
"SchedulerAlgorithm": "wrr",
"CreateTime": "2026-06-03T11:17:34+08:00",
"KeepaliveEnabled": false,
"Tags": [],
"RelatedLoadBalancersCount": 0,
"TargetGroupStatus": "Active",
"HealthCheckConfig": {
"HealthCheckEnabled": true,
"HealthCheckPort": 0,
"HealthCheckProtocol": "HTTP",
"HealthCheckCodes": [
"http_1xx",
"http_2xx",
"http_3xx",
"http_4xx"
],
"HealthCheckInterval": 5,
"HealthCheckHttpVersion": "HTTP1.1",
"HealthCheckMethod": "HEAD",
"HealthCheckPath": "/",
"HealthCheckTimeout": 2,
"HealthCheckHealthyThreshold": 3,
"HealthCheckUnhealthyThreshold": 3,
"HealthCheckHost": "aaa.com"
},
"StickySessionConfig": {
"StickySessionEnabled": false
}
}
],
"RequestId": "fb47afdf-9728-4362-ad51-7049878fca3a"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários