1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getClbTargetGroupList
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getClbTargetGroupList

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    Filters List<GetClbTargetGroupListFilter>
    Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
    Id string
    ResultOutputFile string
    Used to save results.
    TargetGroupIds List<string>
    Target group ID array.
    Filters []GetClbTargetGroupListFilter
    Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
    Id string
    ResultOutputFile string
    Used to save results.
    TargetGroupIds []string
    Target group ID array.
    filters List<GetClbTargetGroupListFilter>
    Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
    id String
    resultOutputFile String
    Used to save results.
    targetGroupIds List<String>
    Target group ID array.
    filters GetClbTargetGroupListFilter[]
    Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
    id string
    resultOutputFile string
    Used to save results.
    targetGroupIds string[]
    Target group ID array.
    filters Sequence[GetClbTargetGroupListFilter]
    Filter array, which is exclusive of TargetGroupIds. Valid values: TargetGroupVpcId and TargetGroupName. Target group ID will be used first.
    id str
    result_output_file str
    Used to save results.
    target_group_ids Sequence[str]
    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
    resultOutputFile String
    Used to save results.
    targetGroupIds List<String>
    Target group ID array.

    getClbTargetGroupList Result

    The following output properties are available:

    id String
    targetGroupSets List<Property Map>
    Information set of displayed target groups.
    filters List<Property Map>
    resultOutputFile String
    targetGroupIds List<String>

    Supporting Types

    GetClbTargetGroupListFilter

    Name string
    Filter name.
    Values List<string>
    Filter value array.
    Name string
    Filter name.
    Values []string
    Filter value array.
    name String
    Filter name.
    values List<String>
    Filter value array.
    name string
    Filter name.
    values string[]
    Filter value array.
    name str
    Filter name.
    values Sequence[str]
    Filter value array.
    name String
    Filter name.
    values List<String>
    Filter value array.

    GetClbTargetGroupListTargetGroupSet

    AssociatedRules List<GetClbTargetGroupListTargetGroupSetAssociatedRule>
    Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
    CreatedTime 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.
    TargetGroupId string
    Target group ID.
    TargetGroupName string
    Target group name.
    UpdatedTime string
    Target group modification time.
    VpcId string
    vpcid of target group.
    AssociatedRules []GetClbTargetGroupListTargetGroupSetAssociatedRule
    Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
    CreatedTime 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.
    TargetGroupId string
    Target group ID.
    TargetGroupName string
    Target group name.
    UpdatedTime string
    Target group modification time.
    VpcId string
    vpcid of target group.
    associatedRules List<GetClbTargetGroupListTargetGroupSetAssociatedRule>
    Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
    createdTime 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.
    targetGroupId String
    Target group ID.
    targetGroupName String
    Target group name.
    updatedTime String
    Target group modification time.
    vpcId String
    vpcid of target group.
    associatedRules GetClbTargetGroupListTargetGroupSetAssociatedRule[]
    Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
    createdTime 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.
    targetGroupId string
    Target group ID.
    targetGroupName string
    Target group name.
    updatedTime string
    Target group modification time.
    vpcId string
    vpcid of target group.
    associated_rules Sequence[GetClbTargetGroupListTargetGroupSetAssociatedRule]
    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_id str
    Target group ID.
    target_group_name str
    Target group name.
    updated_time str
    Target group modification time.
    vpc_id str
    vpcid of target group.
    associatedRules List<Property Map>
    Array of associated rules. Note: this field may return null, indicating that no valid values can be obtained.
    createdTime 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.
    targetGroupId String
    Target group ID.
    targetGroupName String
    Target group name.
    updatedTime String
    Target group modification time.
    vpcId 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.
    ListenerId string
    ID of associated listener.
    ListenerName string
    Listener name.
    LoadBalancerId string
    ID of associated CLB instance.
    LoadBalancerName string
    CLB instance name.
    LocationId 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.
    ListenerId string
    ID of associated listener.
    ListenerName string
    Listener name.
    LoadBalancerId string
    ID of associated CLB instance.
    LoadBalancerName string
    CLB instance name.
    LocationId 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.
    listenerId String
    ID of associated listener.
    listenerName String
    Listener name.
    loadBalancerId String
    ID of associated CLB instance.
    loadBalancerName String
    CLB instance name.
    locationId 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.
    listenerId string
    ID of associated listener.
    listenerName string
    Listener name.
    loadBalancerId string
    ID of associated CLB instance.
    loadBalancerName string
    CLB instance name.
    locationId 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_id str
    ID of associated CLB instance.
    load_balancer_name str
    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.
    listenerId String
    ID of associated listener.
    listenerName String
    Listener name.
    loadBalancerId String
    ID of associated CLB instance.
    loadBalancerName String
    CLB instance name.
    locationId 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack