gcore.Lblistener
Explore with Pulumi AI
Represent load balancer listener. Can not be created without load balancer. A listener is a process that checks for connection requests, using the protocol and port that you configure
Example Usage
Prerequisite
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",
});
import pulumi
import pulumi_gcore as gcore
project = gcore.get_project(name="Default")
region = gcore.get_region(name="Luxembourg-2")
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 {
_, err := gcore.GetProject(ctx, &gcore.GetProjectArgs{
Name: "Default",
}, nil)
if err != nil {
return err
}
_, err = gcore.GetRegion(ctx, &gcore.GetRegionArgs{
Name: "Luxembourg-2",
}, nil)
if err != nil {
return err
}
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",
});
});
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 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());
}
}
variables:
project:
fn::invoke:
function: gcore:getProject
arguments:
name: Default
region:
fn::invoke:
function: gcore:getRegion
arguments:
name: Luxembourg-2
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const lb = new gcore.Loadbalancerv2("lb", {
projectId: data.gcore_project.project.id,
regionId: data.gcore_region.region.id,
flavor: "lb1-1-2",
});
import pulumi
import pulumi_gcore as gcore
lb = gcore.Loadbalancerv2("lb",
project_id=data["gcore_project"]["project"]["id"],
region_id=data["gcore_region"]["region"]["id"],
flavor="lb1-1-2")
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 {
_, err := gcore.NewLoadbalancerv2(ctx, "lb", &gcore.Loadbalancerv2Args{
ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
RegionId: pulumi.Any(data.Gcore_region.Region.Id),
Flavor: pulumi.String("lb1-1-2"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var lb = new Gcore.Loadbalancerv2("lb", new()
{
ProjectId = data.Gcore_project.Project.Id,
RegionId = data.Gcore_region.Region.Id,
Flavor = "lb1-1-2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.Loadbalancerv2;
import com.pulumi.gcore.Loadbalancerv2Args;
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) {
var lb = new Loadbalancerv2("lb", Loadbalancerv2Args.builder()
.projectId(data.gcore_project().project().id())
.regionId(data.gcore_region().region().id())
.flavor("lb1-1-2")
.build());
}
}
resources:
lb:
type: gcore:Loadbalancerv2
properties:
projectId: ${data.gcore_project.project.id}
regionId: ${data.gcore_region.region.id}
flavor: lb1-1-2
TCP
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const tcp80 = new gcore.Lblistener("tcp80", {
projectId: data.gcore_project.project.id,
regionId: data.gcore_region.region.id,
loadbalancerId: gcore_loadbalancerv2.lb.id,
protocol: "TCP",
protocolPort: 80,
});
import pulumi
import pulumi_gcore as gcore
tcp80 = gcore.Lblistener("tcp80",
project_id=data["gcore_project"]["project"]["id"],
region_id=data["gcore_region"]["region"]["id"],
loadbalancer_id=gcore_loadbalancerv2["lb"]["id"],
protocol="TCP",
protocol_port=80)
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 {
_, err := gcore.NewLblistener(ctx, "tcp80", &gcore.LblistenerArgs{
ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
RegionId: pulumi.Any(data.Gcore_region.Region.Id),
LoadbalancerId: pulumi.Any(gcore_loadbalancerv2.Lb.Id),
Protocol: pulumi.String("TCP"),
ProtocolPort: pulumi.Float64(80),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var tcp80 = new Gcore.Lblistener("tcp80", new()
{
ProjectId = data.Gcore_project.Project.Id,
RegionId = data.Gcore_region.Region.Id,
LoadbalancerId = gcore_loadbalancerv2.Lb.Id,
Protocol = "TCP",
ProtocolPort = 80,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.Lblistener;
import com.pulumi.gcore.LblistenerArgs;
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) {
var tcp80 = new Lblistener("tcp80", LblistenerArgs.builder()
.projectId(data.gcore_project().project().id())
.regionId(data.gcore_region().region().id())
.loadbalancerId(gcore_loadbalancerv2.lb().id())
.protocol("TCP")
.protocolPort(80)
.build());
}
}
resources:
tcp80:
type: gcore:Lblistener
properties:
projectId: ${data.gcore_project.project.id}
regionId: ${data.gcore_region.region.id}
loadbalancerId: ${gcore_loadbalancerv2.lb.id}
protocol: TCP
protocolPort: 80
Prometheus metrics (from private network)
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
import * as random from "@pulumi/random";
const prometheusPasswordrandom_password = new random.index.Random_password("prometheusPasswordrandom_password", {
length: 16,
special: true,
overrideSpecial: "!#$%&*()-_=+[]{}<>:?",
});
const prometheus9101 = new gcore.Lblistener("prometheus9101", {
projectId: data.gcore_project.project.id,
regionId: data.gcore_region.region.id,
loadbalancerId: gcore_loadbalancerv2.lb.id,
protocol: "PROMETHEUS",
protocolPort: 9101,
allowedCidrs: ["10.0.0.0/8"],
userLists: [{
username: "admin1",
encryptedPassword: prometheusPasswordrandom_password.bcryptHash,
}],
});
export const prometheusPassword = prometheusPasswordrandom_password.result;
import pulumi
import pulumi_gcore as gcore
import pulumi_random as random
prometheus_passwordrandom_password = random.index.Random_password("prometheusPasswordrandom_password",
length=16,
special=True,
override_special=!#$%&*()-_=+[]{}<>:?)
prometheus9101 = gcore.Lblistener("prometheus9101",
project_id=data["gcore_project"]["project"]["id"],
region_id=data["gcore_region"]["region"]["id"],
loadbalancer_id=gcore_loadbalancerv2["lb"]["id"],
protocol="PROMETHEUS",
protocol_port=9101,
allowed_cidrs=["10.0.0.0/8"],
user_lists=[{
"username": "admin1",
"encrypted_password": prometheus_passwordrandom_password["bcryptHash"],
}])
pulumi.export("prometheusPassword", prometheus_passwordrandom_password["result"])
package main
import (
"github.com/pulumi/pulumi-random/sdk/go/random"
"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 {
prometheusPasswordrandom_password, err := random.NewRandom_password(ctx, "prometheusPasswordrandom_password", &random.Random_passwordArgs{
Length: 16,
Special: true,
OverrideSpecial: "!#$%&*()-_=+[]{}<>:?",
})
if err != nil {
return err
}
_, err = gcore.NewLblistener(ctx, "prometheus9101", &gcore.LblistenerArgs{
ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
RegionId: pulumi.Any(data.Gcore_region.Region.Id),
LoadbalancerId: pulumi.Any(gcore_loadbalancerv2.Lb.Id),
Protocol: pulumi.String("PROMETHEUS"),
ProtocolPort: pulumi.Float64(9101),
AllowedCidrs: pulumi.StringArray{
pulumi.String("10.0.0.0/8"),
},
UserLists: gcore.LblistenerUserListArray{
&gcore.LblistenerUserListArgs{
Username: pulumi.String("admin1"),
EncryptedPassword: prometheusPasswordrandom_password.BcryptHash,
},
},
})
if err != nil {
return err
}
ctx.Export("prometheusPassword", prometheusPasswordrandom_password.Result)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var prometheusPasswordrandom_password = new Random.Index.Random_password("prometheusPasswordrandom_password", new()
{
Length = 16,
Special = true,
OverrideSpecial = "!#$%&*()-_=+[]{}<>:?",
});
var prometheus9101 = new Gcore.Lblistener("prometheus9101", new()
{
ProjectId = data.Gcore_project.Project.Id,
RegionId = data.Gcore_region.Region.Id,
LoadbalancerId = gcore_loadbalancerv2.Lb.Id,
Protocol = "PROMETHEUS",
ProtocolPort = 9101,
AllowedCidrs = new[]
{
"10.0.0.0/8",
},
UserLists = new[]
{
new Gcore.Inputs.LblistenerUserListArgs
{
Username = "admin1",
EncryptedPassword = prometheusPasswordrandom_password.BcryptHash,
},
},
});
return new Dictionary<string, object?>
{
["prometheusPassword"] = prometheusPasswordrandom_password.Result,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.random_password;
import com.pulumi.random.Random_passwordArgs;
import com.pulumi.gcore.Lblistener;
import com.pulumi.gcore.LblistenerArgs;
import com.pulumi.gcore.inputs.LblistenerUserListArgs;
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) {
var prometheusPasswordrandom_password = new Random_password("prometheusPasswordrandom_password", Random_passwordArgs.builder()
.length(16)
.special(true)
.overrideSpecial("!#$%&*()-_=+[]{}<>:?")
.build());
var prometheus9101 = new Lblistener("prometheus9101", LblistenerArgs.builder()
.projectId(data.gcore_project().project().id())
.regionId(data.gcore_region().region().id())
.loadbalancerId(gcore_loadbalancerv2.lb().id())
.protocol("PROMETHEUS")
.protocolPort(9101)
.allowedCidrs("10.0.0.0/8")
.userLists(LblistenerUserListArgs.builder()
.username("admin1")
.encryptedPassword(prometheusPasswordrandom_password.bcryptHash())
.build())
.build());
ctx.export("prometheusPassword", prometheusPasswordrandom_password.result());
}
}
resources:
prometheusPasswordrandom_password:
type: random:random_password
properties:
length: 16
special: true
overrideSpecial: '!#$%&*()-_=+[]{}<>:?'
prometheus9101:
type: gcore:Lblistener
properties:
projectId: ${data.gcore_project.project.id}
regionId: ${data.gcore_region.region.id}
loadbalancerId: ${gcore_loadbalancerv2.lb.id}
protocol: PROMETHEUS
protocolPort: 9101
allowedCidrs: # example of how to allow access only from private network
- 10.0.0.0/8
userLists:
- username: admin1
encryptedPassword: ${prometheusPasswordrandom_password.bcryptHash}
outputs:
prometheusPassword: ${prometheusPasswordrandom_password.result}
Create Lblistener Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Lblistener(name: string, args: LblistenerArgs, opts?: CustomResourceOptions);
@overload
def Lblistener(resource_name: str,
args: LblistenerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Lblistener(resource_name: str,
opts: Optional[ResourceOptions] = None,
protocol: Optional[str] = None,
protocol_port: Optional[float] = None,
loadbalancer_id: Optional[str] = None,
region_id: Optional[float] = None,
lblistener_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
connection_limit: Optional[float] = None,
allowed_cidrs: Optional[Sequence[str]] = None,
insert_x_forwarded: Optional[bool] = 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,
timeouts: Optional[LblistenerTimeoutsArgs] = None,
user_lists: Optional[Sequence[LblistenerUserListArgs]] = None)
func NewLblistener(ctx *Context, name string, args LblistenerArgs, opts ...ResourceOption) (*Lblistener, error)
public Lblistener(string name, LblistenerArgs args, CustomResourceOptions? opts = null)
public Lblistener(String name, LblistenerArgs args)
public Lblistener(String name, LblistenerArgs args, CustomResourceOptions options)
type: gcore:Lblistener
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LblistenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LblistenerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LblistenerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LblistenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LblistenerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var lblistenerResource = new Gcore.Lblistener("lblistenerResource", new()
{
Protocol = "string",
ProtocolPort = 0,
LoadbalancerId = "string",
RegionId = 0,
LblistenerId = "string",
Name = "string",
ProjectId = 0,
ProjectName = "string",
ConnectionLimit = 0,
AllowedCidrs = new[]
{
"string",
},
InsertXForwarded = false,
RegionName = "string",
SecretId = "string",
SniSecretIds = new[]
{
"string",
},
TimeoutClientData = 0,
TimeoutMemberConnect = 0,
TimeoutMemberData = 0,
Timeouts = new Gcore.Inputs.LblistenerTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
UserLists = new[]
{
new Gcore.Inputs.LblistenerUserListArgs
{
EncryptedPassword = "string",
Username = "string",
},
},
});
example, err := gcore.NewLblistener(ctx, "lblistenerResource", &gcore.LblistenerArgs{
Protocol: pulumi.String("string"),
ProtocolPort: pulumi.Float64(0),
LoadbalancerId: pulumi.String("string"),
RegionId: pulumi.Float64(0),
LblistenerId: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
ConnectionLimit: pulumi.Float64(0),
AllowedCidrs: pulumi.StringArray{
pulumi.String("string"),
},
InsertXForwarded: pulumi.Bool(false),
RegionName: pulumi.String("string"),
SecretId: pulumi.String("string"),
SniSecretIds: pulumi.StringArray{
pulumi.String("string"),
},
TimeoutClientData: pulumi.Float64(0),
TimeoutMemberConnect: pulumi.Float64(0),
TimeoutMemberData: pulumi.Float64(0),
Timeouts: &gcore.LblistenerTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UserLists: gcore.LblistenerUserListArray{
&gcore.LblistenerUserListArgs{
EncryptedPassword: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
})
var lblistenerResource = new Lblistener("lblistenerResource", LblistenerArgs.builder()
.protocol("string")
.protocolPort(0)
.loadbalancerId("string")
.regionId(0)
.lblistenerId("string")
.name("string")
.projectId(0)
.projectName("string")
.connectionLimit(0)
.allowedCidrs("string")
.insertXForwarded(false)
.regionName("string")
.secretId("string")
.sniSecretIds("string")
.timeoutClientData(0)
.timeoutMemberConnect(0)
.timeoutMemberData(0)
.timeouts(LblistenerTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.userLists(LblistenerUserListArgs.builder()
.encryptedPassword("string")
.username("string")
.build())
.build());
lblistener_resource = gcore.Lblistener("lblistenerResource",
protocol="string",
protocol_port=0,
loadbalancer_id="string",
region_id=0,
lblistener_id="string",
name="string",
project_id=0,
project_name="string",
connection_limit=0,
allowed_cidrs=["string"],
insert_x_forwarded=False,
region_name="string",
secret_id="string",
sni_secret_ids=["string"],
timeout_client_data=0,
timeout_member_connect=0,
timeout_member_data=0,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
user_lists=[{
"encrypted_password": "string",
"username": "string",
}])
const lblistenerResource = new gcore.Lblistener("lblistenerResource", {
protocol: "string",
protocolPort: 0,
loadbalancerId: "string",
regionId: 0,
lblistenerId: "string",
name: "string",
projectId: 0,
projectName: "string",
connectionLimit: 0,
allowedCidrs: ["string"],
insertXForwarded: false,
regionName: "string",
secretId: "string",
sniSecretIds: ["string"],
timeoutClientData: 0,
timeoutMemberConnect: 0,
timeoutMemberData: 0,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
userLists: [{
encryptedPassword: "string",
username: "string",
}],
});
type: gcore:Lblistener
properties:
allowedCidrs:
- string
connectionLimit: 0
insertXForwarded: false
lblistenerId: string
loadbalancerId: string
name: string
projectId: 0
projectName: string
protocol: string
protocolPort: 0
regionId: 0
regionName: string
secretId: string
sniSecretIds:
- string
timeoutClientData: 0
timeoutMemberConnect: 0
timeoutMemberData: 0
timeouts:
create: string
delete: string
update: string
userLists:
- encryptedPassword: string
username: string
Lblistener Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Lblistener resource accepts the following input properties:
- Loadbalancer
Id string - ID of the target load balancer to attach newly created listener.
- Protocol string
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- Protocol
Port double - Port number to listen, between 1 and 65535.
- 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.
- Insert
XForwarded bool - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- Lblistener
Id string - The ID of this resource.
- Name string
- Listener name.
- Project
Id double - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - Project
Name string - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - Region
Id double - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - Region
Name string - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- Timeouts
Lblistener
Timeouts - User
Lists List<LblistenerUser List> - Load balancer listener list of username and encrypted password items.
- Loadbalancer
Id string - ID of the target load balancer to attach newly created listener.
- Protocol string
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- Protocol
Port float64 - Port number to listen, between 1 and 65535.
- 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.
- Insert
XForwarded bool - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- Lblistener
Id string - The ID of this resource.
- Name string
- Listener name.
- Project
Id float64 - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - Project
Name string - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - Region
Id float64 - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - Region
Name string - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- Timeouts
Lblistener
Timeouts Args - User
Lists []LblistenerUser List Args - Load balancer listener list of username and encrypted password items.
- loadbalancer
Id String - ID of the target load balancer to attach newly created listener.
- protocol String
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- protocol
Port Double - Port number to listen, between 1 and 65535.
- 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.
- insert
XForwarded Boolean - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- lblistener
Id String - The ID of this resource.
- name String
- Listener name.
- project
Id Double - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - project
Name String - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - region
Id Double - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - region
Name String - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- timeouts
Lblistener
Timeouts - user
Lists List<LblistenerUser List> - Load balancer listener list of username and encrypted password items.
- loadbalancer
Id string - ID of the target load balancer to attach newly created listener.
- protocol string
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- protocol
Port number - Port number to listen, between 1 and 65535.
- 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.
- insert
XForwarded boolean - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- lblistener
Id string - The ID of this resource.
- name string
- Listener name.
- project
Id number - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - project
Name string - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - region
Id number - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - region
Name string - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- timeouts
Lblistener
Timeouts - user
Lists LblistenerUser List[] - Load balancer listener list of username and encrypted password items.
- loadbalancer_
id str - ID of the target load balancer to attach newly created listener.
- protocol str
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- protocol_
port float - Port number to listen, between 1 and 65535.
- 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.
- insert_
x_ boolforwarded - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- lblistener_
id str - The ID of this resource.
- name str
- Listener name.
- project_
id float - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - project_
name str - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - region_
id float - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - region_
name str - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- timeouts
Lblistener
Timeouts Args - user_
lists Sequence[LblistenerUser List Args] - Load balancer listener list of username and encrypted password items.
- loadbalancer
Id String - ID of the target load balancer to attach newly created listener.
- protocol String
- Available values are 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS', 'PROMETHEUS'
- protocol
Port Number - Port number to listen, between 1 and 65535.
- 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.
- insert
XForwarded Boolean - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- lblistener
Id String - The ID of this resource.
- name String
- Listener name.
- project
Id Number - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - project
Name String - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - region
Id Number - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - region
Name String - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- timeouts Property Map
- user
Lists List<Property Map> - Load balancer listener list of username and encrypted password items.
Outputs
All input properties are implicitly available as output properties. Additionally, the Lblistener resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Datetime when load balancer was updated at the last time.
- Operating
Status string - Operating status of this listener.
- Pool
Count double - Number of pools in this listener.
- Provisioning
Status string - Provisioning status of this listener.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Datetime when load balancer was updated at the last time.
- Operating
Status string - Operating status of this listener.
- Pool
Count float64 - Number of pools in this listener.
- Provisioning
Status string - Provisioning status of this listener.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Datetime when load balancer was updated at the last time.
- operating
Status String - Operating status of this listener.
- pool
Count Double - Number of pools in this listener.
- provisioning
Status String - Provisioning status of this listener.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - Datetime when load balancer was updated at the last time.
- operating
Status string - Operating status of this listener.
- pool
Count number - Number of pools in this listener.
- provisioning
Status string - Provisioning status of this listener.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - Datetime when load balancer was updated at the last time.
- operating_
status str - Operating status of this listener.
- pool_
count float - Number of pools in this listener.
- provisioning_
status str - Provisioning status of this listener.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Datetime when load balancer was updated at the last time.
- operating
Status String - Operating status of this listener.
- pool
Count Number - Number of pools in this listener.
- provisioning
Status String - Provisioning status of this listener.
Look up Existing Lblistener Resource
Get an existing Lblistener resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LblistenerState, opts?: CustomResourceOptions): Lblistener
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_cidrs: Optional[Sequence[str]] = None,
connection_limit: Optional[float] = None,
insert_x_forwarded: Optional[bool] = None,
last_updated: Optional[str] = None,
lblistener_id: Optional[str] = None,
loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
operating_status: Optional[str] = None,
pool_count: Optional[float] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
protocol_port: Optional[float] = None,
provisioning_status: 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,
timeouts: Optional[LblistenerTimeoutsArgs] = None,
user_lists: Optional[Sequence[LblistenerUserListArgs]] = None) -> Lblistener
func GetLblistener(ctx *Context, name string, id IDInput, state *LblistenerState, opts ...ResourceOption) (*Lblistener, error)
public static Lblistener Get(string name, Input<string> id, LblistenerState? state, CustomResourceOptions? opts = null)
public static Lblistener get(String name, Output<String> id, LblistenerState state, CustomResourceOptions options)
resources: _: type: gcore:Lblistener get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- 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.
- Insert
XForwarded bool - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- Last
Updated string - Datetime when load balancer was updated at the last time.
- Lblistener
Id string - The ID of this resource.
- Loadbalancer
Id string - ID of the target load balancer to attach newly created listener.
- Name string
- Listener name.
- Operating
Status string - Operating status of this listener.
- Pool
Count double - Number of pools in this listener.
- Project
Id double - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - Project
Name string - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - 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.
- Region
Id double - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - Region
Name string - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- Timeouts
Lblistener
Timeouts - User
Lists List<LblistenerUser List> - Load balancer listener list of username and encrypted password items.
- 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.
- Insert
XForwarded bool - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- Last
Updated string - Datetime when load balancer was updated at the last time.
- Lblistener
Id string - The ID of this resource.
- Loadbalancer
Id string - ID of the target load balancer to attach newly created listener.
- Name string
- Listener name.
- Operating
Status string - Operating status of this listener.
- Pool
Count float64 - Number of pools in this listener.
- Project
Id float64 - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - Project
Name string - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - 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.
- Region
Id float64 - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - Region
Name string - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- Timeouts
Lblistener
Timeouts Args - User
Lists []LblistenerUser List Args - Load balancer listener list of username and encrypted password items.
- 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.
- insert
XForwarded Boolean - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- last
Updated String - Datetime when load balancer was updated at the last time.
- lblistener
Id String - The ID of this resource.
- loadbalancer
Id String - ID of the target load balancer to attach newly created listener.
- name String
- Listener name.
- operating
Status String - Operating status of this listener.
- pool
Count Double - Number of pools in this listener.
- project
Id Double - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - project
Name String - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - 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.
- region
Id Double - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - region
Name String - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- timeouts
Lblistener
Timeouts - user
Lists List<LblistenerUser List> - Load balancer listener list of username and encrypted password items.
- 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.
- insert
XForwarded boolean - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- last
Updated string - Datetime when load balancer was updated at the last time.
- lblistener
Id string - The ID of this resource.
- loadbalancer
Id string - ID of the target load balancer to attach newly created listener.
- name string
- Listener name.
- operating
Status string - Operating status of this listener.
- pool
Count number - Number of pools in this listener.
- project
Id number - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - project
Name string - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - 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.
- region
Id number - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - region
Name string - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- timeouts
Lblistener
Timeouts - user
Lists LblistenerUser List[] - Load balancer listener list of username and encrypted password items.
- 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.
- insert_
x_ boolforwarded - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- last_
updated str - Datetime when load balancer was updated at the last time.
- lblistener_
id str - The ID of this resource.
- loadbalancer_
id str - ID of the target load balancer to attach newly created listener.
- name str
- Listener name.
- operating_
status str - Operating status of this listener.
- pool_
count float - Number of pools in this listener.
- project_
id float - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - project_
name str - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - 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.
- region_
id float - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - region_
name str - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- timeouts
Lblistener
Timeouts Args - user_
lists Sequence[LblistenerUser List Args] - Load balancer listener list of username and encrypted password items.
- 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.
- insert
XForwarded Boolean - Insert X-Forwarded headers for 'HTTP', 'HTTPS', 'TERMINATED_HTTPS' protocols.
- last
Updated String - Datetime when load balancer was updated at the last time.
- lblistener
Id String - The ID of this resource.
- loadbalancer
Id String - ID of the target load balancer to attach newly created listener.
- name String
- Listener name.
- operating
Status String - Operating status of this listener.
- pool
Count Number - Number of pools in this listener.
- project
Id Number - ID of the desired project to create load balancer listener in. Alternative for
project_name
. One of them should be specified. - project
Name String - Name of the desired project to create load balancer listener in. Alternative for
project_id
. One of them should be specified. - 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.
- region
Id Number - ID of the desired region to create load balancer listener in. Alternative for
region_name
. One of them should be specified. - region
Name String - Name of the desired region to create load balancer listener in. Alternative for
region_id
. One of them should be specified. - 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.
- timeouts Property Map
- user
Lists List<Property Map> - Load balancer listener list of username and encrypted password items.
Supporting Types
LblistenerTimeouts, LblistenerTimeoutsArgs
LblistenerUserList, LblistenerUserListArgs
- 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
Import
import using <project_id>:<region_id>:<lblistener_id>:<loadbalancer_id> format
$ pulumi import gcore:index/lblistener:Lblistener lblistener1 1:6:a775dd94-4e9c-4da7-9f0e-ffc9ae34446b:447d2959-8ae0-4ca0-8d47-9f050a3637d7
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.