1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getClbTargetHealth
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.getClbTargetHealth

Start a Neo task
Explain and create a tencentcloud.getClbTargetHealth resource
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

    Use this data source to query detailed information of clb target_health

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const targetHealth = tencentcloud.getClbTargetHealth({
        loadBalancerIds: ["lb-5dnrkgry"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    target_health = tencentcloud.get_clb_target_health(load_balancer_ids=["lb-5dnrkgry"])
    
    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.GetClbTargetHealth(ctx, &tencentcloud.GetClbTargetHealthArgs{
    			LoadBalancerIds: []string{
    				"lb-5dnrkgry",
    			},
    		}, 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 targetHealth = Tencentcloud.GetClbTargetHealth.Invoke(new()
        {
            LoadBalancerIds = new[]
            {
                "lb-5dnrkgry",
            },
        });
    
    });
    
    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.GetClbTargetHealthArgs;
    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 targetHealth = TencentcloudFunctions.getClbTargetHealth(GetClbTargetHealthArgs.builder()
                .loadBalancerIds("lb-5dnrkgry")
                .build());
    
        }
    }
    
    variables:
      targetHealth:
        fn::invoke:
          function: tencentcloud:getClbTargetHealth
          arguments:
            loadBalancerIds:
              - lb-5dnrkgry
    

    Using getClbTargetHealth

    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 getClbTargetHealth(args: GetClbTargetHealthArgs, opts?: InvokeOptions): Promise<GetClbTargetHealthResult>
    function getClbTargetHealthOutput(args: GetClbTargetHealthOutputArgs, opts?: InvokeOptions): Output<GetClbTargetHealthResult>
    def get_clb_target_health(id: Optional[str] = None,
                              load_balancer_ids: Optional[Sequence[str]] = None,
                              result_output_file: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetClbTargetHealthResult
    def get_clb_target_health_output(id: Optional[pulumi.Input[str]] = None,
                              load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              result_output_file: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetClbTargetHealthResult]
    func GetClbTargetHealth(ctx *Context, args *GetClbTargetHealthArgs, opts ...InvokeOption) (*GetClbTargetHealthResult, error)
    func GetClbTargetHealthOutput(ctx *Context, args *GetClbTargetHealthOutputArgs, opts ...InvokeOption) GetClbTargetHealthResultOutput

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

    public static class GetClbTargetHealth 
    {
        public static Task<GetClbTargetHealthResult> InvokeAsync(GetClbTargetHealthArgs args, InvokeOptions? opts = null)
        public static Output<GetClbTargetHealthResult> Invoke(GetClbTargetHealthInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClbTargetHealthResult> getClbTargetHealth(GetClbTargetHealthArgs args, InvokeOptions options)
    public static Output<GetClbTargetHealthResult> getClbTargetHealth(GetClbTargetHealthArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getClbTargetHealth:getClbTargetHealth
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LoadBalancerIds List<string>
    List of IDs of CLB instances to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    LoadBalancerIds []string
    List of IDs of CLB instances to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    loadBalancerIds List<String>
    List of IDs of CLB instances to be queried.
    id String
    resultOutputFile String
    Used to save results.
    loadBalancerIds string[]
    List of IDs of CLB instances to be queried.
    id string
    resultOutputFile string
    Used to save results.
    load_balancer_ids Sequence[str]
    List of IDs of CLB instances to be queried.
    id str
    result_output_file str
    Used to save results.
    loadBalancerIds List<String>
    List of IDs of CLB instances to be queried.
    id String
    resultOutputFile String
    Used to save results.

    getClbTargetHealth Result

    The following output properties are available:

    Id string
    LoadBalancerIds List<string>
    LoadBalancers List<GetClbTargetHealthLoadBalancer>
    CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
    ResultOutputFile string
    Id string
    LoadBalancerIds []string
    LoadBalancers []GetClbTargetHealthLoadBalancer
    CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
    ResultOutputFile string
    id String
    loadBalancerIds List<String>
    loadBalancers List<GetClbTargetHealthLoadBalancer>
    CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
    resultOutputFile String
    id string
    loadBalancerIds string[]
    loadBalancers GetClbTargetHealthLoadBalancer[]
    CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
    resultOutputFile string
    id str
    load_balancer_ids Sequence[str]
    load_balancers Sequence[GetClbTargetHealthLoadBalancer]
    CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
    result_output_file str
    id String
    loadBalancerIds List<String>
    loadBalancers List<Property Map>
    CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
    resultOutputFile String

    Supporting Types

    GetClbTargetHealthLoadBalancer

    Listeners List<GetClbTargetHealthLoadBalancerListener>
    List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
    LoadBalancerId string
    CLB instance ID.
    LoadBalancerName string
    CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
    Listeners []GetClbTargetHealthLoadBalancerListener
    List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
    LoadBalancerId string
    CLB instance ID.
    LoadBalancerName string
    CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
    listeners List<GetClbTargetHealthLoadBalancerListener>
    List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
    loadBalancerId String
    CLB instance ID.
    loadBalancerName String
    CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
    listeners GetClbTargetHealthLoadBalancerListener[]
    List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
    loadBalancerId string
    CLB instance ID.
    loadBalancerName string
    CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
    listeners Sequence[GetClbTargetHealthLoadBalancerListener]
    List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
    load_balancer_id str
    CLB instance ID.
    load_balancer_name str
    CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
    listeners List<Property Map>
    List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
    loadBalancerId String
    CLB instance ID.
    loadBalancerName String
    CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.

    GetClbTargetHealthLoadBalancerListener

    ListenerId string
    Listener ID.
    ListenerName string
    Listener name. Note: This field may return null, indicating that no valid values can be obtained.
    Port double
    Port bound to the target.
    Protocol string
    Listener protocol.
    Rules List<GetClbTargetHealthLoadBalancerListenerRule>
    List of forwarding rules of the listener. Note: This field may return null, indicating that no valid values can be obtained.
    ListenerId string
    Listener ID.
    ListenerName string
    Listener name. Note: This field may return null, indicating that no valid values can be obtained.
    Port float64
    Port bound to the target.
    Protocol string
    Listener protocol.
    Rules []GetClbTargetHealthLoadBalancerListenerRule
    List of forwarding rules of the listener. Note: This field may return null, indicating that no valid values can be obtained.
    listenerId String
    Listener ID.
    listenerName String
    Listener name. Note: This field may return null, indicating that no valid values can be obtained.
    port Double
    Port bound to the target.
    protocol String
    Listener protocol.
    rules List<GetClbTargetHealthLoadBalancerListenerRule>
    List of forwarding rules of the listener. Note: This field may return null, indicating that no valid values can be obtained.
    listenerId string
    Listener ID.
    listenerName string
    Listener name. Note: This field may return null, indicating that no valid values can be obtained.
    port number
    Port bound to the target.
    protocol string
    Listener protocol.
    rules GetClbTargetHealthLoadBalancerListenerRule[]
    List of forwarding rules of the listener. Note: This field may return null, indicating that no valid values can be obtained.
    listener_id str
    Listener ID.
    listener_name str
    Listener name. Note: This field may return null, indicating that no valid values can be obtained.
    port float
    Port bound to the target.
    protocol str
    Listener protocol.
    rules Sequence[GetClbTargetHealthLoadBalancerListenerRule]
    List of forwarding rules of the listener. Note: This field may return null, indicating that no valid values can be obtained.
    listenerId String
    Listener ID.
    listenerName String
    Listener name. Note: This field may return null, indicating that no valid values can be obtained.
    port Number
    Port bound to the target.
    protocol String
    Listener protocol.
    rules List<Property Map>
    List of forwarding rules of the listener. Note: This field may return null, indicating that no valid values can be obtained.

    GetClbTargetHealthLoadBalancerListenerRule

    Domain string
    Domain name of the forwarding rule. Note: This field may return null, indicating that no valid values can be obtained.
    LocationId string
    Forwarding rule ID.
    Targets List<GetClbTargetHealthLoadBalancerListenerRuleTarget>
    Health status of the real server bound to this rule. Note: this field may return null, indicating that no valid values can be obtained.
    Url string
    Forwarding rule Url. Note: This field may return null, indicating that no valid values can be obtained.
    Domain string
    Domain name of the forwarding rule. Note: This field may return null, indicating that no valid values can be obtained.
    LocationId string
    Forwarding rule ID.
    Targets []GetClbTargetHealthLoadBalancerListenerRuleTarget
    Health status of the real server bound to this rule. Note: this field may return null, indicating that no valid values can be obtained.
    Url string
    Forwarding rule Url. Note: This field may return null, indicating that no valid values can be obtained.
    domain String
    Domain name of the forwarding rule. Note: This field may return null, indicating that no valid values can be obtained.
    locationId String
    Forwarding rule ID.
    targets List<GetClbTargetHealthLoadBalancerListenerRuleTarget>
    Health status of the real server bound to this rule. Note: this field may return null, indicating that no valid values can be obtained.
    url String
    Forwarding rule Url. Note: This field may return null, indicating that no valid values can be obtained.
    domain string
    Domain name of the forwarding rule. Note: This field may return null, indicating that no valid values can be obtained.
    locationId string
    Forwarding rule ID.
    targets GetClbTargetHealthLoadBalancerListenerRuleTarget[]
    Health status of the real server bound to this rule. Note: this field may return null, indicating that no valid values can be obtained.
    url string
    Forwarding rule Url. Note: This field may return null, indicating that no valid values can be obtained.
    domain str
    Domain name of the forwarding rule. Note: This field may return null, indicating that no valid values can be obtained.
    location_id str
    Forwarding rule ID.
    targets Sequence[GetClbTargetHealthLoadBalancerListenerRuleTarget]
    Health status of the real server bound to this rule. Note: this field may return null, indicating that no valid values can be obtained.
    url str
    Forwarding rule Url. Note: This field may return null, indicating that no valid values can be obtained.
    domain String
    Domain name of the forwarding rule. Note: This field may return null, indicating that no valid values can be obtained.
    locationId String
    Forwarding rule ID.
    targets List<Property Map>
    Health status of the real server bound to this rule. Note: this field may return null, indicating that no valid values can be obtained.
    url String
    Forwarding rule Url. Note: This field may return null, indicating that no valid values can be obtained.

    GetClbTargetHealthLoadBalancerListenerRuleTarget

    HealthStatus bool
    Current health status. true: healthy; false: unhealthy.
    HealthStatusDetail string
    Detailed information about the current health status. Alive: healthy; Dead: exceptional; Unknown: check not started/checking/unknown status.
    Ip string
    Private IP of the target.
    Port double
    Port bound to the target.
    TargetId string
    Instance ID of the target, such as ins-12345678.
    HealthStatus bool
    Current health status. true: healthy; false: unhealthy.
    HealthStatusDetail string
    Detailed information about the current health status. Alive: healthy; Dead: exceptional; Unknown: check not started/checking/unknown status.
    Ip string
    Private IP of the target.
    Port float64
    Port bound to the target.
    TargetId string
    Instance ID of the target, such as ins-12345678.
    healthStatus Boolean
    Current health status. true: healthy; false: unhealthy.
    healthStatusDetail String
    Detailed information about the current health status. Alive: healthy; Dead: exceptional; Unknown: check not started/checking/unknown status.
    ip String
    Private IP of the target.
    port Double
    Port bound to the target.
    targetId String
    Instance ID of the target, such as ins-12345678.
    healthStatus boolean
    Current health status. true: healthy; false: unhealthy.
    healthStatusDetail string
    Detailed information about the current health status. Alive: healthy; Dead: exceptional; Unknown: check not started/checking/unknown status.
    ip string
    Private IP of the target.
    port number
    Port bound to the target.
    targetId string
    Instance ID of the target, such as ins-12345678.
    health_status bool
    Current health status. true: healthy; false: unhealthy.
    health_status_detail str
    Detailed information about the current health status. Alive: healthy; Dead: exceptional; Unknown: check not started/checking/unknown status.
    ip str
    Private IP of the target.
    port float
    Port bound to the target.
    target_id str
    Instance ID of the target, such as ins-12345678.
    healthStatus Boolean
    Current health status. true: healthy; false: unhealthy.
    healthStatusDetail String
    Detailed information about the current health status. Alive: healthy; Dead: exceptional; Unknown: check not started/checking/unknown status.
    ip String
    Private IP of the target.
    port Number
    Port bound to the target.
    targetId String
    Instance ID of the target, such as ins-12345678.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate