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

tencentcloud.getClbListenersByTargets

Explore with Pulumi AI

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

    Use this data source to query detailed information of clb listeners_by_targets

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const listenersByTargets = tencentcloud.getClbListenersByTargets({
        backends: [{
            privateIp: "106.52.160.211",
            vpcId: "vpc-4owdpnwr",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    listeners_by_targets = tencentcloud.get_clb_listeners_by_targets(backends=[{
        "private_ip": "106.52.160.211",
        "vpc_id": "vpc-4owdpnwr",
    }])
    
    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.GetClbListenersByTargets(ctx, &tencentcloud.GetClbListenersByTargetsArgs{
    			Backends: []tencentcloud.GetClbListenersByTargetsBackend{
    				{
    					PrivateIp: "106.52.160.211",
    					VpcId:     "vpc-4owdpnwr",
    				},
    			},
    		}, 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 listenersByTargets = Tencentcloud.GetClbListenersByTargets.Invoke(new()
        {
            Backends = new[]
            {
                new Tencentcloud.Inputs.GetClbListenersByTargetsBackendInputArgs
                {
                    PrivateIp = "106.52.160.211",
                    VpcId = "vpc-4owdpnwr",
                },
            },
        });
    
    });
    
    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.GetClbListenersByTargetsArgs;
    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 listenersByTargets = TencentcloudFunctions.getClbListenersByTargets(GetClbListenersByTargetsArgs.builder()
                .backends(GetClbListenersByTargetsBackendArgs.builder()
                    .privateIp("106.52.160.211")
                    .vpcId("vpc-4owdpnwr")
                    .build())
                .build());
    
        }
    }
    
    variables:
      listenersByTargets:
        fn::invoke:
          function: tencentcloud:getClbListenersByTargets
          arguments:
            backends:
              - privateIp: 106.52.160.211
                vpcId: vpc-4owdpnwr
    

    Using getClbListenersByTargets

    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 getClbListenersByTargets(args: GetClbListenersByTargetsArgs, opts?: InvokeOptions): Promise<GetClbListenersByTargetsResult>
    function getClbListenersByTargetsOutput(args: GetClbListenersByTargetsOutputArgs, opts?: InvokeOptions): Output<GetClbListenersByTargetsResult>
    def get_clb_listeners_by_targets(backends: Optional[Sequence[GetClbListenersByTargetsBackend]] = None,
                                     id: Optional[str] = None,
                                     result_output_file: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetClbListenersByTargetsResult
    def get_clb_listeners_by_targets_output(backends: Optional[pulumi.Input[Sequence[pulumi.Input[GetClbListenersByTargetsBackendArgs]]]] = None,
                                     id: Optional[pulumi.Input[str]] = None,
                                     result_output_file: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetClbListenersByTargetsResult]
    func GetClbListenersByTargets(ctx *Context, args *GetClbListenersByTargetsArgs, opts ...InvokeOption) (*GetClbListenersByTargetsResult, error)
    func GetClbListenersByTargetsOutput(ctx *Context, args *GetClbListenersByTargetsOutputArgs, opts ...InvokeOption) GetClbListenersByTargetsResultOutput

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

    public static class GetClbListenersByTargets 
    {
        public static Task<GetClbListenersByTargetsResult> InvokeAsync(GetClbListenersByTargetsArgs args, InvokeOptions? opts = null)
        public static Output<GetClbListenersByTargetsResult> Invoke(GetClbListenersByTargetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClbListenersByTargetsResult> getClbListenersByTargets(GetClbListenersByTargetsArgs args, InvokeOptions options)
    public static Output<GetClbListenersByTargetsResult> getClbListenersByTargets(GetClbListenersByTargetsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getClbListenersByTargets:getClbListenersByTargets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Backends List<GetClbListenersByTargetsBackend>
    List of private network IPs to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    Backends []GetClbListenersByTargetsBackend
    List of private network IPs to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    backends List<GetClbListenersByTargetsBackend>
    List of private network IPs to be queried.
    id String
    resultOutputFile String
    Used to save results.
    backends GetClbListenersByTargetsBackend[]
    List of private network IPs to be queried.
    id string
    resultOutputFile string
    Used to save results.
    backends Sequence[GetClbListenersByTargetsBackend]
    List of private network IPs to be queried.
    id str
    result_output_file str
    Used to save results.
    backends List<Property Map>
    List of private network IPs to be queried.
    id String
    resultOutputFile String
    Used to save results.

    getClbListenersByTargets Result

    The following output properties are available:

    Supporting Types

    GetClbListenersByTargetsBackend

    PrivateIp string
    Private network IP to be queried, which can be of the CVM or ENI.
    VpcId string
    VPC ID.
    PrivateIp string
    Private network IP to be queried, which can be of the CVM or ENI.
    VpcId string
    VPC ID.
    privateIp String
    Private network IP to be queried, which can be of the CVM or ENI.
    vpcId String
    VPC ID.
    privateIp string
    Private network IP to be queried, which can be of the CVM or ENI.
    vpcId string
    VPC ID.
    private_ip str
    Private network IP to be queried, which can be of the CVM or ENI.
    vpc_id str
    VPC ID.
    privateIp String
    Private network IP to be queried, which can be of the CVM or ENI.
    vpcId String
    VPC ID.

    GetClbListenersByTargetsLoadBalancer

    Listeners List<GetClbListenersByTargetsLoadBalancerListener>
    Listener rule.
    LoadBalancerId string
    String ID of the CLB instance.
    Region string
    CLB instance region.
    Vip string
    VIP of the CLB instance.
    Listeners []GetClbListenersByTargetsLoadBalancerListener
    Listener rule.
    LoadBalancerId string
    String ID of the CLB instance.
    Region string
    CLB instance region.
    Vip string
    VIP of the CLB instance.
    listeners List<GetClbListenersByTargetsLoadBalancerListener>
    Listener rule.
    loadBalancerId String
    String ID of the CLB instance.
    region String
    CLB instance region.
    vip String
    VIP of the CLB instance.
    listeners GetClbListenersByTargetsLoadBalancerListener[]
    Listener rule.
    loadBalancerId string
    String ID of the CLB instance.
    region string
    CLB instance region.
    vip string
    VIP of the CLB instance.
    listeners Sequence[GetClbListenersByTargetsLoadBalancerListener]
    Listener rule.
    load_balancer_id str
    String ID of the CLB instance.
    region str
    CLB instance region.
    vip str
    VIP of the CLB instance.
    listeners List<Property Map>
    Listener rule.
    loadBalancerId String
    String ID of the CLB instance.
    region String
    CLB instance region.
    vip String
    VIP of the CLB instance.

    GetClbListenersByTargetsLoadBalancerListener

    EndPort double
    End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
    ListenerId string
    Listener ID.
    Port double
    Port bound to the real server.
    Protocol string
    Listener protocol.
    Rules List<GetClbListenersByTargetsLoadBalancerListenerRule>
    Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
    Targets List<GetClbListenersByTargetsLoadBalancerListenerTarget>
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    EndPort float64
    End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
    ListenerId string
    Listener ID.
    Port float64
    Port bound to the real server.
    Protocol string
    Listener protocol.
    Rules []GetClbListenersByTargetsLoadBalancerListenerRule
    Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
    Targets []GetClbListenersByTargetsLoadBalancerListenerTarget
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    endPort Double
    End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
    listenerId String
    Listener ID.
    port Double
    Port bound to the real server.
    protocol String
    Listener protocol.
    rules List<GetClbListenersByTargetsLoadBalancerListenerRule>
    Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
    targets List<GetClbListenersByTargetsLoadBalancerListenerTarget>
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    endPort number
    End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
    listenerId string
    Listener ID.
    port number
    Port bound to the real server.
    protocol string
    Listener protocol.
    rules GetClbListenersByTargetsLoadBalancerListenerRule[]
    Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
    targets GetClbListenersByTargetsLoadBalancerListenerTarget[]
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    end_port float
    End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
    listener_id str
    Listener ID.
    port float
    Port bound to the real server.
    protocol str
    Listener protocol.
    rules Sequence[GetClbListenersByTargetsLoadBalancerListenerRule]
    Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
    targets Sequence[GetClbListenersByTargetsLoadBalancerListenerTarget]
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    endPort Number
    End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
    listenerId String
    Listener ID.
    port Number
    Port bound to the real server.
    protocol String
    Listener protocol.
    rules List<Property Map>
    Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
    targets List<Property Map>
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.

    GetClbListenersByTargetsLoadBalancerListenerRule

    Domain string
    Domain name.
    LocationId string
    Rule ID.
    Targets List<GetClbListenersByTargetsLoadBalancerListenerRuleTarget>
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    Url string
    url.
    Domain string
    Domain name.
    LocationId string
    Rule ID.
    Targets []GetClbListenersByTargetsLoadBalancerListenerRuleTarget
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    Url string
    url.
    domain String
    Domain name.
    locationId String
    Rule ID.
    targets List<GetClbListenersByTargetsLoadBalancerListenerRuleTarget>
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    url String
    url.
    domain string
    Domain name.
    locationId string
    Rule ID.
    targets GetClbListenersByTargetsLoadBalancerListenerRuleTarget[]
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    url string
    url.
    domain str
    Domain name.
    location_id str
    Rule ID.
    targets Sequence[GetClbListenersByTargetsLoadBalancerListenerRuleTarget]
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    url str
    url.
    domain String
    Domain name.
    locationId String
    Rule ID.
    targets List<Property Map>
    Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
    url String
    url.

    GetClbListenersByTargetsLoadBalancerListenerRuleTarget

    Port double
    Port bound to the real server.
    PrivateIp string
    Private network IP of the real server.
    Type string
    Private network IP type, which can be cvm or eni.
    VpcId double
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    Weight double
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    Port float64
    Port bound to the real server.
    PrivateIp string
    Private network IP of the real server.
    Type string
    Private network IP type, which can be cvm or eni.
    VpcId float64
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    Weight float64
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    port Double
    Port bound to the real server.
    privateIp String
    Private network IP of the real server.
    type String
    Private network IP type, which can be cvm or eni.
    vpcId Double
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    weight Double
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    port number
    Port bound to the real server.
    privateIp string
    Private network IP of the real server.
    type string
    Private network IP type, which can be cvm or eni.
    vpcId number
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    weight number
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    port float
    Port bound to the real server.
    private_ip str
    Private network IP of the real server.
    type str
    Private network IP type, which can be cvm or eni.
    vpc_id float
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    weight float
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    port Number
    Port bound to the real server.
    privateIp String
    Private network IP of the real server.
    type String
    Private network IP type, which can be cvm or eni.
    vpcId Number
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    weight Number
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.

    GetClbListenersByTargetsLoadBalancerListenerTarget

    Port double
    Port bound to the real server.
    PrivateIp string
    Private network IP of the real server.
    Type string
    Private network IP type, which can be cvm or eni.
    VpcId double
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    Weight double
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    Port float64
    Port bound to the real server.
    PrivateIp string
    Private network IP of the real server.
    Type string
    Private network IP type, which can be cvm or eni.
    VpcId float64
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    Weight float64
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    port Double
    Port bound to the real server.
    privateIp String
    Private network IP of the real server.
    type String
    Private network IP type, which can be cvm or eni.
    vpcId Double
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    weight Double
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    port number
    Port bound to the real server.
    privateIp string
    Private network IP of the real server.
    type string
    Private network IP type, which can be cvm or eni.
    vpcId number
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    weight number
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    port float
    Port bound to the real server.
    private_ip str
    Private network IP of the real server.
    type str
    Private network IP type, which can be cvm or eni.
    vpc_id float
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    weight float
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    port Number
    Port bound to the real server.
    privateIp String
    Private network IP of the real server.
    type String
    Private network IP type, which can be cvm or eni.
    vpcId Number
    VPC ID of the real server. Note: this field may return null, indicating that no valid values can be obtained.
    weight Number
    Weight of the real server. Note: this field may return null, indicating that no valid values can be obtained.

    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