1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getLbListenersV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getLbListenersV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to query the list of ELB listeners.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const protocol = config.requireObject("protocol");
    const test = flexibleengine.getLbListenersV2({
        protocol: protocol,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    protocol = config.require_object("protocol")
    test = flexibleengine.get_lb_listeners_v2(protocol=protocol)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		protocol := cfg.RequireObject("protocol")
    		_, err := flexibleengine.GetLbListenersV2(ctx, &flexibleengine.GetLbListenersV2Args{
    			Protocol: pulumi.StringRef(protocol),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var protocol = config.RequireObject<dynamic>("protocol");
        var test = Flexibleengine.GetLbListenersV2.Invoke(new()
        {
            Protocol = protocol,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetLbListenersV2Args;
    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 config = ctx.config();
            final var protocol = config.get("protocol");
            final var test = FlexibleengineFunctions.getLbListenersV2(GetLbListenersV2Args.builder()
                .protocol(protocol)
                .build());
    
        }
    }
    
    configuration:
      protocol:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getLbListenersV2
          arguments:
            protocol: ${protocol}
    

    Using getLbListenersV2

    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 getLbListenersV2(args: GetLbListenersV2Args, opts?: InvokeOptions): Promise<GetLbListenersV2Result>
    function getLbListenersV2Output(args: GetLbListenersV2OutputArgs, opts?: InvokeOptions): Output<GetLbListenersV2Result>
    def get_lb_listeners_v2(id: Optional[str] = None,
                            name: Optional[str] = None,
                            protocol: Optional[str] = None,
                            protocol_port: Optional[str] = None,
                            region: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetLbListenersV2Result
    def get_lb_listeners_v2_output(id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            protocol: Optional[pulumi.Input[str]] = None,
                            protocol_port: Optional[pulumi.Input[str]] = None,
                            region: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetLbListenersV2Result]
    func GetLbListenersV2(ctx *Context, args *GetLbListenersV2Args, opts ...InvokeOption) (*GetLbListenersV2Result, error)
    func GetLbListenersV2Output(ctx *Context, args *GetLbListenersV2OutputArgs, opts ...InvokeOption) GetLbListenersV2ResultOutput

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

    public static class GetLbListenersV2 
    {
        public static Task<GetLbListenersV2Result> InvokeAsync(GetLbListenersV2Args args, InvokeOptions? opts = null)
        public static Output<GetLbListenersV2Result> Invoke(GetLbListenersV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLbListenersV2Result> getLbListenersV2(GetLbListenersV2Args args, InvokeOptions options)
    public static Output<GetLbListenersV2Result> getLbListenersV2(GetLbListenersV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getLbListenersV2:getLbListenersV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ELB loadbalancer ID.
    Name string
    The listener name.
    Protocol string
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    ProtocolPort string
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    Id string
    The ELB loadbalancer ID.
    Name string
    The listener name.
    Protocol string
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    ProtocolPort string
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    id String
    The ELB loadbalancer ID.
    name String
    The listener name.
    protocol String
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    protocolPort String
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    id string
    The ELB loadbalancer ID.
    name string
    The listener name.
    protocol string
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    protocolPort string
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    id str
    The ELB loadbalancer ID.
    name str
    The listener name.
    protocol str
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    protocol_port str
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    region str
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    id String
    The ELB loadbalancer ID.
    name String
    The listener name.
    protocol String
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    protocolPort String
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.

    getLbListenersV2 Result

    The following output properties are available:

    Id string
    The ELB loadbalancer ID.
    Listeners List<GetLbListenersV2Listener>
    Listener list. The listeners structure is documented below.
    Region string
    Name string
    The listener name.
    Protocol string
    The listener protocol.
    ProtocolPort string
    The front-end listening port of the listener.
    Id string
    The ELB loadbalancer ID.
    Listeners []GetLbListenersV2Listener
    Listener list. The listeners structure is documented below.
    Region string
    Name string
    The listener name.
    Protocol string
    The listener protocol.
    ProtocolPort string
    The front-end listening port of the listener.
    id String
    The ELB loadbalancer ID.
    listeners List<GetLbListenersV2Listener>
    Listener list. The listeners structure is documented below.
    region String
    name String
    The listener name.
    protocol String
    The listener protocol.
    protocolPort String
    The front-end listening port of the listener.
    id string
    The ELB loadbalancer ID.
    listeners GetLbListenersV2Listener[]
    Listener list. The listeners structure is documented below.
    region string
    name string
    The listener name.
    protocol string
    The listener protocol.
    protocolPort string
    The front-end listening port of the listener.
    id str
    The ELB loadbalancer ID.
    listeners Sequence[GetLbListenersV2Listener]
    Listener list. The listeners structure is documented below.
    region str
    name str
    The listener name.
    protocol str
    The listener protocol.
    protocol_port str
    The front-end listening port of the listener.
    id String
    The ELB loadbalancer ID.
    listeners List<Property Map>
    Listener list. The listeners structure is documented below.
    region String
    name String
    The listener name.
    protocol String
    The listener protocol.
    protocolPort String
    The front-end listening port of the listener.

    Supporting Types

    GetLbListenersV2Listener

    ConnectionLimit double
    The maximum number of connections allowed for the listener.
    DefaultPoolId string
    The ID of the default pool with which the ELB listener is associated.
    DefaultTlsContainerRef string
    The ID of the server certificate used by the listener.
    Description string
    The description of the ELB listener.
    Http2Enable bool
    Whether the ELB listener uses HTTP/2.
    Id string
    The ELB loadbalancer ID.
    Loadbalancers List<GetLbListenersV2ListenerLoadbalancer>
    Listener list. The loadbalancers structure is documented below.
    Name string
    The listener name.
    Protocol string
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    ProtocolPort double
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    SniContainerRefs List<string>
    List of the SNI certificate (server certificates with a domain name) IDs used by the listener.
    ConnectionLimit float64
    The maximum number of connections allowed for the listener.
    DefaultPoolId string
    The ID of the default pool with which the ELB listener is associated.
    DefaultTlsContainerRef string
    The ID of the server certificate used by the listener.
    Description string
    The description of the ELB listener.
    Http2Enable bool
    Whether the ELB listener uses HTTP/2.
    Id string
    The ELB loadbalancer ID.
    Loadbalancers []GetLbListenersV2ListenerLoadbalancer
    Listener list. The loadbalancers structure is documented below.
    Name string
    The listener name.
    Protocol string
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    ProtocolPort float64
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    SniContainerRefs []string
    List of the SNI certificate (server certificates with a domain name) IDs used by the listener.
    connectionLimit Double
    The maximum number of connections allowed for the listener.
    defaultPoolId String
    The ID of the default pool with which the ELB listener is associated.
    defaultTlsContainerRef String
    The ID of the server certificate used by the listener.
    description String
    The description of the ELB listener.
    http2Enable Boolean
    Whether the ELB listener uses HTTP/2.
    id String
    The ELB loadbalancer ID.
    loadbalancers List<GetLbListenersV2ListenerLoadbalancer>
    Listener list. The loadbalancers structure is documented below.
    name String
    The listener name.
    protocol String
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    protocolPort Double
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    sniContainerRefs List<String>
    List of the SNI certificate (server certificates with a domain name) IDs used by the listener.
    connectionLimit number
    The maximum number of connections allowed for the listener.
    defaultPoolId string
    The ID of the default pool with which the ELB listener is associated.
    defaultTlsContainerRef string
    The ID of the server certificate used by the listener.
    description string
    The description of the ELB listener.
    http2Enable boolean
    Whether the ELB listener uses HTTP/2.
    id string
    The ELB loadbalancer ID.
    loadbalancers GetLbListenersV2ListenerLoadbalancer[]
    Listener list. The loadbalancers structure is documented below.
    name string
    The listener name.
    protocol string
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    protocolPort number
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    sniContainerRefs string[]
    List of the SNI certificate (server certificates with a domain name) IDs used by the listener.
    connection_limit float
    The maximum number of connections allowed for the listener.
    default_pool_id str
    The ID of the default pool with which the ELB listener is associated.
    default_tls_container_ref str
    The ID of the server certificate used by the listener.
    description str
    The description of the ELB listener.
    http2_enable bool
    Whether the ELB listener uses HTTP/2.
    id str
    The ELB loadbalancer ID.
    loadbalancers Sequence[GetLbListenersV2ListenerLoadbalancer]
    Listener list. The loadbalancers structure is documented below.
    name str
    The listener name.
    protocol str
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    protocol_port float
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    sni_container_refs Sequence[str]
    List of the SNI certificate (server certificates with a domain name) IDs used by the listener.
    connectionLimit Number
    The maximum number of connections allowed for the listener.
    defaultPoolId String
    The ID of the default pool with which the ELB listener is associated.
    defaultTlsContainerRef String
    The ID of the server certificate used by the listener.
    description String
    The description of the ELB listener.
    http2Enable Boolean
    Whether the ELB listener uses HTTP/2.
    id String
    The ELB loadbalancer ID.
    loadbalancers List<Property Map>
    Listener list. The loadbalancers structure is documented below.
    name String
    The listener name.
    protocol String
    The listener protocol.
    The valid values are TCP, UDP, HTTP and TERMINATED_HTTPS.
    protocolPort Number
    The front-end listening port of the listener.
    The valid value is range from 1 to 65535.
    sniContainerRefs List<String>
    List of the SNI certificate (server certificates with a domain name) IDs used by the listener.

    GetLbListenersV2ListenerLoadbalancer

    Id string
    The ELB loadbalancer ID.
    Id string
    The ELB loadbalancer ID.
    id String
    The ELB loadbalancer ID.
    id string
    The ELB loadbalancer ID.
    id str
    The ELB loadbalancer ID.
    id String
    The ELB loadbalancer ID.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud