tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getClbTargetHealth
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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 dictionaryThe following arguments are supported:
- LoadBalancer List<string>Ids 
- List of IDs of CLB instances to be queried.
- Id string
- ResultOutput stringFile 
- Used to save results.
- LoadBalancer []stringIds 
- List of IDs of CLB instances to be queried.
- Id string
- ResultOutput stringFile 
- Used to save results.
- loadBalancer List<String>Ids 
- List of IDs of CLB instances to be queried.
- id String
- resultOutput StringFile 
- Used to save results.
- loadBalancer string[]Ids 
- List of IDs of CLB instances to be queried.
- id string
- resultOutput stringFile 
- Used to save results.
- load_balancer_ Sequence[str]ids 
- List of IDs of CLB instances to be queried.
- id str
- result_output_ strfile 
- Used to save results.
- loadBalancer List<String>Ids 
- List of IDs of CLB instances to be queried.
- id String
- resultOutput StringFile 
- Used to save results.
getClbTargetHealth Result
The following output properties are available:
- Id string
- LoadBalancer List<string>Ids 
- LoadBalancers List<GetClb Target Health Load Balancer> 
- CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- ResultOutput stringFile 
- Id string
- LoadBalancer []stringIds 
- LoadBalancers []GetClb Target Health Load Balancer 
- CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- ResultOutput stringFile 
- id String
- loadBalancer List<String>Ids 
- loadBalancers List<GetClb Target Health Load Balancer> 
- CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- resultOutput StringFile 
- id string
- loadBalancer string[]Ids 
- loadBalancers GetClb Target Health Load Balancer[] 
- CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- resultOutput stringFile 
- id str
- load_balancer_ Sequence[str]ids 
- load_balancers Sequence[GetClb Target Health Load Balancer] 
- CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- result_output_ strfile 
- id String
- loadBalancer List<String>Ids 
- loadBalancers List<Property Map>
- CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- resultOutput StringFile 
Supporting Types
GetClbTargetHealthLoadBalancer     
- Listeners
List<GetClb Target Health Load Balancer Listener> 
- List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- LoadBalancer stringId 
- CLB instance ID.
- LoadBalancer stringName 
- CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
- Listeners
[]GetClb Target Health Load Balancer Listener 
- List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- LoadBalancer stringId 
- CLB instance ID.
- LoadBalancer stringName 
- CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
- listeners
List<GetClb Target Health Load Balancer Listener> 
- List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- loadBalancer StringId 
- CLB instance ID.
- loadBalancer StringName 
- CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
- listeners
GetClb Target Health Load Balancer Listener[] 
- List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- loadBalancer stringId 
- CLB instance ID.
- loadBalancer stringName 
- CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
- listeners
Sequence[GetClb Target Health Load Balancer Listener] 
- List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- load_balancer_ strid 
- CLB instance ID.
- load_balancer_ strname 
- 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.
- loadBalancer StringId 
- CLB instance ID.
- loadBalancer StringName 
- 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<GetClb Target Health Load Balancer Listener Rule> 
- 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
[]GetClb Target Health Load Balancer Listener Rule 
- 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<GetClb Target Health Load Balancer Listener Rule> 
- 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
GetClb Target Health Load Balancer Listener Rule[] 
- 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[GetClb Target Health Load Balancer Listener Rule] 
- 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<GetClb Target Health Load Balancer Listener Rule Target> 
- 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
[]GetClb Target Health Load Balancer Listener Rule Target 
- 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<GetClb Target Health Load Balancer Listener Rule Target> 
- 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
GetClb Target Health Load Balancer Listener Rule Target[] 
- 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[GetClb Target Health Load Balancer Listener Rule Target] 
- 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.
- HealthStatus stringDetail 
- 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.
- HealthStatus stringDetail 
- 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.
- healthStatus StringDetail 
- 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.
- healthStatus stringDetail 
- 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_ strdetail 
- 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.
- healthStatus StringDetail 
- 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 tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack