tencentcloud 1.81.188 published on Monday, Apr 28, 2025 by tencentcloudstack
tencentcloud.getClbTargetHealth
Explore with Pulumi AI
tencentcloud 1.81.188 published on Monday, Apr 28, 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:
- Load
Balancer List<string>Ids - List of IDs of CLB instances to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Load
Balancer []stringIds - List of IDs of CLB instances to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- load
Balancer List<String>Ids - List of IDs of CLB instances to be queried.
- id String
- result
Output StringFile - Used to save results.
- load
Balancer string[]Ids - List of IDs of CLB instances to be queried.
- id string
- result
Output 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.
- load
Balancer List<String>Ids - List of IDs of CLB instances to be queried.
- id String
- result
Output StringFile - Used to save results.
getClbTargetHealth Result
The following output properties are available:
- Id string
- Load
Balancer List<string>Ids - Load
Balancers List<GetClb Target Health Load Balancer> - CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- Result
Output stringFile
- Id string
- Load
Balancer []stringIds - Load
Balancers []GetClb Target Health Load Balancer - CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- Result
Output stringFile
- id String
- load
Balancer List<String>Ids - load
Balancers List<GetClb Target Health Load Balancer> - CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- result
Output StringFile
- id string
- load
Balancer string[]Ids - load
Balancers GetClb Target Health Load Balancer[] - CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- result
Output 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
- load
Balancer List<String>Ids - load
Balancers List<Property Map> - CLB instance list. Note: This field may return null, indicating that no valid values can be obtained.
- result
Output StringFile
Supporting Types
GetClbTargetHealthLoadBalancer
- Listeners
List<Get
Clb Target Health Load Balancer Listener> - List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- Load
Balancer stringId - CLB instance ID.
- Load
Balancer stringName - CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
- Listeners
[]Get
Clb Target Health Load Balancer Listener - List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- Load
Balancer stringId - CLB instance ID.
- Load
Balancer stringName - CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
- listeners
List<Get
Clb Target Health Load Balancer Listener> - List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- load
Balancer StringId - CLB instance ID.
- load
Balancer StringName - CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
- listeners
Get
Clb Target Health Load Balancer Listener[] - List of listeners. Note: This field may return null, indicating that no valid values can be obtained.
- load
Balancer stringId - CLB instance ID.
- load
Balancer stringName - CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
- listeners
Sequence[Get
Clb 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.
- load
Balancer StringId - CLB instance ID.
- load
Balancer StringName - CLB instance name. Note: This field may return null, indicating that no valid values can be obtained.
GetClbTargetHealthLoadBalancerListener
- Listener
Id string - Listener ID.
- Listener
Name 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<Get
Clb 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 string - Listener ID.
- Listener
Name 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
[]Get
Clb 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 String - Listener ID.
- listener
Name 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<Get
Clb 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 string - Listener ID.
- listener
Name 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
Get
Clb 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[Get
Clb 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 String - Listener ID.
- listener
Name 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.
- Location
Id string - Forwarding rule ID.
- Targets
List<Get
Clb 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.
- Location
Id string - Forwarding rule ID.
- Targets
[]Get
Clb 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.
- location
Id String - Forwarding rule ID.
- targets
List<Get
Clb 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.
- location
Id string - Forwarding rule ID.
- targets
Get
Clb 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[Get
Clb 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.
- location
Id 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
- Health
Status bool - Current health status. true: healthy; false: unhealthy.
- Health
Status 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.
- Target
Id string - Instance ID of the target, such as ins-12345678.
- Health
Status bool - Current health status. true: healthy; false: unhealthy.
- Health
Status 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.
- Target
Id string - Instance ID of the target, such as ins-12345678.
- health
Status Boolean - Current health status. true: healthy; false: unhealthy.
- health
Status 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.
- target
Id String - Instance ID of the target, such as ins-12345678.
- health
Status boolean - Current health status. true: healthy; false: unhealthy.
- health
Status 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.
- target
Id 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.
- health
Status Boolean - Current health status. true: healthy; false: unhealthy.
- health
Status 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.
- target
Id 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 1.81.188 published on Monday, Apr 28, 2025 by tencentcloudstack