tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClbIdleInstances
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of clb idle_loadbalancers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const idleInstance = tencentcloud.getClbIdleInstances({
loadBalancerRegion: "ap-guangzhou",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
idle_instance = tencentcloud.get_clb_idle_instances(load_balancer_region="ap-guangzhou")
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.GetClbIdleInstances(ctx, &tencentcloud.GetClbIdleInstancesArgs{
LoadBalancerRegion: pulumi.StringRef("ap-guangzhou"),
}, 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 idleInstance = Tencentcloud.GetClbIdleInstances.Invoke(new()
{
LoadBalancerRegion = "ap-guangzhou",
});
});
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.GetClbIdleInstancesArgs;
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 idleInstance = TencentcloudFunctions.getClbIdleInstances(GetClbIdleInstancesArgs.builder()
.loadBalancerRegion("ap-guangzhou")
.build());
}
}
variables:
idleInstance:
fn::invoke:
function: tencentcloud:getClbIdleInstances
arguments:
loadBalancerRegion: ap-guangzhou
Using getClbIdleInstances
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 getClbIdleInstances(args: GetClbIdleInstancesArgs, opts?: InvokeOptions): Promise<GetClbIdleInstancesResult>
function getClbIdleInstancesOutput(args: GetClbIdleInstancesOutputArgs, opts?: InvokeOptions): Output<GetClbIdleInstancesResult>
def get_clb_idle_instances(id: Optional[str] = None,
load_balancer_region: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClbIdleInstancesResult
def get_clb_idle_instances_output(id: Optional[pulumi.Input[str]] = None,
load_balancer_region: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClbIdleInstancesResult]
func GetClbIdleInstances(ctx *Context, args *GetClbIdleInstancesArgs, opts ...InvokeOption) (*GetClbIdleInstancesResult, error)
func GetClbIdleInstancesOutput(ctx *Context, args *GetClbIdleInstancesOutputArgs, opts ...InvokeOption) GetClbIdleInstancesResultOutput
> Note: This function is named GetClbIdleInstances
in the Go SDK.
public static class GetClbIdleInstances
{
public static Task<GetClbIdleInstancesResult> InvokeAsync(GetClbIdleInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetClbIdleInstancesResult> Invoke(GetClbIdleInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClbIdleInstancesResult> getClbIdleInstances(GetClbIdleInstancesArgs args, InvokeOptions options)
public static Output<GetClbIdleInstancesResult> getClbIdleInstances(GetClbIdleInstancesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClbIdleInstances:getClbIdleInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Load
Balancer stringRegion - CLB instance region.
- Result
Output stringFile - Used to save results.
- Id string
- Load
Balancer stringRegion - CLB instance region.
- Result
Output stringFile - Used to save results.
- id String
- load
Balancer StringRegion - CLB instance region.
- result
Output StringFile - Used to save results.
- id string
- load
Balancer stringRegion - CLB instance region.
- result
Output stringFile - Used to save results.
- id str
- load_
balancer_ strregion - CLB instance region.
- result_
output_ strfile - Used to save results.
- id String
- load
Balancer StringRegion - CLB instance region.
- result
Output StringFile - Used to save results.
getClbIdleInstances Result
The following output properties are available:
- Id string
- Idle
Load List<GetBalancers Clb Idle Instances Idle Load Balancer> - List of idle CLBs. Note: This field may return null, indicating that no valid values can be obtained.
- Load
Balancer stringRegion - Result
Output stringFile
- Id string
- Idle
Load []GetBalancers Clb Idle Instances Idle Load Balancer - List of idle CLBs. Note: This field may return null, indicating that no valid values can be obtained.
- Load
Balancer stringRegion - Result
Output stringFile
- id String
- idle
Load List<GetBalancers Clb Idle Instances Idle Load Balancer> - List of idle CLBs. Note: This field may return null, indicating that no valid values can be obtained.
- load
Balancer StringRegion - result
Output StringFile
- id string
- idle
Load GetBalancers Clb Idle Instances Idle Load Balancer[] - List of idle CLBs. Note: This field may return null, indicating that no valid values can be obtained.
- load
Balancer stringRegion - result
Output stringFile
- id str
- idle_
load_ Sequence[Getbalancers Clb Idle Instances Idle Load Balancer] - List of idle CLBs. Note: This field may return null, indicating that no valid values can be obtained.
- load_
balancer_ strregion - result_
output_ strfile
- id String
- idle
Load List<Property Map>Balancers - List of idle CLBs. Note: This field may return null, indicating that no valid values can be obtained.
- load
Balancer StringRegion - result
Output StringFile
Supporting Types
GetClbIdleInstancesIdleLoadBalancer
- Domain string
- The load balancing hostname.Note: This field may return null, indicating that no valid values can be obtained.
- Forward double
- CLB type. Value range: 1 (CLB); 0 (classic CLB).
- Idle
Reason string - The reason why the load balancer is considered idle. NO_RULES: No rules configured. NO_RS: The rules are not associated with servers.
- Load
Balancer stringId - CLB instance ID.
- Load
Balancer stringName - CLB instance name.
- Region string
- CLB instance region.
- Status double
- CLB instance status, including:0: Creating; 1: Running.
- Vip string
- CLB instance VIP.
- Domain string
- The load balancing hostname.Note: This field may return null, indicating that no valid values can be obtained.
- Forward float64
- CLB type. Value range: 1 (CLB); 0 (classic CLB).
- Idle
Reason string - The reason why the load balancer is considered idle. NO_RULES: No rules configured. NO_RS: The rules are not associated with servers.
- Load
Balancer stringId - CLB instance ID.
- Load
Balancer stringName - CLB instance name.
- Region string
- CLB instance region.
- Status float64
- CLB instance status, including:0: Creating; 1: Running.
- Vip string
- CLB instance VIP.
- domain String
- The load balancing hostname.Note: This field may return null, indicating that no valid values can be obtained.
- forward Double
- CLB type. Value range: 1 (CLB); 0 (classic CLB).
- idle
Reason String - The reason why the load balancer is considered idle. NO_RULES: No rules configured. NO_RS: The rules are not associated with servers.
- load
Balancer StringId - CLB instance ID.
- load
Balancer StringName - CLB instance name.
- region String
- CLB instance region.
- status Double
- CLB instance status, including:0: Creating; 1: Running.
- vip String
- CLB instance VIP.
- domain string
- The load balancing hostname.Note: This field may return null, indicating that no valid values can be obtained.
- forward number
- CLB type. Value range: 1 (CLB); 0 (classic CLB).
- idle
Reason string - The reason why the load balancer is considered idle. NO_RULES: No rules configured. NO_RS: The rules are not associated with servers.
- load
Balancer stringId - CLB instance ID.
- load
Balancer stringName - CLB instance name.
- region string
- CLB instance region.
- status number
- CLB instance status, including:0: Creating; 1: Running.
- vip string
- CLB instance VIP.
- domain str
- The load balancing hostname.Note: This field may return null, indicating that no valid values can be obtained.
- forward float
- CLB type. Value range: 1 (CLB); 0 (classic CLB).
- idle_
reason str - The reason why the load balancer is considered idle. NO_RULES: No rules configured. NO_RS: The rules are not associated with servers.
- load_
balancer_ strid - CLB instance ID.
- load_
balancer_ strname - CLB instance name.
- region str
- CLB instance region.
- status float
- CLB instance status, including:0: Creating; 1: Running.
- vip str
- CLB instance VIP.
- domain String
- The load balancing hostname.Note: This field may return null, indicating that no valid values can be obtained.
- forward Number
- CLB type. Value range: 1 (CLB); 0 (classic CLB).
- idle
Reason String - The reason why the load balancer is considered idle. NO_RULES: No rules configured. NO_RS: The rules are not associated with servers.
- load
Balancer StringId - CLB instance ID.
- load
Balancer StringName - CLB instance name.
- region String
- CLB instance region.
- status Number
- CLB instance status, including:0: Creating; 1: Running.
- vip String
- CLB instance VIP.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack