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

tencentcloud.getClbListenersByTargets

Explore with Pulumi AI

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",
    }],
});
Copy
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",
}])
Copy
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
	})
}
Copy
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",
            },
        },
    });

});
Copy
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());

    }
}
Copy
variables:
  listenersByTargets:
    fn::invoke:
      function: tencentcloud:getClbListenersByTargets
      arguments:
        backends:
          - privateIp: 106.52.160.211
            vpcId: vpc-4owdpnwr
Copy

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>
Copy
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]
Copy
func GetClbListenersByTargets(ctx *Context, args *GetClbListenersByTargetsArgs, opts ...InvokeOption) (*GetClbListenersByTargetsResult, error)
func GetClbListenersByTargetsOutput(ctx *Context, args *GetClbListenersByTargetsOutputArgs, opts ...InvokeOption) GetClbListenersByTargetsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetClbListenersByTargetsResult> getClbListenersByTargets(GetClbListenersByTargetsArgs args, InvokeOptions options)
public static Output<GetClbListenersByTargetsResult> getClbListenersByTargets(GetClbListenersByTargetsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getClbListenersByTargets:getClbListenersByTargets
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Backends This property is required. List<GetClbListenersByTargetsBackend>
List of private network IPs to be queried.
Id string
ResultOutputFile string
Used to save results.
Backends This property is required. []GetClbListenersByTargetsBackend
List of private network IPs to be queried.
Id string
ResultOutputFile string
Used to save results.
backends This property is required. List<GetClbListenersByTargetsBackend>
List of private network IPs to be queried.
id String
resultOutputFile String
Used to save results.
backends This property is required. GetClbListenersByTargetsBackend[]
List of private network IPs to be queried.
id string
resultOutputFile string
Used to save results.
backends This property is required. Sequence[GetClbListenersByTargetsBackend]
List of private network IPs to be queried.
id str
result_output_file str
Used to save results.
backends This property is required. 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 This property is required. string
Private network IP to be queried, which can be of the CVM or ENI.
VpcId This property is required. string
VPC ID.
PrivateIp This property is required. string
Private network IP to be queried, which can be of the CVM or ENI.
VpcId This property is required. string
VPC ID.
privateIp This property is required. String
Private network IP to be queried, which can be of the CVM or ENI.
vpcId This property is required. String
VPC ID.
privateIp This property is required. string
Private network IP to be queried, which can be of the CVM or ENI.
vpcId This property is required. string
VPC ID.
private_ip This property is required. str
Private network IP to be queried, which can be of the CVM or ENI.
vpc_id This property is required. str
VPC ID.
privateIp This property is required. String
Private network IP to be queried, which can be of the CVM or ENI.
vpcId This property is required. String
VPC ID.

GetClbListenersByTargetsLoadBalancer

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

GetClbListenersByTargetsLoadBalancerListener

EndPort This property is required. double
End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
ListenerId This property is required. string
Listener ID.
Port This property is required. double
Port bound to the real server.
Protocol This property is required. string
Listener protocol.
Rules This property is required. List<GetClbListenersByTargetsLoadBalancerListenerRule>
Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
Targets This property is required. List<GetClbListenersByTargetsLoadBalancerListenerTarget>
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
EndPort This property is required. float64
End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
ListenerId This property is required. string
Listener ID.
Port This property is required. float64
Port bound to the real server.
Protocol This property is required. string
Listener protocol.
Rules This property is required. []GetClbListenersByTargetsLoadBalancerListenerRule
Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
Targets This property is required. []GetClbListenersByTargetsLoadBalancerListenerTarget
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
endPort This property is required. Double
End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
listenerId This property is required. String
Listener ID.
port This property is required. Double
Port bound to the real server.
protocol This property is required. String
Listener protocol.
rules This property is required. List<GetClbListenersByTargetsLoadBalancerListenerRule>
Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
targets This property is required. List<GetClbListenersByTargetsLoadBalancerListenerTarget>
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
endPort This property is required. number
End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
listenerId This property is required. string
Listener ID.
port This property is required. number
Port bound to the real server.
protocol This property is required. string
Listener protocol.
rules This property is required. GetClbListenersByTargetsLoadBalancerListenerRule[]
Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
targets This property is required. GetClbListenersByTargetsLoadBalancerListenerTarget[]
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
end_port This property is required. float
End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
listener_id This property is required. str
Listener ID.
port This property is required. float
Port bound to the real server.
protocol This property is required. str
Listener protocol.
rules This property is required. Sequence[GetClbListenersByTargetsLoadBalancerListenerRule]
Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
targets This property is required. Sequence[GetClbListenersByTargetsLoadBalancerListenerTarget]
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
endPort This property is required. Number
End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
listenerId This property is required. String
Listener ID.
port This property is required. Number
Port bound to the real server.
protocol This property is required. String
Listener protocol.
rules This property is required. List<Property Map>
Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
targets This property is required. 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 This property is required. string
Domain name.
LocationId This property is required. string
Rule ID.
Targets This property is required. List<GetClbListenersByTargetsLoadBalancerListenerRuleTarget>
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
Url This property is required. string
url.
Domain This property is required. string
Domain name.
LocationId This property is required. string
Rule ID.
Targets This property is required. []GetClbListenersByTargetsLoadBalancerListenerRuleTarget
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
Url This property is required. string
url.
domain This property is required. String
Domain name.
locationId This property is required. String
Rule ID.
targets This property is required. List<GetClbListenersByTargetsLoadBalancerListenerRuleTarget>
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
url This property is required. String
url.
domain This property is required. string
Domain name.
locationId This property is required. string
Rule ID.
targets This property is required. GetClbListenersByTargetsLoadBalancerListenerRuleTarget[]
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
url This property is required. string
url.
domain This property is required. str
Domain name.
location_id This property is required. str
Rule ID.
targets This property is required. Sequence[GetClbListenersByTargetsLoadBalancerListenerRuleTarget]
Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
url This property is required. str
url.
domain This property is required. String
Domain name.
locationId This property is required. String
Rule ID.
targets This property is required. 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 This property is required. String
url.

GetClbListenersByTargetsLoadBalancerListenerRuleTarget

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

GetClbListenersByTargetsLoadBalancerListenerTarget

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