tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getClbListenersByTargets
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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
This property is required. List<GetClb Listeners By Targets Backend> - List of private network IPs to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Backends
This property is required. []GetClb Listeners By Targets Backend - List of private network IPs to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- backends
This property is required. List<GetClb Listeners By Targets Backend> - List of private network IPs to be queried.
- id String
- result
Output StringFile - Used to save results.
- backends
This property is required. GetClb Listeners By Targets Backend[] - List of private network IPs to be queried.
- id string
- result
Output stringFile - Used to save results.
- backends
This property is required. Sequence[GetClb Listeners By Targets Backend] - List of private network IPs to be queried.
- id str
- result_
output_ strfile - Used to save results.
- backends
This property is required. 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 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.
GetClbListenersByTargetsLoadBalancer
- Listeners
This property is required. List<GetClb Listeners By Targets Load Balancer Listener> - Listener rule.
- Load
Balancer Id 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. []GetClb Listeners By Targets Load Balancer Listener - Listener rule.
- Load
Balancer Id 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<GetClb Listeners By Targets Load Balancer Listener> - Listener rule.
- load
Balancer Id 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. GetClb Listeners By Targets Load Balancer Listener[] - Listener rule.
- load
Balancer Id 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[GetClb Listeners By Targets Load Balancer Listener] - 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.
- load
Balancer Id 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
- End
Port This property is required. double - 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. 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<GetClb Listeners By Targets Load Balancer Listener Rule> - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- Targets
This property is required. List<GetClb 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 This property is required. float64 - 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. 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. []GetClb Listeners By Targets Load Balancer Listener Rule - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- Targets
This property is required. []GetClb 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 This property is required. Double - 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. 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<GetClb Listeners By Targets Load Balancer Listener Rule> - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- targets
This property is required. List<GetClb 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 This property is required. number - 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. 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. GetClb Listeners By Targets Load Balancer Listener Rule[] - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- targets
This property is required. GetClb 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 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[GetClb Listeners By Targets Load Balancer Listener Rule] - Bound rule. Note: this field may return null, indicating that no valid values can be obtained.
- targets
This property is required. Sequence[GetClb 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 This property is required. Number - 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. 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.
- Location
Id This property is required. string - Rule ID.
- Targets
This property is required. List<GetClb 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
This property is required. string - url.
- Domain
This property is required. string - Domain name.
- Location
Id This property is required. string - Rule ID.
- Targets
This property is required. []GetClb 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
This property is required. string - url.
- domain
This property is required. String - Domain name.
- location
Id This property is required. String - Rule ID.
- targets
This property is required. List<GetClb 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
This property is required. String - url.
- domain
This property is required. string - Domain name.
- location
Id This property is required. string - Rule ID.
- targets
This property is required. GetClb 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
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[GetClb 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
This property is required. str - url.
- domain
This property is required. String - Domain name.
- location
Id 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.
- Private
Ip 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.
- Vpc
Id 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.
- Private
Ip 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.
- Vpc
Id 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.
- private
Ip 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.
- vpc
Id 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.
- private
Ip 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.
- vpc
Id 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.
- private
Ip 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.
- vpc
Id 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.
- Private
Ip 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.
- Vpc
Id 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.
- Private
Ip 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.
- Vpc
Id 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.
- private
Ip 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.
- vpc
Id 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.
- private
Ip 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.
- vpc
Id 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.
- private
Ip 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.
- vpc
Id 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.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack