tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getClbTargetGroupList
Start a Neo task
Explain and create a tencentcloud.getClbTargetGroupList resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of clb target_group_list
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const targetGroupList = tencentcloud.getClbTargetGroupList({
filters: [{
name: "TargetGroupName",
values: ["keep-tgg"],
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
target_group_list = tencentcloud.get_clb_target_group_list(filters=[{
"name": "TargetGroupName",
"values": ["keep-tgg"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetClbTargetGroupList(ctx, &tencentcloud.GetClbTargetGroupListArgs{
Filters: []tencentcloud.GetClbTargetGroupListFilter{
{
Name: "TargetGroupName",
Values: []string{
"keep-tgg",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var targetGroupList = Tencentcloud.GetClbTargetGroupList.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetClbTargetGroupListFilterInputArgs
{
Name = "TargetGroupName",
Values = new[]
{
"keep-tgg",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetClbTargetGroupListArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var targetGroupList = TencentcloudFunctions.getClbTargetGroupList(GetClbTargetGroupListArgs.builder()
.filters(GetClbTargetGroupListFilterArgs.builder()
.name("TargetGroupName")
.values("keep-tgg")
.build())
.build());
}
}
variables:
targetGroupList:
fn::invoke:
function: tencentcloud:getClbTargetGroupList
arguments:
filters:
- name: TargetGroupName
values:
- keep-tgg
Using getClbTargetGroupList
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getClbTargetGroupList(args: GetClbTargetGroupListArgs, opts?: InvokeOptions): Promise<GetClbTargetGroupListResult>
function getClbTargetGroupListOutput(args: GetClbTargetGroupListOutputArgs, opts?: InvokeOptions): Output<GetClbTargetGroupListResult>def get_clb_target_group_list(filters: Optional[Sequence[GetClbTargetGroupListFilter]] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
target_group_ids: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetClbTargetGroupListResult
def get_clb_target_group_list_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetClbTargetGroupListFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
target_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClbTargetGroupListResult]func GetClbTargetGroupList(ctx *Context, args *GetClbTargetGroupListArgs, opts ...InvokeOption) (*GetClbTargetGroupListResult, error)
func GetClbTargetGroupListOutput(ctx *Context, args *GetClbTargetGroupListOutputArgs, opts ...InvokeOption) GetClbTargetGroupListResultOutput> Note: This function is named GetClbTargetGroupList in the Go SDK.
public static class GetClbTargetGroupList
{
public static Task<GetClbTargetGroupListResult> InvokeAsync(GetClbTargetGroupListArgs args, InvokeOptions? opts = null)
public static Output<GetClbTargetGroupListResult> Invoke(GetClbTargetGroupListInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClbTargetGroupListResult> getClbTargetGroupList(GetClbTargetGroupListArgs args, InvokeOptions options)
public static Output<GetClbTargetGroupListResult> getClbTargetGroupList(GetClbTargetGroupListArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClbTargetGroupList:getClbTargetGroupList
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Clb Target Group List Filter> - Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
- Id string
- Result
Output stringFile - Used to save results.
- Target
Group List<string>Ids - Target group ID array.
- Filters
[]Get
Clb Target Group List Filter - Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
- Id string
- Result
Output stringFile - Used to save results.
- Target
Group []stringIds - Target group ID array.
- filters
List<Get
Clb Target Group List Filter> - Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
- id String
- result
Output StringFile - Used to save results.
- target
Group List<String>Ids - Target group ID array.
- filters
Get
Clb Target Group List Filter[] - Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
- id string
- result
Output stringFile - Used to save results.
- target
Group string[]Ids - Target group ID array.
- filters
Sequence[Get
Clb Target Group List Filter] - Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
- id str
- result_
output_ strfile - Used to save results.
- target_
group_ Sequence[str]ids - Target group ID array.
- filters List<Property Map>
- Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
- id String
- result
Output StringFile - Used to save results.
- target
Group List<String>Ids - Target group ID array.
getClbTargetGroupList Result
The following output properties are available:
- Id string
- Target
Group List<GetSets Clb Target Group List Target Group Set> - Information set of displayed target groups.
- Filters
List<Get
Clb Target Group List Filter> - Result
Output stringFile - Target
Group List<string>Ids
- Id string
- Target
Group []GetSets Clb Target Group List Target Group Set - Information set of displayed target groups.
- Filters
[]Get
Clb Target Group List Filter - Result
Output stringFile - Target
Group []stringIds
- id String
- target
Group List<GetSets Clb Target Group List Target Group Set> - Information set of displayed target groups.
- filters
List<Get
Clb Target Group List Filter> - result
Output StringFile - target
Group List<String>Ids
- id string
- target
Group GetSets Clb Target Group List Target Group Set[] - Information set of displayed target groups.
- filters
Get
Clb Target Group List Filter[] - result
Output stringFile - target
Group string[]Ids
- id str
- target_
group_ Sequence[Getsets Clb Target Group List Target Group Set] - Information set of displayed target groups.
- filters
Sequence[Get
Clb Target Group List Filter] - result_
output_ strfile - target_
group_ Sequence[str]ids
- id String
- target
Group List<Property Map>Sets - Information set of displayed target groups.
- filters List<Property Map>
- result
Output StringFile - target
Group List<String>Ids
Supporting Types
GetClbTargetGroupListFilter
GetClbTargetGroupListTargetGroupSet
- Associated
Rules List<GetClb Target Group List Target Group Set Associated Rule> - Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
- Created
Time string - Target group creation time.
- Port double
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- Target
Group stringId - Target group ID.
- Target
Group stringName - Target group name.
- Updated
Time string - Target group modification time.
- Vpc
Id string - vpcid of target group.
- Associated
Rules []GetClb Target Group List Target Group Set Associated Rule - Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
- Created
Time string - Target group creation time.
- Port float64
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- Target
Group stringId - Target group ID.
- Target
Group stringName - Target group name.
- Updated
Time string - Target group modification time.
- Vpc
Id string - vpcid of target group.
- associated
Rules List<GetClb Target Group List Target Group Set Associated Rule> - Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
- created
Time String - Target group creation time.
- port Double
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- target
Group StringId - Target group ID.
- target
Group StringName - Target group name.
- updated
Time String - Target group modification time.
- vpc
Id String - vpcid of target group.
- associated
Rules GetClb Target Group List Target Group Set Associated Rule[] - Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
- created
Time string - Target group creation time.
- port number
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- target
Group stringId - Target group ID.
- target
Group stringName - Target group name.
- updated
Time string - Target group modification time.
- vpc
Id string - vpcid of target group.
- associated_
rules Sequence[GetClb Target Group List Target Group Set Associated Rule] - Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
- created_
time str - Target group creation time.
- port float
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- target_
group_ strid - Target group ID.
- target_
group_ strname - Target group name.
- updated_
time str - Target group modification time.
- vpc_
id str - vpcid of target group.
- associated
Rules List<Property Map> - Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
- created
Time String - Target group creation time.
- port Number
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- target
Group StringId - Target group ID.
- target
Group StringName - Target group name.
- updated
Time String - Target group modification time.
- vpc
Id String - vpcid of target group.
GetClbTargetGroupListTargetGroupSetAssociatedRule
- Domain string
- Domain name of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- Listener
Id string - ID of associated listener.
- Listener
Name string - Listener name.
- Load
Balancer stringId - ID of associated CLB instance.
- Load
Balancer stringName - CLB instance name.
- Location
Id string - ID of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- Port double
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- Protocol string
- Protocol type of associated listener, such as HTTP or TCP.
- Url string
- URL of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- Domain string
- Domain name of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- Listener
Id string - ID of associated listener.
- Listener
Name string - Listener name.
- Load
Balancer stringId - ID of associated CLB instance.
- Load
Balancer stringName - CLB instance name.
- Location
Id string - ID of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- Port float64
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- Protocol string
- Protocol type of associated listener, such as HTTP or TCP.
- Url string
- URL of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- domain String
- Domain name of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- listener
Id String - ID of associated listener.
- listener
Name String - Listener name.
- load
Balancer StringId - ID of associated CLB instance.
- load
Balancer StringName - CLB instance name.
- location
Id String - ID of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- port Double
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- protocol String
- Protocol type of associated listener, such as HTTP or TCP.
- url String
- URL of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- domain string
- Domain name of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- listener
Id string - ID of associated listener.
- listener
Name string - Listener name.
- load
Balancer stringId - ID of associated CLB instance.
- load
Balancer stringName - CLB instance name.
- location
Id string - ID of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- port number
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- protocol string
- Protocol type of associated listener, such as HTTP or TCP.
- url string
- URL of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- domain str
- Domain name of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- listener_
id str - ID of associated listener.
- listener_
name str - Listener name.
- load_
balancer_ strid - ID of associated CLB instance.
- load_
balancer_ strname - CLB instance name.
- location_
id str - ID of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- port float
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- protocol str
- Protocol type of associated listener, such as HTTP or TCP.
- url str
- URL of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- domain String
- Domain name of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- listener
Id String - ID of associated listener.
- listener
Name String - Listener name.
- load
Balancer StringId - ID of associated CLB instance.
- load
Balancer StringName - CLB instance name.
- location
Id String - ID of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
- port Number
- Default port of target group. Note: this field may return null, indicating that no valid values can be obtained.
- protocol String
- Protocol type of associated listener, such as HTTP or TCP.
- url String
- URL of associated forwarding rule. Note: this field may return null, indicating that no valid values can be obtained.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
