tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getClbListenersByTargets
Start a Neo task
Explain and create a tencentcloud.getClbListenersByTargets resource
tencentcloud 1.82.35 published on Friday, Nov 7, 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: [{
vpcId: "vpc-4owdpnwr",
privateIp: "106.52.160.211",
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
listeners_by_targets = tencentcloud.get_clb_listeners_by_targets(backends=[{
"vpc_id": "vpc-4owdpnwr",
"private_ip": "106.52.160.211",
}])
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{
{
VpcId: "vpc-4owdpnwr",
PrivateIp: "106.52.160.211",
},
},
}, 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
{
VpcId = "vpc-4owdpnwr",
PrivateIp = "106.52.160.211",
},
},
});
});
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()
.vpcId("vpc-4owdpnwr")
.privateIp("106.52.160.211")
.build())
.build());
}
}
variables:
listenersByTargets:
fn::invoke:
function: tencentcloud:getClbListenersByTargets
arguments:
backends:
- vpcId: vpc-4owdpnwr
privateIp: 106.52.160.211
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 dictionaryThe following arguments are supported:
- Backends
List<Get
Clb Listeners By Targets Backend> - List of private network IPs to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Backends
[]Get
Clb Listeners By Targets Backend - List of private network IPs to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- backends
List<Get
Clb Listeners By Targets Backend> - List of private network IPs to be queried.
- id String
- result
Output StringFile - Used to save results.
- backends
Get
Clb Listeners By Targets Backend[] - List of private network IPs to be queried.
- id string
- result
Output stringFile - Used to save results.
- backends
Sequence[Get
Clb Listeners By Targets Backend] - List of private network IPs to be queried.
- id str
- result_
output_ strfile - Used to save results.
- backends List<Property Map>
- List of private network IPs to be queried.
- id String
- result
Output StringFile - Used to save results.
getClbListenersByTargets Result
The following output properties are available:
- Backends
List<Get
Clb Listeners By Targets Backend> - Id string
- Load
Balancers List<GetClb Listeners By Targets Load Balancer> - Detail of the CLB instance.
- Result
Output stringFile
- Backends
[]Get
Clb Listeners By Targets Backend - Id string
- Load
Balancers []GetClb Listeners By Targets Load Balancer - Detail of the CLB instance.
- Result
Output stringFile
- backends
List<Get
Clb Listeners By Targets Backend> - id String
- load
Balancers List<GetClb Listeners By Targets Load Balancer> - Detail of the CLB instance.
- result
Output StringFile
- backends
Get
Clb Listeners By Targets Backend[] - id string
- load
Balancers GetClb Listeners By Targets Load Balancer[] - Detail of the CLB instance.
- result
Output stringFile
- backends
Sequence[Get
Clb Listeners By Targets Backend] - id str
- load_
balancers Sequence[GetClb Listeners By Targets Load Balancer] - Detail of the CLB instance.
- result_
output_ strfile
- backends List<Property Map>
- id String
- load
Balancers List<Property Map> - Detail of the CLB instance.
- result
Output StringFile
Supporting Types
GetClbListenersByTargetsBackend
- private_
ip str - Private network IP to be queried, which can be of the CVM or ENI.
- vpc_
id str - VPC ID.
GetClbListenersByTargetsLoadBalancer
- Listeners
List<Get
Clb Listeners By Targets Load Balancer Listener> - Listener rule.
- Load
Balancer stringId - String ID of the CLB instance.
- Region string
- CLB instance region.
- Vip string
- VIP of the CLB instance.
- Listeners
[]Get
Clb Listeners By Targets Load Balancer Listener - Listener rule.
- Load
Balancer stringId - String ID of the CLB instance.
- Region string
- CLB instance region.
- Vip string
- VIP of the CLB instance.
- listeners
List<Get
Clb Listeners By Targets Load Balancer Listener> - Listener rule.
- load
Balancer StringId - String ID of the CLB instance.
- region String
- CLB instance region.
- vip String
- VIP of the CLB instance.
- listeners
Get
Clb Listeners By Targets Load Balancer Listener[] - Listener rule.
- load
Balancer stringId - String ID of the CLB instance.
- region string
- CLB instance region.
- vip string
- VIP of the CLB instance.
- listeners
Sequence[Get
Clb Listeners By Targets Load Balancer Listener] - Listener rule.
- load_
balancer_ strid - String ID of the CLB instance.
- region str
- CLB instance region.
- vip str
- VIP of the CLB instance.
- listeners List<Property Map>
- Listener rule.
- load
Balancer StringId - String ID of the CLB instance.
- region String
- CLB instance region.
- vip String
- VIP of the CLB instance.
GetClbListenersByTargetsLoadBalancerListener
- End
Port double - End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
- Listener
Id string - Listener ID.
- Port double
- Port bound to the real server.
- Protocol string
- Listener protocol.
- Rules
List<Get
Clb Listeners By Targets Load Balancer Listener Rule> - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- Targets
List<Get
Clb Listeners By Targets Load Balancer Listener Target> - Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
- End
Port float64 - End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
- Listener
Id string - Listener ID.
- Port float64
- Port bound to the real server.
- Protocol string
- Listener protocol.
- Rules
[]Get
Clb Listeners By Targets Load Balancer Listener Rule - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- Targets
[]Get
Clb Listeners By Targets Load Balancer Listener Target - Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
- end
Port Double - End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
- listener
Id String - Listener ID.
- port Double
- Port bound to the real server.
- protocol String
- Listener protocol.
- rules
List<Get
Clb Listeners By Targets Load Balancer Listener Rule> - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- targets
List<Get
Clb Listeners By Targets Load Balancer Listener Target> - Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
- end
Port number - End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
- listener
Id string - Listener ID.
- port number
- Port bound to the real server.
- protocol string
- Listener protocol.
- rules
Get
Clb Listeners By Targets Load Balancer Listener Rule[] - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- targets
Get
Clb Listeners By Targets Load Balancer Listener Target[] - 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[Get
Clb Listeners By Targets Load Balancer Listener Rule] - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- targets
Sequence[Get
Clb Listeners By Targets Load Balancer Listener Target] - Object bound to the layer-4 listener. Note: this field may return null, indicating that no valid values can be obtained.
- end
Port Number - End port of the listener. Note: this field may return null, indicating that no valid values can be obtained.
- listener
Id 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.
- Location
Id string - Rule ID.
- Targets
List<Get
Clb Listeners By Targets Load Balancer Listener Rule Target> - 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.
- Location
Id string - Rule ID.
- Targets
[]Get
Clb Listeners By Targets Load Balancer Listener Rule Target - 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.
- location
Id String - Rule ID.
- targets
List<Get
Clb Listeners By Targets Load Balancer Listener Rule Target> - 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.
- location
Id string - Rule ID.
- targets
Get
Clb Listeners By Targets Load Balancer Listener Rule Target[] - 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[Get
Clb Listeners By Targets Load Balancer Listener Rule Target] - 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.
- location
Id 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.
- Private
Ip string - Private network IP of the real server.
- Type string
- Private network IP type, which can be cvm or eni.
- Vpc
Id 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.
- Private
Ip string - Private network IP of the real server.
- Type string
- Private network IP type, which can be cvm or eni.
- Vpc
Id 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.
- private
Ip String - Private network IP of the real server.
- type String
- Private network IP type, which can be cvm or eni.
- vpc
Id 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.
- private
Ip string - Private network IP of the real server.
- type string
- Private network IP type, which can be cvm or eni.
- vpc
Id 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.
- private
Ip String - Private network IP of the real server.
- type String
- Private network IP type, which can be cvm or eni.
- vpc
Id 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.
- Private
Ip string - Private network IP of the real server.
- Type string
- Private network IP type, which can be cvm or eni.
- Vpc
Id 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.
- Private
Ip string - Private network IP of the real server.
- Type string
- Private network IP type, which can be cvm or eni.
- Vpc
Id 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.
- private
Ip String - Private network IP of the real server.
- type String
- Private network IP type, which can be cvm or eni.
- vpc
Id 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.
- private
Ip string - Private network IP of the real server.
- type string
- Private network IP type, which can be cvm or eni.
- vpc
Id 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.
- private
Ip String - Private network IP of the real server.
- type String
- Private network IP type, which can be cvm or eni.
- vpc
Id 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
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
