1. Packages
  2. Gcore Provider
  3. API Docs
  4. getLblistener
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

gcore.getLblistener

Explore with Pulumi AI

gcore logo
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const project = gcore.getProject({
        name: "Default",
    });
    const region = gcore.getRegion({
        name: "Luxembourg-2",
    });
    const listener = Promise.all([region, project]).then(([region, project]) => gcore.getLblistener({
        regionId: region.id,
        projectId: project.id,
        name: "test-listener",
    }));
    export const view = listener;
    
    import pulumi
    import pulumi_gcore as gcore
    
    project = gcore.get_project(name="Default")
    region = gcore.get_region(name="Luxembourg-2")
    listener = gcore.get_lblistener(region_id=region.id,
        project_id=project.id,
        name="test-listener")
    pulumi.export("view", listener)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		project, err := gcore.GetProject(ctx, &gcore.GetProjectArgs{
    			Name: "Default",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		region, err := gcore.GetRegion(ctx, &gcore.GetRegionArgs{
    			Name: "Luxembourg-2",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		listener, err := gcore.LookupLblistener(ctx, &gcore.LookupLblistenerArgs{
    			RegionId:  pulumi.Float64Ref(region.Id),
    			ProjectId: pulumi.Float64Ref(project.Id),
    			Name:      "test-listener",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("view", listener)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var project = Gcore.GetProject.Invoke(new()
        {
            Name = "Default",
        });
    
        var region = Gcore.GetRegion.Invoke(new()
        {
            Name = "Luxembourg-2",
        });
    
        var listener = Gcore.GetLblistener.Invoke(new()
        {
            RegionId = region.Apply(getRegionResult => getRegionResult.Id),
            ProjectId = project.Apply(getProjectResult => getProjectResult.Id),
            Name = "test-listener",
        });
    
        return new Dictionary<string, object?>
        {
            ["view"] = listener,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetProjectArgs;
    import com.pulumi.gcore.inputs.GetRegionArgs;
    import com.pulumi.gcore.inputs.GetLblistenerArgs;
    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 project = GcoreFunctions.getProject(GetProjectArgs.builder()
                .name("Default")
                .build());
    
            final var region = GcoreFunctions.getRegion(GetRegionArgs.builder()
                .name("Luxembourg-2")
                .build());
    
            final var listener = GcoreFunctions.getLblistener(GetLblistenerArgs.builder()
                .regionId(region.applyValue(getRegionResult -> getRegionResult.id()))
                .projectId(project.applyValue(getProjectResult -> getProjectResult.id()))
                .name("test-listener")
                .build());
    
            ctx.export("view", listener.applyValue(getLblistenerResult -> getLblistenerResult));
        }
    }
    
    variables:
      project:
        fn::invoke:
          function: gcore:getProject
          arguments:
            name: Default
      region:
        fn::invoke:
          function: gcore:getRegion
          arguments:
            name: Luxembourg-2
      listener:
        fn::invoke:
          function: gcore:getLblistener
          arguments:
            regionId: ${region.id}
            projectId: ${project.id}
            name: test-listener
    outputs:
      view: ${listener}
    

    Using getLblistener

    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 getLblistener(args: GetLblistenerArgs, opts?: InvokeOptions): Promise<GetLblistenerResult>
    function getLblistenerOutput(args: GetLblistenerOutputArgs, opts?: InvokeOptions): Output<GetLblistenerResult>
    def get_lblistener(allowed_cidrs: Optional[Sequence[str]] = None,
                       connection_limit: Optional[float] = None,
                       id: Optional[str] = None,
                       loadbalancer_id: Optional[str] = None,
                       name: Optional[str] = None,
                       project_id: Optional[float] = None,
                       project_name: Optional[str] = None,
                       region_id: Optional[float] = None,
                       region_name: Optional[str] = None,
                       secret_id: Optional[str] = None,
                       sni_secret_ids: Optional[Sequence[str]] = None,
                       timeout_client_data: Optional[float] = None,
                       timeout_member_connect: Optional[float] = None,
                       timeout_member_data: Optional[float] = None,
                       user_lists: Optional[Sequence[GetLblistenerUserList]] = None,
                       opts: Optional[InvokeOptions] = None) -> GetLblistenerResult
    def get_lblistener_output(allowed_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       connection_limit: Optional[pulumi.Input[float]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       loadbalancer_id: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       project_id: Optional[pulumi.Input[float]] = None,
                       project_name: Optional[pulumi.Input[str]] = None,
                       region_id: Optional[pulumi.Input[float]] = None,
                       region_name: Optional[pulumi.Input[str]] = None,
                       secret_id: Optional[pulumi.Input[str]] = None,
                       sni_secret_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       timeout_client_data: Optional[pulumi.Input[float]] = None,
                       timeout_member_connect: Optional[pulumi.Input[float]] = None,
                       timeout_member_data: Optional[pulumi.Input[float]] = None,
                       user_lists: Optional[pulumi.Input[Sequence[pulumi.Input[GetLblistenerUserListArgs]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetLblistenerResult]
    func LookupLblistener(ctx *Context, args *LookupLblistenerArgs, opts ...InvokeOption) (*LookupLblistenerResult, error)
    func LookupLblistenerOutput(ctx *Context, args *LookupLblistenerOutputArgs, opts ...InvokeOption) LookupLblistenerResultOutput

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

    public static class GetLblistener 
    {
        public static Task<GetLblistenerResult> InvokeAsync(GetLblistenerArgs args, InvokeOptions? opts = null)
        public static Output<GetLblistenerResult> Invoke(GetLblistenerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLblistenerResult> getLblistener(GetLblistenerArgs args, InvokeOptions options)
    public static Output<GetLblistenerResult> getLblistener(GetLblistenerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getLblistener:getLblistener
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the load balancer listener.
    AllowedCidrs List<string>
    List of networks from which listener is accessible
    ConnectionLimit double
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    Id string
    The ID of this resource.
    LoadbalancerId string
    ID of the load balancer to which listener was attached.
    ProjectId double
    ID of the project in which load balancer listener was created.
    ProjectName string
    Name of the project in which load balancer listener was created.
    RegionId double
    ID of the region in which load balancer listener was created.
    RegionName string
    Name of the region in which load balancer listener was created.
    SecretId string
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    SniSecretIds List<string>
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    TimeoutClientData double
    Frontend client inactivity timeout in milliseconds.
    TimeoutMemberConnect double
    Backend member connection timeout in milliseconds.
    TimeoutMemberData double
    Backend member inactivity timeout in milliseconds.
    UserLists List<GetLblistenerUserList>
    Load balancer listener list of username and encrypted password items.
    Name string
    Name of the load balancer listener.
    AllowedCidrs []string
    List of networks from which listener is accessible
    ConnectionLimit float64
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    Id string
    The ID of this resource.
    LoadbalancerId string
    ID of the load balancer to which listener was attached.
    ProjectId float64
    ID of the project in which load balancer listener was created.
    ProjectName string
    Name of the project in which load balancer listener was created.
    RegionId float64
    ID of the region in which load balancer listener was created.
    RegionName string
    Name of the region in which load balancer listener was created.
    SecretId string
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    SniSecretIds []string
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    TimeoutClientData float64
    Frontend client inactivity timeout in milliseconds.
    TimeoutMemberConnect float64
    Backend member connection timeout in milliseconds.
    TimeoutMemberData float64
    Backend member inactivity timeout in milliseconds.
    UserLists []GetLblistenerUserList
    Load balancer listener list of username and encrypted password items.
    name String
    Name of the load balancer listener.
    allowedCidrs List<String>
    List of networks from which listener is accessible
    connectionLimit Double
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    id String
    The ID of this resource.
    loadbalancerId String
    ID of the load balancer to which listener was attached.
    projectId Double
    ID of the project in which load balancer listener was created.
    projectName String
    Name of the project in which load balancer listener was created.
    regionId Double
    ID of the region in which load balancer listener was created.
    regionName String
    Name of the region in which load balancer listener was created.
    secretId String
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    sniSecretIds List<String>
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    timeoutClientData Double
    Frontend client inactivity timeout in milliseconds.
    timeoutMemberConnect Double
    Backend member connection timeout in milliseconds.
    timeoutMemberData Double
    Backend member inactivity timeout in milliseconds.
    userLists List<GetLblistenerUserList>
    Load balancer listener list of username and encrypted password items.
    name string
    Name of the load balancer listener.
    allowedCidrs string[]
    List of networks from which listener is accessible
    connectionLimit number
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    id string
    The ID of this resource.
    loadbalancerId string
    ID of the load balancer to which listener was attached.
    projectId number
    ID of the project in which load balancer listener was created.
    projectName string
    Name of the project in which load balancer listener was created.
    regionId number
    ID of the region in which load balancer listener was created.
    regionName string
    Name of the region in which load balancer listener was created.
    secretId string
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    sniSecretIds string[]
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    timeoutClientData number
    Frontend client inactivity timeout in milliseconds.
    timeoutMemberConnect number
    Backend member connection timeout in milliseconds.
    timeoutMemberData number
    Backend member inactivity timeout in milliseconds.
    userLists GetLblistenerUserList[]
    Load balancer listener list of username and encrypted password items.
    name str
    Name of the load balancer listener.
    allowed_cidrs Sequence[str]
    List of networks from which listener is accessible
    connection_limit float
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    id str
    The ID of this resource.
    loadbalancer_id str
    ID of the load balancer to which listener was attached.
    project_id float
    ID of the project in which load balancer listener was created.
    project_name str
    Name of the project in which load balancer listener was created.
    region_id float
    ID of the region in which load balancer listener was created.
    region_name str
    Name of the region in which load balancer listener was created.
    secret_id str
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    sni_secret_ids Sequence[str]
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    timeout_client_data float
    Frontend client inactivity timeout in milliseconds.
    timeout_member_connect float
    Backend member connection timeout in milliseconds.
    timeout_member_data float
    Backend member inactivity timeout in milliseconds.
    user_lists Sequence[GetLblistenerUserList]
    Load balancer listener list of username and encrypted password items.
    name String
    Name of the load balancer listener.
    allowedCidrs List<String>
    List of networks from which listener is accessible
    connectionLimit Number
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    id String
    The ID of this resource.
    loadbalancerId String
    ID of the load balancer to which listener was attached.
    projectId Number
    ID of the project in which load balancer listener was created.
    projectName String
    Name of the project in which load balancer listener was created.
    regionId Number
    ID of the region in which load balancer listener was created.
    regionName String
    Name of the region in which load balancer listener was created.
    secretId String
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    sniSecretIds List<String>
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    timeoutClientData Number
    Frontend client inactivity timeout in milliseconds.
    timeoutMemberConnect Number
    Backend member connection timeout in milliseconds.
    timeoutMemberData Number
    Backend member inactivity timeout in milliseconds.
    userLists List<Property Map>
    Load balancer listener list of username and encrypted password items.

    getLblistener Result

    The following output properties are available:

    Id string
    The ID of this resource.
    LoadbalancerId string
    ID of the load balancer to which listener was attached.
    Name string
    Name of the load balancer listener.
    OperatingStatus string
    Operating status of this listener.
    PoolCount double
    Number of pools in this listener.
    Protocol string
    Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
    ProtocolPort double
    Port number to listen, between 1 and 65535.
    ProvisioningStatus string
    Provisioning status of this listener.
    AllowedCidrs List<string>
    List of networks from which listener is accessible
    ConnectionLimit double
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    ProjectId double
    ID of the project in which load balancer listener was created.
    ProjectName string
    Name of the project in which load balancer listener was created.
    RegionId double
    ID of the region in which load balancer listener was created.
    RegionName string
    Name of the region in which load balancer listener was created.
    SecretId string
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    SniSecretIds List<string>
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    TimeoutClientData double
    Frontend client inactivity timeout in milliseconds.
    TimeoutMemberConnect double
    Backend member connection timeout in milliseconds.
    TimeoutMemberData double
    Backend member inactivity timeout in milliseconds.
    UserLists List<GetLblistenerUserList>
    Load balancer listener list of username and encrypted password items.
    Id string
    The ID of this resource.
    LoadbalancerId string
    ID of the load balancer to which listener was attached.
    Name string
    Name of the load balancer listener.
    OperatingStatus string
    Operating status of this listener.
    PoolCount float64
    Number of pools in this listener.
    Protocol string
    Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
    ProtocolPort float64
    Port number to listen, between 1 and 65535.
    ProvisioningStatus string
    Provisioning status of this listener.
    AllowedCidrs []string
    List of networks from which listener is accessible
    ConnectionLimit float64
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    ProjectId float64
    ID of the project in which load balancer listener was created.
    ProjectName string
    Name of the project in which load balancer listener was created.
    RegionId float64
    ID of the region in which load balancer listener was created.
    RegionName string
    Name of the region in which load balancer listener was created.
    SecretId string
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    SniSecretIds []string
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    TimeoutClientData float64
    Frontend client inactivity timeout in milliseconds.
    TimeoutMemberConnect float64
    Backend member connection timeout in milliseconds.
    TimeoutMemberData float64
    Backend member inactivity timeout in milliseconds.
    UserLists []GetLblistenerUserList
    Load balancer listener list of username and encrypted password items.
    id String
    The ID of this resource.
    loadbalancerId String
    ID of the load balancer to which listener was attached.
    name String
    Name of the load balancer listener.
    operatingStatus String
    Operating status of this listener.
    poolCount Double
    Number of pools in this listener.
    protocol String
    Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
    protocolPort Double
    Port number to listen, between 1 and 65535.
    provisioningStatus String
    Provisioning status of this listener.
    allowedCidrs List<String>
    List of networks from which listener is accessible
    connectionLimit Double
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    projectId Double
    ID of the project in which load balancer listener was created.
    projectName String
    Name of the project in which load balancer listener was created.
    regionId Double
    ID of the region in which load balancer listener was created.
    regionName String
    Name of the region in which load balancer listener was created.
    secretId String
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    sniSecretIds List<String>
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    timeoutClientData Double
    Frontend client inactivity timeout in milliseconds.
    timeoutMemberConnect Double
    Backend member connection timeout in milliseconds.
    timeoutMemberData Double
    Backend member inactivity timeout in milliseconds.
    userLists List<GetLblistenerUserList>
    Load balancer listener list of username and encrypted password items.
    id string
    The ID of this resource.
    loadbalancerId string
    ID of the load balancer to which listener was attached.
    name string
    Name of the load balancer listener.
    operatingStatus string
    Operating status of this listener.
    poolCount number
    Number of pools in this listener.
    protocol string
    Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
    protocolPort number
    Port number to listen, between 1 and 65535.
    provisioningStatus string
    Provisioning status of this listener.
    allowedCidrs string[]
    List of networks from which listener is accessible
    connectionLimit number
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    projectId number
    ID of the project in which load balancer listener was created.
    projectName string
    Name of the project in which load balancer listener was created.
    regionId number
    ID of the region in which load balancer listener was created.
    regionName string
    Name of the region in which load balancer listener was created.
    secretId string
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    sniSecretIds string[]
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    timeoutClientData number
    Frontend client inactivity timeout in milliseconds.
    timeoutMemberConnect number
    Backend member connection timeout in milliseconds.
    timeoutMemberData number
    Backend member inactivity timeout in milliseconds.
    userLists GetLblistenerUserList[]
    Load balancer listener list of username and encrypted password items.
    id str
    The ID of this resource.
    loadbalancer_id str
    ID of the load balancer to which listener was attached.
    name str
    Name of the load balancer listener.
    operating_status str
    Operating status of this listener.
    pool_count float
    Number of pools in this listener.
    protocol str
    Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
    protocol_port float
    Port number to listen, between 1 and 65535.
    provisioning_status str
    Provisioning status of this listener.
    allowed_cidrs Sequence[str]
    List of networks from which listener is accessible
    connection_limit float
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    project_id float
    ID of the project in which load balancer listener was created.
    project_name str
    Name of the project in which load balancer listener was created.
    region_id float
    ID of the region in which load balancer listener was created.
    region_name str
    Name of the region in which load balancer listener was created.
    secret_id str
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    sni_secret_ids Sequence[str]
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    timeout_client_data float
    Frontend client inactivity timeout in milliseconds.
    timeout_member_connect float
    Backend member connection timeout in milliseconds.
    timeout_member_data float
    Backend member inactivity timeout in milliseconds.
    user_lists Sequence[GetLblistenerUserList]
    Load balancer listener list of username and encrypted password items.
    id String
    The ID of this resource.
    loadbalancerId String
    ID of the load balancer to which listener was attached.
    name String
    Name of the load balancer listener.
    operatingStatus String
    Operating status of this listener.
    poolCount Number
    Number of pools in this listener.
    protocol String
    Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
    protocolPort Number
    Port number to listen, between 1 and 65535.
    provisioningStatus String
    Provisioning status of this listener.
    allowedCidrs List<String>
    List of networks from which listener is accessible
    connectionLimit Number
    Number of simultaneous connections for this listener, between 1 and 1,000,000.
    projectId Number
    ID of the project in which load balancer listener was created.
    projectName String
    Name of the project in which load balancer listener was created.
    regionId Number
    ID of the region in which load balancer listener was created.
    regionName String
    Name of the region in which load balancer listener was created.
    secretId String
    Secret ID to use with 'TERMINATED_HTTPS' protocol.
    sniSecretIds List<String>
    List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
    timeoutClientData Number
    Frontend client inactivity timeout in milliseconds.
    timeoutMemberConnect Number
    Backend member connection timeout in milliseconds.
    timeoutMemberData Number
    Backend member inactivity timeout in milliseconds.
    userLists List<Property Map>
    Load balancer listener list of username and encrypted password items.

    Supporting Types

    GetLblistenerUserList

    EncryptedPassword string
    Encrypted password (hash) to auth via Basic Authentication
    Username string
    Username to auth via Basic Authentication
    EncryptedPassword string
    Encrypted password (hash) to auth via Basic Authentication
    Username string
    Username to auth via Basic Authentication
    encryptedPassword String
    Encrypted password (hash) to auth via Basic Authentication
    username String
    Username to auth via Basic Authentication
    encryptedPassword string
    Encrypted password (hash) to auth via Basic Authentication
    username string
    Username to auth via Basic Authentication
    encrypted_password str
    Encrypted password (hash) to auth via Basic Authentication
    username str
    Username to auth via Basic Authentication
    encryptedPassword String
    Encrypted password (hash) to auth via Basic Authentication
    username String
    Username to auth via Basic Authentication

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core