gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core
gcore.getLblistener
Explore with Pulumi AI
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.
- Allowed
Cidrs List<string> - List of networks from which listener is accessible
- Connection
Limit double - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- Id string
- The ID of this resource.
- Loadbalancer
Id string - ID of the load balancer to which listener was attached.
- Project
Id double - ID of the project in which load balancer listener was created.
- Project
Name string - Name of the project in which load balancer listener was created.
- Region
Id double - ID of the region in which load balancer listener was created.
- Region
Name string - Name of the region in which load balancer listener was created.
- Secret
Id string - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- Sni
Secret List<string>Ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- Timeout
Client doubleData - Frontend client inactivity timeout in milliseconds.
- Timeout
Member doubleConnect - Backend member connection timeout in milliseconds.
- Timeout
Member doubleData - Backend member inactivity timeout in milliseconds.
- User
Lists List<GetLblistener User List> - Load balancer listener list of username and encrypted password items.
- Name string
- Name of the load balancer listener.
- Allowed
Cidrs []string - List of networks from which listener is accessible
- Connection
Limit float64 - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- Id string
- The ID of this resource.
- Loadbalancer
Id string - ID of the load balancer to which listener was attached.
- Project
Id float64 - ID of the project in which load balancer listener was created.
- Project
Name string - Name of the project in which load balancer listener was created.
- Region
Id float64 - ID of the region in which load balancer listener was created.
- Region
Name string - Name of the region in which load balancer listener was created.
- Secret
Id string - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- Sni
Secret []stringIds - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- Timeout
Client float64Data - Frontend client inactivity timeout in milliseconds.
- Timeout
Member float64Connect - Backend member connection timeout in milliseconds.
- Timeout
Member float64Data - Backend member inactivity timeout in milliseconds.
- User
Lists []GetLblistener User List - Load balancer listener list of username and encrypted password items.
- name String
- Name of the load balancer listener.
- allowed
Cidrs List<String> - List of networks from which listener is accessible
- connection
Limit Double - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- id String
- The ID of this resource.
- loadbalancer
Id String - ID of the load balancer to which listener was attached.
- project
Id Double - ID of the project in which load balancer listener was created.
- project
Name String - Name of the project in which load balancer listener was created.
- region
Id Double - ID of the region in which load balancer listener was created.
- region
Name String - Name of the region in which load balancer listener was created.
- secret
Id String - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- sni
Secret List<String>Ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- timeout
Client DoubleData - Frontend client inactivity timeout in milliseconds.
- timeout
Member DoubleConnect - Backend member connection timeout in milliseconds.
- timeout
Member DoubleData - Backend member inactivity timeout in milliseconds.
- user
Lists List<GetLblistener User List> - Load balancer listener list of username and encrypted password items.
- name string
- Name of the load balancer listener.
- allowed
Cidrs string[] - List of networks from which listener is accessible
- connection
Limit number - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- id string
- The ID of this resource.
- loadbalancer
Id string - ID of the load balancer to which listener was attached.
- project
Id number - ID of the project in which load balancer listener was created.
- project
Name string - Name of the project in which load balancer listener was created.
- region
Id number - ID of the region in which load balancer listener was created.
- region
Name string - Name of the region in which load balancer listener was created.
- secret
Id string - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- sni
Secret string[]Ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- timeout
Client numberData - Frontend client inactivity timeout in milliseconds.
- timeout
Member numberConnect - Backend member connection timeout in milliseconds.
- timeout
Member numberData - Backend member inactivity timeout in milliseconds.
- user
Lists GetLblistener User List[] - 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_ Sequence[str]ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- timeout_
client_ floatdata - Frontend client inactivity timeout in milliseconds.
- timeout_
member_ floatconnect - Backend member connection timeout in milliseconds.
- timeout_
member_ floatdata - Backend member inactivity timeout in milliseconds.
- user_
lists Sequence[GetLblistener User List] - Load balancer listener list of username and encrypted password items.
- name String
- Name of the load balancer listener.
- allowed
Cidrs List<String> - List of networks from which listener is accessible
- connection
Limit Number - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- id String
- The ID of this resource.
- loadbalancer
Id String - ID of the load balancer to which listener was attached.
- project
Id Number - ID of the project in which load balancer listener was created.
- project
Name String - Name of the project in which load balancer listener was created.
- region
Id Number - ID of the region in which load balancer listener was created.
- region
Name String - Name of the region in which load balancer listener was created.
- secret
Id String - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- sni
Secret List<String>Ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- timeout
Client NumberData - Frontend client inactivity timeout in milliseconds.
- timeout
Member NumberConnect - Backend member connection timeout in milliseconds.
- timeout
Member NumberData - Backend member inactivity timeout in milliseconds.
- user
Lists 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.
- Loadbalancer
Id string - ID of the load balancer to which listener was attached.
- Name string
- Name of the load balancer listener.
- Operating
Status string - Operating status of this listener.
- Pool
Count double - Number of pools in this listener.
- Protocol string
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- Protocol
Port double - Port number to listen, between 1 and 65535.
- Provisioning
Status string - Provisioning status of this listener.
- Allowed
Cidrs List<string> - List of networks from which listener is accessible
- Connection
Limit double - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- Project
Id double - ID of the project in which load balancer listener was created.
- Project
Name string - Name of the project in which load balancer listener was created.
- Region
Id double - ID of the region in which load balancer listener was created.
- Region
Name string - Name of the region in which load balancer listener was created.
- Secret
Id string - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- Sni
Secret List<string>Ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- Timeout
Client doubleData - Frontend client inactivity timeout in milliseconds.
- Timeout
Member doubleConnect - Backend member connection timeout in milliseconds.
- Timeout
Member doubleData - Backend member inactivity timeout in milliseconds.
- User
Lists List<GetLblistener User List> - Load balancer listener list of username and encrypted password items.
- Id string
- The ID of this resource.
- Loadbalancer
Id string - ID of the load balancer to which listener was attached.
- Name string
- Name of the load balancer listener.
- Operating
Status string - Operating status of this listener.
- Pool
Count float64 - Number of pools in this listener.
- Protocol string
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- Protocol
Port float64 - Port number to listen, between 1 and 65535.
- Provisioning
Status string - Provisioning status of this listener.
- Allowed
Cidrs []string - List of networks from which listener is accessible
- Connection
Limit float64 - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- Project
Id float64 - ID of the project in which load balancer listener was created.
- Project
Name string - Name of the project in which load balancer listener was created.
- Region
Id float64 - ID of the region in which load balancer listener was created.
- Region
Name string - Name of the region in which load balancer listener was created.
- Secret
Id string - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- Sni
Secret []stringIds - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- Timeout
Client float64Data - Frontend client inactivity timeout in milliseconds.
- Timeout
Member float64Connect - Backend member connection timeout in milliseconds.
- Timeout
Member float64Data - Backend member inactivity timeout in milliseconds.
- User
Lists []GetLblistener User List - Load balancer listener list of username and encrypted password items.
- id String
- The ID of this resource.
- loadbalancer
Id String - ID of the load balancer to which listener was attached.
- name String
- Name of the load balancer listener.
- operating
Status String - Operating status of this listener.
- pool
Count Double - Number of pools in this listener.
- protocol String
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- protocol
Port Double - Port number to listen, between 1 and 65535.
- provisioning
Status String - Provisioning status of this listener.
- allowed
Cidrs List<String> - List of networks from which listener is accessible
- connection
Limit Double - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- project
Id Double - ID of the project in which load balancer listener was created.
- project
Name String - Name of the project in which load balancer listener was created.
- region
Id Double - ID of the region in which load balancer listener was created.
- region
Name String - Name of the region in which load balancer listener was created.
- secret
Id String - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- sni
Secret List<String>Ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- timeout
Client DoubleData - Frontend client inactivity timeout in milliseconds.
- timeout
Member DoubleConnect - Backend member connection timeout in milliseconds.
- timeout
Member DoubleData - Backend member inactivity timeout in milliseconds.
- user
Lists List<GetLblistener User List> - Load balancer listener list of username and encrypted password items.
- id string
- The ID of this resource.
- loadbalancer
Id string - ID of the load balancer to which listener was attached.
- name string
- Name of the load balancer listener.
- operating
Status string - Operating status of this listener.
- pool
Count number - Number of pools in this listener.
- protocol string
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- protocol
Port number - Port number to listen, between 1 and 65535.
- provisioning
Status string - Provisioning status of this listener.
- allowed
Cidrs string[] - List of networks from which listener is accessible
- connection
Limit number - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- project
Id number - ID of the project in which load balancer listener was created.
- project
Name string - Name of the project in which load balancer listener was created.
- region
Id number - ID of the region in which load balancer listener was created.
- region
Name string - Name of the region in which load balancer listener was created.
- secret
Id string - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- sni
Secret string[]Ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- timeout
Client numberData - Frontend client inactivity timeout in milliseconds.
- timeout
Member numberConnect - Backend member connection timeout in milliseconds.
- timeout
Member numberData - Backend member inactivity timeout in milliseconds.
- user
Lists GetLblistener User List[] - 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_ Sequence[str]ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- timeout_
client_ floatdata - Frontend client inactivity timeout in milliseconds.
- timeout_
member_ floatconnect - Backend member connection timeout in milliseconds.
- timeout_
member_ floatdata - Backend member inactivity timeout in milliseconds.
- user_
lists Sequence[GetLblistener User List] - Load balancer listener list of username and encrypted password items.
- id String
- The ID of this resource.
- loadbalancer
Id String - ID of the load balancer to which listener was attached.
- name String
- Name of the load balancer listener.
- operating
Status String - Operating status of this listener.
- pool
Count Number - Number of pools in this listener.
- protocol String
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- protocol
Port Number - Port number to listen, between 1 and 65535.
- provisioning
Status String - Provisioning status of this listener.
- allowed
Cidrs List<String> - List of networks from which listener is accessible
- connection
Limit Number - Number of simultaneous connections for this listener, between 1 and 1,000,000.
- project
Id Number - ID of the project in which load balancer listener was created.
- project
Name String - Name of the project in which load balancer listener was created.
- region
Id Number - ID of the region in which load balancer listener was created.
- region
Name String - Name of the region in which load balancer listener was created.
- secret
Id String - Secret ID to use with 'TERMINATED_HTTPS' protocol.
- sni
Secret List<String>Ids - List of additional Secret IDs to use with 'TERMINATED_HTTPS' protocol.
- timeout
Client NumberData - Frontend client inactivity timeout in milliseconds.
- timeout
Member NumberConnect - Backend member connection timeout in milliseconds.
- timeout
Member NumberData - Backend member inactivity timeout in milliseconds.
- user
Lists List<Property Map> - Load balancer listener list of username and encrypted password items.
Supporting Types
GetLblistenerUserList
- Encrypted
Password string - Encrypted password (hash) to auth via Basic Authentication
- Username string
- Username to auth via Basic Authentication
- Encrypted
Password string - Encrypted password (hash) to auth via Basic Authentication
- Username string
- Username to auth via Basic Authentication
- encrypted
Password String - Encrypted password (hash) to auth via Basic Authentication
- username String
- Username to auth via Basic Authentication
- encrypted
Password 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
- encrypted
Password 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.