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

tencentcloud.getClbTargetGroups

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query target group information.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      clbBasic:
        type: tencentcloud:ClbInstance
        properties:
          networkType: OPEN
          clbName: tf-clb-rule-basic
      listenerBasic:
        type: tencentcloud:ClbListener
        properties:
          clbId: ${clbBasic.clbInstanceId}
          port: 1
          protocol: HTTP
          listenerName: listener_basic
      ruleBasic:
        type: tencentcloud:ClbListenerRule
        properties:
          clbId: ${clbBasic.clbInstanceId}
          listenerId: ${listenerBasic.listenerId}
          domain: abc.com
          url: /
          sessionExpireTime: 30
          scheduler: WRR
          targetType: TARGETGROUP
      test:
        type: tencentcloud:ClbTargetGroup
        properties:
          targetGroupName: test-target-keep-1
      group:
        type: tencentcloud:ClbTargetGroupAttachment
        properties:
          clbId: ${clbBasic.clbInstanceId}
          listenerId: ${listenerBasic.listenerId}
          ruleId: ${ruleBasic.ruleId}
          targrtGroupId: ${test.clbTargetGroupId}
    variables:
      targetGroupInfoId:
        fn::invoke:
          function: tencentcloud:getClbTargetGroups
          arguments:
            targetGroupId: ${test.clbTargetGroupId}
    

    Using getClbTargetGroups

    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 getClbTargetGroups(args: GetClbTargetGroupsArgs, opts?: InvokeOptions): Promise<GetClbTargetGroupsResult>
    function getClbTargetGroupsOutput(args: GetClbTargetGroupsOutputArgs, opts?: InvokeOptions): Output<GetClbTargetGroupsResult>
    def get_clb_target_groups(id: Optional[str] = None,
                              result_output_file: Optional[str] = None,
                              target_group_id: Optional[str] = None,
                              target_group_name: Optional[str] = None,
                              vpc_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetClbTargetGroupsResult
    def get_clb_target_groups_output(id: Optional[pulumi.Input[str]] = None,
                              result_output_file: Optional[pulumi.Input[str]] = None,
                              target_group_id: Optional[pulumi.Input[str]] = None,
                              target_group_name: Optional[pulumi.Input[str]] = None,
                              vpc_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetClbTargetGroupsResult]
    func GetClbTargetGroups(ctx *Context, args *GetClbTargetGroupsArgs, opts ...InvokeOption) (*GetClbTargetGroupsResult, error)
    func GetClbTargetGroupsOutput(ctx *Context, args *GetClbTargetGroupsOutputArgs, opts ...InvokeOption) GetClbTargetGroupsResultOutput

    > Note: This function is named GetClbTargetGroups in the Go SDK.

    public static class GetClbTargetGroups 
    {
        public static Task<GetClbTargetGroupsResult> InvokeAsync(GetClbTargetGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetClbTargetGroupsResult> Invoke(GetClbTargetGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClbTargetGroupsResult> getClbTargetGroups(GetClbTargetGroupsArgs args, InvokeOptions options)
    public static Output<GetClbTargetGroupsResult> getClbTargetGroups(GetClbTargetGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getClbTargetGroups:getClbTargetGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    TargetGroupId string
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    TargetGroupName string
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    VpcId string
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    Id string
    ResultOutputFile string
    Used to save results.
    TargetGroupId string
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    TargetGroupName string
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    VpcId string
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    id String
    resultOutputFile String
    Used to save results.
    targetGroupId String
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    targetGroupName String
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    vpcId String
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    id string
    resultOutputFile string
    Used to save results.
    targetGroupId string
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    targetGroupName string
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    vpcId string
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    id str
    result_output_file str
    Used to save results.
    target_group_id str
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    target_group_name str
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    vpc_id str
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    id String
    resultOutputFile String
    Used to save results.
    targetGroupId String
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    targetGroupName String
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    vpcId String
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.

    getClbTargetGroups Result

    The following output properties are available:

    Id string
    Lists List<GetClbTargetGroupsList>
    Target group info list.
    ResultOutputFile string
    TargetGroupId string
    ID of Target group.
    TargetGroupName string
    Target group VPC ID.
    VpcId string
    Name of target group.
    Id string
    Lists []GetClbTargetGroupsList
    Target group info list.
    ResultOutputFile string
    TargetGroupId string
    ID of Target group.
    TargetGroupName string
    Target group VPC ID.
    VpcId string
    Name of target group.
    id String
    lists List<GetClbTargetGroupsList>
    Target group info list.
    resultOutputFile String
    targetGroupId String
    ID of Target group.
    targetGroupName String
    Target group VPC ID.
    vpcId String
    Name of target group.
    id string
    lists GetClbTargetGroupsList[]
    Target group info list.
    resultOutputFile string
    targetGroupId string
    ID of Target group.
    targetGroupName string
    Target group VPC ID.
    vpcId string
    Name of target group.
    id str
    lists Sequence[GetClbTargetGroupsList]
    Target group info list.
    result_output_file str
    target_group_id str
    ID of Target group.
    target_group_name str
    Target group VPC ID.
    vpc_id str
    Name of target group.
    id String
    lists List<Property Map>
    Target group info list.
    resultOutputFile String
    targetGroupId String
    ID of Target group.
    targetGroupName String
    Target group VPC ID.
    vpcId String
    Name of target group.

    Supporting Types

    GetClbTargetGroupsList

    AssociatedRuleLists List<GetClbTargetGroupsListAssociatedRuleList>
    List of associated rules.
    CreateTime string
    Creation time of the target group.
    Port double
    Port of target group.
    TargetGroupId string
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    TargetGroupInstanceLists List<GetClbTargetGroupsListTargetGroupInstanceList>
    List of backend servers bound to the target group.
    TargetGroupName string
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    UpdateTime string
    Modification time of the target group.
    VpcId string
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    AssociatedRuleLists []GetClbTargetGroupsListAssociatedRuleList
    List of associated rules.
    CreateTime string
    Creation time of the target group.
    Port float64
    Port of target group.
    TargetGroupId string
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    TargetGroupInstanceLists []GetClbTargetGroupsListTargetGroupInstanceList
    List of backend servers bound to the target group.
    TargetGroupName string
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    UpdateTime string
    Modification time of the target group.
    VpcId string
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    associatedRuleLists List<GetClbTargetGroupsListAssociatedRuleList>
    List of associated rules.
    createTime String
    Creation time of the target group.
    port Double
    Port of target group.
    targetGroupId String
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    targetGroupInstanceLists List<GetClbTargetGroupsListTargetGroupInstanceList>
    List of backend servers bound to the target group.
    targetGroupName String
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    updateTime String
    Modification time of the target group.
    vpcId String
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    associatedRuleLists GetClbTargetGroupsListAssociatedRuleList[]
    List of associated rules.
    createTime string
    Creation time of the target group.
    port number
    Port of target group.
    targetGroupId string
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    targetGroupInstanceLists GetClbTargetGroupsListTargetGroupInstanceList[]
    List of backend servers bound to the target group.
    targetGroupName string
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    updateTime string
    Modification time of the target group.
    vpcId string
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    associated_rule_lists Sequence[GetClbTargetGroupsListAssociatedRuleList]
    List of associated rules.
    create_time str
    Creation time of the target group.
    port float
    Port of target group.
    target_group_id str
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    target_group_instance_lists Sequence[GetClbTargetGroupsListTargetGroupInstanceList]
    List of backend servers bound to the target group.
    target_group_name str
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    update_time str
    Modification time of the target group.
    vpc_id str
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.
    associatedRuleLists List<Property Map>
    List of associated rules.
    createTime String
    Creation time of the target group.
    port Number
    Port of target group.
    targetGroupId String
    ID of Target group. Mutually exclusive with vpc_id and target_group_name. target_group_id is preferred.
    targetGroupInstanceLists List<Property Map>
    List of backend servers bound to the target group.
    targetGroupName String
    Name of target group. Mutually exclusive with target_group_id. target_group_id is preferred.
    updateTime String
    Modification time of the target group.
    vpcId String
    Target group VPC ID. Mutually exclusive with target_group_id. target_group_id is preferred.

    GetClbTargetGroupsListAssociatedRuleList

    Domain string
    Forwarding rule domain.
    ListenerId string
    Listener ID.
    ListenerName string
    Listener name.
    ListenerPort double
    Listener port.
    LoadBalancerId string
    Load balance ID.
    LoadBalancerName string
    Load balance name.
    LocationId string
    Forwarding rule ID.
    Protocol string
    Listener protocol type.
    Url string
    Forwarding rule URL.
    Domain string
    Forwarding rule domain.
    ListenerId string
    Listener ID.
    ListenerName string
    Listener name.
    ListenerPort float64
    Listener port.
    LoadBalancerId string
    Load balance ID.
    LoadBalancerName string
    Load balance name.
    LocationId string
    Forwarding rule ID.
    Protocol string
    Listener protocol type.
    Url string
    Forwarding rule URL.
    domain String
    Forwarding rule domain.
    listenerId String
    Listener ID.
    listenerName String
    Listener name.
    listenerPort Double
    Listener port.
    loadBalancerId String
    Load balance ID.
    loadBalancerName String
    Load balance name.
    locationId String
    Forwarding rule ID.
    protocol String
    Listener protocol type.
    url String
    Forwarding rule URL.
    domain string
    Forwarding rule domain.
    listenerId string
    Listener ID.
    listenerName string
    Listener name.
    listenerPort number
    Listener port.
    loadBalancerId string
    Load balance ID.
    loadBalancerName string
    Load balance name.
    locationId string
    Forwarding rule ID.
    protocol string
    Listener protocol type.
    url string
    Forwarding rule URL.
    domain str
    Forwarding rule domain.
    listener_id str
    Listener ID.
    listener_name str
    Listener name.
    listener_port float
    Listener port.
    load_balancer_id str
    Load balance ID.
    load_balancer_name str
    Load balance name.
    location_id str
    Forwarding rule ID.
    protocol str
    Listener protocol type.
    url str
    Forwarding rule URL.
    domain String
    Forwarding rule domain.
    listenerId String
    Listener ID.
    listenerName String
    Listener name.
    listenerPort Number
    Listener port.
    loadBalancerId String
    Load balance ID.
    loadBalancerName String
    Load balance name.
    locationId String
    Forwarding rule ID.
    protocol String
    Listener protocol type.
    url String
    Forwarding rule URL.

    GetClbTargetGroupsListTargetGroupInstanceList

    EniId string
    ID of Elastic Network Interface.
    InstanceId string
    ID of backend service.
    InstanceName string
    The instance name of the backend service.
    PrivateIpAddresses List<string>
    Intranet IP list of back-end services.
    PublicIpAddresses List<string>
    List of external network IP of back-end services.
    RegisteredTime string
    The time the backend service was bound.
    ServerPort double
    Port of backend service.
    ServerType string
    Type of backend service.
    Weight double
    Forwarding weight of back-end services.
    EniId string
    ID of Elastic Network Interface.
    InstanceId string
    ID of backend service.
    InstanceName string
    The instance name of the backend service.
    PrivateIpAddresses []string
    Intranet IP list of back-end services.
    PublicIpAddresses []string
    List of external network IP of back-end services.
    RegisteredTime string
    The time the backend service was bound.
    ServerPort float64
    Port of backend service.
    ServerType string
    Type of backend service.
    Weight float64
    Forwarding weight of back-end services.
    eniId String
    ID of Elastic Network Interface.
    instanceId String
    ID of backend service.
    instanceName String
    The instance name of the backend service.
    privateIpAddresses List<String>
    Intranet IP list of back-end services.
    publicIpAddresses List<String>
    List of external network IP of back-end services.
    registeredTime String
    The time the backend service was bound.
    serverPort Double
    Port of backend service.
    serverType String
    Type of backend service.
    weight Double
    Forwarding weight of back-end services.
    eniId string
    ID of Elastic Network Interface.
    instanceId string
    ID of backend service.
    instanceName string
    The instance name of the backend service.
    privateIpAddresses string[]
    Intranet IP list of back-end services.
    publicIpAddresses string[]
    List of external network IP of back-end services.
    registeredTime string
    The time the backend service was bound.
    serverPort number
    Port of backend service.
    serverType string
    Type of backend service.
    weight number
    Forwarding weight of back-end services.
    eni_id str
    ID of Elastic Network Interface.
    instance_id str
    ID of backend service.
    instance_name str
    The instance name of the backend service.
    private_ip_addresses Sequence[str]
    Intranet IP list of back-end services.
    public_ip_addresses Sequence[str]
    List of external network IP of back-end services.
    registered_time str
    The time the backend service was bound.
    server_port float
    Port of backend service.
    server_type str
    Type of backend service.
    weight float
    Forwarding weight of back-end services.
    eniId String
    ID of Elastic Network Interface.
    instanceId String
    ID of backend service.
    instanceName String
    The instance name of the backend service.
    privateIpAddresses List<String>
    Intranet IP list of back-end services.
    publicIpAddresses List<String>
    List of external network IP of back-end services.
    registeredTime String
    The time the backend service was bound.
    serverPort Number
    Port of backend service.
    serverType String
    Type of backend service.
    weight Number
    Forwarding weight of back-end services.

    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