ibm.IsLbListener
Explore with Pulumi AI
Create, update, or delete a listener for a VPC load balancer. For more information, about load balancer listener, see working with listeners.
Note
When provisioning the load balancer listener along with load balancer pool or pool member, Use explicit depends on the resources or perform the pulumi up with parallelism. For more information, about explicit dependencies, see create resource dependencies.
VPC infrastructure services are a regional specific based endpoint, by default targets to
us-south
. Please make sure to target right region in the provider block as shown in theprovider.tf
file, if VPC service is created in region other thanus-south
.provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
using System.Collections.Generic; using System.Linq; using Pulumi; return await Deployment.RunAsync(() => { });
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; 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) { } }
{}
Sample to create a load balancer listener with
https_redirect
.import * as pulumi from "@pulumi/pulumi"; import * as ibm from "@pulumi/ibm"; const example2IsLb = new ibm.IsLb("example2IsLb", {subnets: [ibm_is_subnet.example.id]}); const example1 = new ibm.IsLbListener("example1", { lb: example2IsLb.isLbId, port: 9086, protocol: "https", certificateInstance: "crn:v1:bluemix:public:cloudcerts:us-south:a2d1bace7b46e4815a81e52c6ffeba5cf:af925157-b125-4db2-b642-adacb8b9c7f5:certificate:c81627a1bf6f766379cc4b98fd2a44ed", }); const example2IsLbListener = new ibm.IsLbListener("example2IsLbListener", { lb: example2IsLb.isLbId, port: 9087, protocol: "http", idleConnectionTimeout: 60, httpsRedirect: { httpStatusCode: 302, listener: { id: example1.listenerId, }, uri: "/example?doc=get", }, });
import pulumi import pulumi_ibm as ibm example2_is_lb = ibm.IsLb("example2IsLb", subnets=[ibm_is_subnet["example"]["id"]]) example1 = ibm.IsLbListener("example1", lb=example2_is_lb.is_lb_id, port=9086, protocol="https", certificate_instance="crn:v1:bluemix:public:cloudcerts:us-south:a2d1bace7b46e4815a81e52c6ffeba5cf:af925157-b125-4db2-b642-adacb8b9c7f5:certificate:c81627a1bf6f766379cc4b98fd2a44ed") example2_is_lb_listener = ibm.IsLbListener("example2IsLbListener", lb=example2_is_lb.is_lb_id, port=9087, protocol="http", idle_connection_timeout=60, https_redirect={ "http_status_code": 302, "listener": { "id": example1.listener_id, }, "uri": "/example?doc=get", })
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { example2IsLb, err := ibm.NewIsLb(ctx, "example2IsLb", &ibm.IsLbArgs{ Subnets: pulumi.StringArray{ ibm_is_subnet.Example.Id, }, }) if err != nil { return err } example1, err := ibm.NewIsLbListener(ctx, "example1", &ibm.IsLbListenerArgs{ Lb: example2IsLb.IsLbId, Port: pulumi.Float64(9086), Protocol: pulumi.String("https"), CertificateInstance: pulumi.String("crn:v1:bluemix:public:cloudcerts:us-south:a2d1bace7b46e4815a81e52c6ffeba5cf:af925157-b125-4db2-b642-adacb8b9c7f5:certificate:c81627a1bf6f766379cc4b98fd2a44ed"), }) if err != nil { return err } _, err = ibm.NewIsLbListener(ctx, "example2IsLbListener", &ibm.IsLbListenerArgs{ Lb: example2IsLb.IsLbId, Port: pulumi.Float64(9087), Protocol: pulumi.String("http"), IdleConnectionTimeout: pulumi.Float64(60), HttpsRedirect: &ibm.IsLbListenerHttpsRedirectArgs{ HttpStatusCode: pulumi.Float64(302), Listener: &ibm.IsLbListenerHttpsRedirectListenerArgs{ Id: example1.ListenerId, }, Uri: pulumi.String("/example?doc=get"), }, }) if err != nil { return err } return nil }) }
using System.Collections.Generic; using System.Linq; using Pulumi; using Ibm = Pulumi.Ibm; return await Deployment.RunAsync(() => { var example2IsLb = new Ibm.IsLb("example2IsLb", new() { Subnets = new[] { ibm_is_subnet.Example.Id, }, }); var example1 = new Ibm.IsLbListener("example1", new() { Lb = example2IsLb.IsLbId, Port = 9086, Protocol = "https", CertificateInstance = "crn:v1:bluemix:public:cloudcerts:us-south:a2d1bace7b46e4815a81e52c6ffeba5cf:af925157-b125-4db2-b642-adacb8b9c7f5:certificate:c81627a1bf6f766379cc4b98fd2a44ed", }); var example2IsLbListener = new Ibm.IsLbListener("example2IsLbListener", new() { Lb = example2IsLb.IsLbId, Port = 9087, Protocol = "http", IdleConnectionTimeout = 60, HttpsRedirect = new Ibm.Inputs.IsLbListenerHttpsRedirectArgs { HttpStatusCode = 302, Listener = new Ibm.Inputs.IsLbListenerHttpsRedirectListenerArgs { Id = example1.ListenerId, }, Uri = "/example?doc=get", }, }); });
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.ibm.IsLb; import com.pulumi.ibm.IsLbArgs; import com.pulumi.ibm.IsLbListener; import com.pulumi.ibm.IsLbListenerArgs; import com.pulumi.ibm.inputs.IsLbListenerHttpsRedirectArgs; import com.pulumi.ibm.inputs.IsLbListenerHttpsRedirectListenerArgs; 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 example2IsLb = new IsLb("example2IsLb", IsLbArgs.builder() .subnets(ibm_is_subnet.example().id()) .build()); var example1 = new IsLbListener("example1", IsLbListenerArgs.builder() .lb(example2IsLb.isLbId()) .port("9086") .protocol("https") .certificateInstance("crn:v1:bluemix:public:cloudcerts:us-south:a2d1bace7b46e4815a81e52c6ffeba5cf:af925157-b125-4db2-b642-adacb8b9c7f5:certificate:c81627a1bf6f766379cc4b98fd2a44ed") .build()); var example2IsLbListener = new IsLbListener("example2IsLbListener", IsLbListenerArgs.builder() .lb(example2IsLb.isLbId()) .port("9087") .protocol("http") .idleConnectionTimeout(60) .httpsRedirect(IsLbListenerHttpsRedirectArgs.builder() .httpStatusCode(302) .listener(IsLbListenerHttpsRedirectListenerArgs.builder() .id(example1.listenerId()) .build()) .uri("/example?doc=get") .build()) .build()); } }
resources: example2IsLb: type: ibm:IsLb properties: subnets: - ${ibm_is_subnet.example.id} example1: type: ibm:IsLbListener properties: lb: ${example2IsLb.isLbId} port: '9086' protocol: https certificateInstance: crn:v1:bluemix:public:cloudcerts:us-south:a2d1bace7b46e4815a81e52c6ffeba5cf:af925157-b125-4db2-b642-adacb8b9c7f5:certificate:c81627a1bf6f766379cc4b98fd2a44ed example2IsLbListener: type: ibm:IsLbListener properties: lb: ${example2IsLb.isLbId} port: '9087' protocol: http idleConnectionTimeout: 60 httpsRedirect: httpStatusCode: 302 listener: id: ${example1.listenerId} uri: /example?doc=get
Sample to create a load balancer listener for a route mode enabled private network load balancer.
import * as pulumi from "@pulumi/pulumi"; import * as ibm from "@pulumi/ibm"; const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {}); const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", { vpc: exampleIsVpc.isVpcId, zone: "us-south-2", ipv4CidrBlock: "10.240.68.0/24", }); const exampleIsLb = new ibm.IsLb("exampleIsLb", { subnets: [exampleIsSubnet.isSubnetId], profile: "network-fixed", type: "private", routeMode: true, }); const exampleIsLbListener = new ibm.IsLbListener("exampleIsLbListener", { lb: exampleIsLb.isLbId, protocol: "tcp", defaultPool: ibm_is_lb_pool.example.id, });
import pulumi import pulumi_ibm as ibm example_is_vpc = ibm.IsVpc("exampleIsVpc") example_is_subnet = ibm.IsSubnet("exampleIsSubnet", vpc=example_is_vpc.is_vpc_id, zone="us-south-2", ipv4_cidr_block="10.240.68.0/24") example_is_lb = ibm.IsLb("exampleIsLb", subnets=[example_is_subnet.is_subnet_id], profile="network-fixed", type="private", route_mode=True) example_is_lb_listener = ibm.IsLbListener("exampleIsLbListener", lb=example_is_lb.is_lb_id, protocol="tcp", default_pool=ibm_is_lb_pool["example"]["id"])
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil) if err != nil { return err } exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{ Vpc: exampleIsVpc.IsVpcId, Zone: pulumi.String("us-south-2"), Ipv4CidrBlock: pulumi.String("10.240.68.0/24"), }) if err != nil { return err } exampleIsLb, err := ibm.NewIsLb(ctx, "exampleIsLb", &ibm.IsLbArgs{ Subnets: pulumi.StringArray{ exampleIsSubnet.IsSubnetId, }, Profile: pulumi.String("network-fixed"), Type: pulumi.String("private"), RouteMode: pulumi.Bool(true), }) if err != nil { return err } _, err = ibm.NewIsLbListener(ctx, "exampleIsLbListener", &ibm.IsLbListenerArgs{ Lb: exampleIsLb.IsLbId, Protocol: pulumi.String("tcp"), DefaultPool: pulumi.Any(ibm_is_lb_pool.Example.Id), }) if err != nil { return err } return nil }) }
using System.Collections.Generic; using System.Linq; using Pulumi; using Ibm = Pulumi.Ibm; return await Deployment.RunAsync(() => { var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc"); var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new() { Vpc = exampleIsVpc.IsVpcId, Zone = "us-south-2", Ipv4CidrBlock = "10.240.68.0/24", }); var exampleIsLb = new Ibm.IsLb("exampleIsLb", new() { Subnets = new[] { exampleIsSubnet.IsSubnetId, }, Profile = "network-fixed", Type = "private", RouteMode = true, }); var exampleIsLbListener = new Ibm.IsLbListener("exampleIsLbListener", new() { Lb = exampleIsLb.IsLbId, Protocol = "tcp", DefaultPool = ibm_is_lb_pool.Example.Id, }); });
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.ibm.IsVpc; import com.pulumi.ibm.IsSubnet; import com.pulumi.ibm.IsSubnetArgs; import com.pulumi.ibm.IsLb; import com.pulumi.ibm.IsLbArgs; import com.pulumi.ibm.IsLbListener; import com.pulumi.ibm.IsLbListenerArgs; 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 exampleIsVpc = new IsVpc("exampleIsVpc"); var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder() .vpc(exampleIsVpc.isVpcId()) .zone("us-south-2") .ipv4CidrBlock("10.240.68.0/24") .build()); var exampleIsLb = new IsLb("exampleIsLb", IsLbArgs.builder() .subnets(exampleIsSubnet.isSubnetId()) .profile("network-fixed") .type("private") .routeMode("true") .build()); var exampleIsLbListener = new IsLbListener("exampleIsLbListener", IsLbListenerArgs.builder() .lb(exampleIsLb.isLbId()) .protocol("tcp") .defaultPool(ibm_is_lb_pool.example().id()) .build()); } }
resources: exampleIsVpc: type: ibm:IsVpc exampleIsSubnet: type: ibm:IsSubnet properties: vpc: ${exampleIsVpc.isVpcId} zone: us-south-2 ipv4CidrBlock: 10.240.68.0/24 exampleIsLb: type: ibm:IsLb properties: subnets: - ${exampleIsSubnet.isSubnetId} profile: network-fixed type: private routeMode: 'true' exampleIsLbListener: type: ibm:IsLbListener properties: lb: ${exampleIsLb.isLbId} protocol: tcp defaultPool: ${ibm_is_lb_pool.example.id}
Sample to create a public load balancer listener with range of ports.
import * as pulumi from "@pulumi/pulumi"; import * as ibm from "@pulumi/ibm"; const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {}); const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", { vpc: exampleIsVpc.isVpcId, zone: "us-south-2", ipv4CidrBlock: "10.240.68.0/24", }); const exampleIsLb = new ibm.IsLb("exampleIsLb", { subnets: [exampleIsSubnet.isSubnetId], profile: "network-fixed", type: "public", }); const example1 = new ibm.IsLbListener("example1", { lb: exampleIsLb.isLbId, protocol: "tcp", portMin: 100, portMax: 200, }); const example2 = new ibm.IsLbListener("example2", { lb: exampleIsLb.isLbId, protocol: "tcp", portMin: 300, portMax: 400, });
import pulumi import pulumi_ibm as ibm example_is_vpc = ibm.IsVpc("exampleIsVpc") example_is_subnet = ibm.IsSubnet("exampleIsSubnet", vpc=example_is_vpc.is_vpc_id, zone="us-south-2", ipv4_cidr_block="10.240.68.0/24") example_is_lb = ibm.IsLb("exampleIsLb", subnets=[example_is_subnet.is_subnet_id], profile="network-fixed", type="public") example1 = ibm.IsLbListener("example1", lb=example_is_lb.is_lb_id, protocol="tcp", port_min=100, port_max=200) example2 = ibm.IsLbListener("example2", lb=example_is_lb.is_lb_id, protocol="tcp", port_min=300, port_max=400)
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil) if err != nil { return err } exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{ Vpc: exampleIsVpc.IsVpcId, Zone: pulumi.String("us-south-2"), Ipv4CidrBlock: pulumi.String("10.240.68.0/24"), }) if err != nil { return err } exampleIsLb, err := ibm.NewIsLb(ctx, "exampleIsLb", &ibm.IsLbArgs{ Subnets: pulumi.StringArray{ exampleIsSubnet.IsSubnetId, }, Profile: pulumi.String("network-fixed"), Type: pulumi.String("public"), }) if err != nil { return err } _, err = ibm.NewIsLbListener(ctx, "example1", &ibm.IsLbListenerArgs{ Lb: exampleIsLb.IsLbId, Protocol: pulumi.String("tcp"), PortMin: pulumi.Float64(100), PortMax: pulumi.Float64(200), }) if err != nil { return err } _, err = ibm.NewIsLbListener(ctx, "example2", &ibm.IsLbListenerArgs{ Lb: exampleIsLb.IsLbId, Protocol: pulumi.String("tcp"), PortMin: pulumi.Float64(300), PortMax: pulumi.Float64(400), }) if err != nil { return err } return nil }) }
using System.Collections.Generic; using System.Linq; using Pulumi; using Ibm = Pulumi.Ibm; return await Deployment.RunAsync(() => { var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc"); var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new() { Vpc = exampleIsVpc.IsVpcId, Zone = "us-south-2", Ipv4CidrBlock = "10.240.68.0/24", }); var exampleIsLb = new Ibm.IsLb("exampleIsLb", new() { Subnets = new[] { exampleIsSubnet.IsSubnetId, }, Profile = "network-fixed", Type = "public", }); var example1 = new Ibm.IsLbListener("example1", new() { Lb = exampleIsLb.IsLbId, Protocol = "tcp", PortMin = 100, PortMax = 200, }); var example2 = new Ibm.IsLbListener("example2", new() { Lb = exampleIsLb.IsLbId, Protocol = "tcp", PortMin = 300, PortMax = 400, }); });
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.ibm.IsVpc; import com.pulumi.ibm.IsSubnet; import com.pulumi.ibm.IsSubnetArgs; import com.pulumi.ibm.IsLb; import com.pulumi.ibm.IsLbArgs; import com.pulumi.ibm.IsLbListener; import com.pulumi.ibm.IsLbListenerArgs; 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 exampleIsVpc = new IsVpc("exampleIsVpc"); var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder() .vpc(exampleIsVpc.isVpcId()) .zone("us-south-2") .ipv4CidrBlock("10.240.68.0/24") .build()); var exampleIsLb = new IsLb("exampleIsLb", IsLbArgs.builder() .subnets(exampleIsSubnet.isSubnetId()) .profile("network-fixed") .type("public") .build()); var example1 = new IsLbListener("example1", IsLbListenerArgs.builder() .lb(exampleIsLb.isLbId()) .protocol("tcp") .portMin(100) .portMax(200) .build()); var example2 = new IsLbListener("example2", IsLbListenerArgs.builder() .lb(exampleIsLb.isLbId()) .protocol("tcp") .portMin(300) .portMax(400) .build()); } }
resources: exampleIsVpc: type: ibm:IsVpc exampleIsSubnet: type: ibm:IsSubnet properties: vpc: ${exampleIsVpc.isVpcId} zone: us-south-2 ipv4CidrBlock: 10.240.68.0/24 exampleIsLb: type: ibm:IsLb properties: subnets: - ${exampleIsSubnet.isSubnetId} profile: network-fixed type: public example1: type: ibm:IsLbListener properties: lb: ${exampleIsLb.isLbId} protocol: tcp portMin: 100 portMax: 200 example2: type: ibm:IsLbListener properties: lb: ${exampleIsLb.isLbId} protocol: tcp portMin: 300 portMax: 400
Example to create a listener with
Create IsLbListener Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsLbListener(name: string, args: IsLbListenerArgs, opts?: CustomResourceOptions);
@overload def IsLbListener(resource_name: str, args: IsLbListenerArgs, opts: Optional[ResourceOptions] = None) @overload def IsLbListener(resource_name: str, opts: Optional[ResourceOptions] = None, lb: Optional[str] = None, protocol: Optional[str] = None, idle_connection_timeout: Optional[float] = None, is_lb_listener_id: Optional[str] = None, https_redirect: Optional[IsLbListenerHttpsRedirectArgs] = None, https_redirect_listener: Optional[str] = None, https_redirect_status_code: Optional[float] = None, https_redirect_uri: Optional[str] = None, accept_proxy_protocol: Optional[bool] = None, default_pool: Optional[str] = None, connection_limit: Optional[float] = None, port: Optional[float] = None, port_max: Optional[float] = None, port_min: Optional[float] = None, certificate_instance: Optional[str] = None, timeouts: Optional[IsLbListenerTimeoutsArgs] = None)
func NewIsLbListener(ctx *Context, name string, args IsLbListenerArgs, opts ...ResourceOption) (*IsLbListener, error)
public IsLbListener(string name, IsLbListenerArgs args, CustomResourceOptions? opts = null)
public IsLbListener(String name, IsLbListenerArgs args) public IsLbListener(String name, IsLbListenerArgs args, CustomResourceOptions options)
type: ibm:IsLbListener 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 IsLbListenerArgs
- 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 IsLbListenerArgs
- 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 IsLbListenerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsLbListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsLbListenerArgs
- 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 isLbListenerResource = new Ibm.IsLbListener("isLbListenerResource", new() { Lb = "string", Protocol = "string", IdleConnectionTimeout = 0, IsLbListenerId = "string", HttpsRedirect = new Ibm.Inputs.IsLbListenerHttpsRedirectArgs { HttpStatusCode = 0, Listener = new Ibm.Inputs.IsLbListenerHttpsRedirectListenerArgs { Id = "string", Deleteds = new[] { new Ibm.Inputs.IsLbListenerHttpsRedirectListenerDeletedArgs { MoreInfo = "string", }, }, Href = "string", }, Uri = "string", }, AcceptProxyProtocol = false, DefaultPool = "string", ConnectionLimit = 0, Port = 0, PortMax = 0, PortMin = 0, CertificateInstance = "string", Timeouts = new Ibm.Inputs.IsLbListenerTimeoutsArgs { Create = "string", Delete = "string", Update = "string", }, });
example, err := ibm.NewIsLbListener(ctx, "isLbListenerResource", &ibm.IsLbListenerArgs{ Lb: pulumi.String("string"), Protocol: pulumi.String("string"), IdleConnectionTimeout: pulumi.Float64(0), IsLbListenerId: pulumi.String("string"), HttpsRedirect: &ibm.IsLbListenerHttpsRedirectArgs{ HttpStatusCode: pulumi.Float64(0), Listener: &ibm.IsLbListenerHttpsRedirectListenerArgs{ Id: pulumi.String("string"), Deleteds: ibm.IsLbListenerHttpsRedirectListenerDeletedArray{ &ibm.IsLbListenerHttpsRedirectListenerDeletedArgs{ MoreInfo: pulumi.String("string"), }, }, Href: pulumi.String("string"), }, Uri: pulumi.String("string"), }, AcceptProxyProtocol: pulumi.Bool(false), DefaultPool: pulumi.String("string"), ConnectionLimit: pulumi.Float64(0), Port: pulumi.Float64(0), PortMax: pulumi.Float64(0), PortMin: pulumi.Float64(0), CertificateInstance: pulumi.String("string"), Timeouts: &ibm.IsLbListenerTimeoutsArgs{ Create: pulumi.String("string"), Delete: pulumi.String("string"), Update: pulumi.String("string"), }, })
var isLbListenerResource = new IsLbListener("isLbListenerResource", IsLbListenerArgs.builder() .lb("string") .protocol("string") .idleConnectionTimeout(0) .isLbListenerId("string") .httpsRedirect(IsLbListenerHttpsRedirectArgs.builder() .httpStatusCode(0) .listener(IsLbListenerHttpsRedirectListenerArgs.builder() .id("string") .deleteds(IsLbListenerHttpsRedirectListenerDeletedArgs.builder() .moreInfo("string") .build()) .href("string") .build()) .uri("string") .build()) .acceptProxyProtocol(false) .defaultPool("string") .connectionLimit(0) .port(0) .portMax(0) .portMin(0) .certificateInstance("string") .timeouts(IsLbListenerTimeoutsArgs.builder() .create("string") .delete("string") .update("string") .build()) .build());
is_lb_listener_resource = ibm.IsLbListener("isLbListenerResource", lb="string", protocol="string", idle_connection_timeout=0, is_lb_listener_id="string", https_redirect={ "http_status_code": 0, "listener": { "id": "string", "deleteds": [{ "more_info": "string", }], "href": "string", }, "uri": "string", }, accept_proxy_protocol=False, default_pool="string", connection_limit=0, port=0, port_max=0, port_min=0, certificate_instance="string", timeouts={ "create": "string", "delete": "string", "update": "string", })
const isLbListenerResource = new ibm.IsLbListener("isLbListenerResource", { lb: "string", protocol: "string", idleConnectionTimeout: 0, isLbListenerId: "string", httpsRedirect: { httpStatusCode: 0, listener: { id: "string", deleteds: [{ moreInfo: "string", }], href: "string", }, uri: "string", }, acceptProxyProtocol: false, defaultPool: "string", connectionLimit: 0, port: 0, portMax: 0, portMin: 0, certificateInstance: "string", timeouts: { create: "string", "delete": "string", update: "string", }, });
type: ibm:IsLbListener properties: acceptProxyProtocol: false certificateInstance: string connectionLimit: 0 defaultPool: string httpsRedirect: httpStatusCode: 0 listener: deleteds: - moreInfo: string href: string id: string uri: string idleConnectionTimeout: 0 isLbListenerId: string lb: string port: 0 portMax: 0 portMin: 0 protocol: string timeouts: create: string delete: string update: string
IsLbListener 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 IsLbListener resource accepts the following input properties:
- Lb string
- The load balancer unique identifier.
- Protocol string
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - Accept
Proxy boolProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- Certificate
Instance string The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- Connection
Limit double - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - Default
Pool string The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- Https
Redirect IsLb Listener Https Redirect If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- Https
Redirect stringListener - ID of the listener that will be set as http redirect target.
- Https
Redirect doubleStatus Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- Https
Redirect stringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- Idle
Connection doubleTimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - Is
Lb stringListener Id - (String) The unique identifier for this load balancer listener.
- Port double
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- Port
Max double The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- Port
Min double The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- Timeouts
Is
Lb Listener Timeouts
- Lb string
- The load balancer unique identifier.
- Protocol string
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - Accept
Proxy boolProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- Certificate
Instance string The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- Connection
Limit float64 - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - Default
Pool string The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- Https
Redirect IsLb Listener Https Redirect Args If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- Https
Redirect stringListener - ID of the listener that will be set as http redirect target.
- Https
Redirect float64Status Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- Https
Redirect stringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- Idle
Connection float64Timeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - Is
Lb stringListener Id - (String) The unique identifier for this load balancer listener.
- Port float64
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- Port
Max float64 The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- Port
Min float64 The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- Timeouts
Is
Lb Listener Timeouts Args
- lb String
- The load balancer unique identifier.
- protocol String
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - accept
Proxy BooleanProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- certificate
Instance String The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- connection
Limit Double - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - default
Pool String The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- https
Redirect IsLb Listener Https Redirect If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- https
Redirect StringListener - ID of the listener that will be set as http redirect target.
- https
Redirect DoubleStatus Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- https
Redirect StringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- idle
Connection DoubleTimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - is
Lb StringListener Id - (String) The unique identifier for this load balancer listener.
- port Double
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- port
Max Double The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- port
Min Double The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- timeouts
Is
Lb Listener Timeouts
- lb string
- The load balancer unique identifier.
- protocol string
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - accept
Proxy booleanProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- certificate
Instance string The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- connection
Limit number - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - default
Pool string The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- https
Redirect IsLb Listener Https Redirect If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- https
Redirect stringListener - ID of the listener that will be set as http redirect target.
- https
Redirect numberStatus Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- https
Redirect stringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- idle
Connection numberTimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - is
Lb stringListener Id - (String) The unique identifier for this load balancer listener.
- port number
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- port
Max number The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- port
Min number The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- timeouts
Is
Lb Listener Timeouts
- lb str
- The load balancer unique identifier.
- protocol str
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - accept_
proxy_ boolprotocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- certificate_
instance str The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- connection_
limit float - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - default_
pool str The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- https_
redirect IsLb Listener Https Redirect Args If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- https_
redirect_ strlistener - ID of the listener that will be set as http redirect target.
- https_
redirect_ floatstatus_ code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- https_
redirect_ struri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- idle_
connection_ floattimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - is_
lb_ strlistener_ id - (String) The unique identifier for this load balancer listener.
- port float
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- port_
max float The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- port_
min float The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- timeouts
Is
Lb Listener Timeouts Args
- lb String
- The load balancer unique identifier.
- protocol String
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - accept
Proxy BooleanProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- certificate
Instance String The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- connection
Limit Number - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - default
Pool String The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- https
Redirect Property Map If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- https
Redirect StringListener - ID of the listener that will be set as http redirect target.
- https
Redirect NumberStatus Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- https
Redirect StringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- idle
Connection NumberTimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - is
Lb StringListener Id - (String) The unique identifier for this load balancer listener.
- port Number
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- port
Max Number The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- port
Min Number The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the IsLbListener resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - string
- The crn of the LB resource
- Status string
- (String) The status of load balancer listener.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - string
- The crn of the LB resource
- Status string
- (String) The status of load balancer listener.
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - String
- The crn of the LB resource
- status String
- (String) The status of load balancer listener.
- id string
- The provider-assigned unique ID for this managed resource.
- listener
Id string - string
- The crn of the LB resource
- status string
- (String) The status of load balancer listener.
- id str
- The provider-assigned unique ID for this managed resource.
- listener_
id str - str
- The crn of the LB resource
- status str
- (String) The status of load balancer listener.
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - String
- The crn of the LB resource
- status String
- (String) The status of load balancer listener.
Look up Existing IsLbListener Resource
Get an existing IsLbListener 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?: IsLbListenerState, opts?: CustomResourceOptions): IsLbListener
@staticmethod def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, accept_proxy_protocol: Optional[bool] = None, certificate_instance: Optional[str] = None, connection_limit: Optional[float] = None, default_pool: Optional[str] = None, https_redirect: Optional[IsLbListenerHttpsRedirectArgs] = None, https_redirect_listener: Optional[str] = None, https_redirect_status_code: Optional[float] = None, https_redirect_uri: Optional[str] = None, idle_connection_timeout: Optional[float] = None, is_lb_listener_id: Optional[str] = None, lb: Optional[str] = None, listener_id: Optional[str] = None, port: Optional[float] = None, port_max: Optional[float] = None, port_min: Optional[float] = None, protocol: Optional[str] = None, related_crn: Optional[str] = None, status: Optional[str] = None, timeouts: Optional[IsLbListenerTimeoutsArgs] = None) -> IsLbListener
func GetIsLbListener(ctx *Context, name string, id IDInput, state *IsLbListenerState, opts ...ResourceOption) (*IsLbListener, error)
public static IsLbListener Get(string name, Input<string> id, IsLbListenerState? state, CustomResourceOptions? opts = null)
public static IsLbListener get(String name, Output<String> id, IsLbListenerState state, CustomResourceOptions options)
resources: _: type: ibm:IsLbListener 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.
The following state arguments are supported: - Accept
Proxy boolProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- Certificate
Instance string The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- Connection
Limit double - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - Default
Pool string The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- Https
Redirect IsLb Listener Https Redirect If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- Https
Redirect stringListener - ID of the listener that will be set as http redirect target.
- Https
Redirect doubleStatus Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- Https
Redirect stringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- Idle
Connection doubleTimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - Is
Lb stringListener Id - (String) The unique identifier for this load balancer listener.
- Lb string
- The load balancer unique identifier.
- Listener
Id string - Port double
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- Port
Max double The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- Port
Min double The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- Protocol string
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - string
- The crn of the LB resource
- Status string
- (String) The status of load balancer listener.
- Timeouts
Is
Lb Listener Timeouts
- Accept
Proxy boolProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- Certificate
Instance string The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- Connection
Limit float64 - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - Default
Pool string The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- Https
Redirect IsLb Listener Https Redirect Args If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- Https
Redirect stringListener - ID of the listener that will be set as http redirect target.
- Https
Redirect float64Status Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- Https
Redirect stringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- Idle
Connection float64Timeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - Is
Lb stringListener Id - (String) The unique identifier for this load balancer listener.
- Lb string
- The load balancer unique identifier.
- Listener
Id string - Port float64
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- Port
Max float64 The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- Port
Min float64 The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- Protocol string
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - string
- The crn of the LB resource
- Status string
- (String) The status of load balancer listener.
- Timeouts
Is
Lb Listener Timeouts Args
- accept
Proxy BooleanProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- certificate
Instance String The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- connection
Limit Double - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - default
Pool String The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- https
Redirect IsLb Listener Https Redirect If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- https
Redirect StringListener - ID of the listener that will be set as http redirect target.
- https
Redirect DoubleStatus Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- https
Redirect StringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- idle
Connection DoubleTimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - is
Lb StringListener Id - (String) The unique identifier for this load balancer listener.
- lb String
- The load balancer unique identifier.
- listener
Id String - port Double
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- port
Max Double The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- port
Min Double The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- protocol String
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - String
- The crn of the LB resource
- status String
- (String) The status of load balancer listener.
- timeouts
Is
Lb Listener Timeouts
- accept
Proxy booleanProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- certificate
Instance string The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- connection
Limit number - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - default
Pool string The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- https
Redirect IsLb Listener Https Redirect If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- https
Redirect stringListener - ID of the listener that will be set as http redirect target.
- https
Redirect numberStatus Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- https
Redirect stringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- idle
Connection numberTimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - is
Lb stringListener Id - (String) The unique identifier for this load balancer listener.
- lb string
- The load balancer unique identifier.
- listener
Id string - port number
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- port
Max number The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- port
Min number The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- protocol string
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - string
- The crn of the LB resource
- status string
- (String) The status of load balancer listener.
- timeouts
Is
Lb Listener Timeouts
- accept_
proxy_ boolprotocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- certificate_
instance str The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- connection_
limit float - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - default_
pool str The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- https_
redirect IsLb Listener Https Redirect Args If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- https_
redirect_ strlistener - ID of the listener that will be set as http redirect target.
- https_
redirect_ floatstatus_ code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- https_
redirect_ struri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- idle_
connection_ floattimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - is_
lb_ strlistener_ id - (String) The unique identifier for this load balancer listener.
- lb str
- The load balancer unique identifier.
- listener_
id str - port float
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- port_
max float The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- port_
min float The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- protocol str
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - str
- The crn of the LB resource
- status str
- (String) The status of load balancer listener.
- timeouts
Is
Lb Listener Timeouts Args
- accept
Proxy BooleanProtocol - If set to true, listener forwards proxy protocol information that are supported by load balancers in the application family. Default value is false.
- certificate
Instance String The CRN of the certificate instance, it is applicable(mandatory) only to https protocol.
!> Removal Notification Certificate Manager support is removed, please use Secrets Manager.
- connection
Limit Number - The connection limit of the listener. Valid range is 1 to 15000. Network load balancer do not support
connection_limit
argument. - default
Pool String The load balancer pool unique identifier.
The specified pool must • Belong to this load balancer • Have the same protocol as this listener, or have a compatible protocol. At present, the compatible protocols are http and https. • Not already be the default_pool for another listener
- https
Redirect Property Map If present, the target listener that requests are redirected to. Removing
https_redirect
would update the load balancer listener and disable thehttps_redirect
Nested schema for https_redirect:
- https
Redirect StringListener - ID of the listener that will be set as http redirect target.
- https
Redirect NumberStatus Code - The HTTP status code to be returned in the redirect response, one of [301, 302, 303, 307, 308].
- https
Redirect StringUri Target URI where traffic will be redirected.
~Note
https_redirect_listener
,https_redirect_status_code
andhttps_redirect_uri
are deprecated and will be removed in future. Please usehttps_redirect
instead- idle
Connection NumberTimeout - The idle connection timeout of the listener in seconds. Supported for load balancers in the
application
family. Default value is50
, allowed value is between50
-7200
. - is
Lb StringListener Id - (String) The unique identifier for this load balancer listener.
- lb String
- The load balancer unique identifier.
- listener
Id String - port Number
The listener port number. Valid range
1
to65535
.NOTE Private network load balancers with
route_mode
enabled don't supportport
, they support only one port range fromport_min (1)
-port_max (65535)
. Only accepted value ofport
forroute_mode
enabled private network load balancer is1
. Any other value will show change or update-in-place and returns an error.NOTE Either use
port
or (port_min
-port_max
) for public network load balancers- port
Max Number The inclusive upper bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. Whenroute mode
is enabled, only a value of65535
is supported for port_max.- port
Min Number The inclusive lower bound of the range of ports used by this listener.
NOTE Only load balancers in the
network
family support more than one port per listener. When route mode is enabled, only a value of1
is supported forport_min
.- protocol String
- The listener protocol. Enumeration type are
http
,tcp
,https
andudp
. Network load balancer supports onlytcp
andudp
protocol. - String
- The crn of the LB resource
- status String
- (String) The status of load balancer listener.
- timeouts Property Map
Supporting Types
Is
Lb Listener Https Redirect , Is Lb Listener Https Redirect Args - Http
Status doubleCode - The HTTP status code for this redirect. Allowable values are:
301
,302
,303
,307
,308
. - Listener
Is
Lb Listener Https Redirect Listener - Nested schema for listener:
- Uri string
- The redirect relative target URI. Removing
uri
would update the load balancer listener and remove theuri
fromhttps_redirect
- Http
Status float64Code - The HTTP status code for this redirect. Allowable values are:
301
,302
,303
,307
,308
. - Listener
Is
Lb Listener Https Redirect Listener - Nested schema for listener:
- Uri string
- The redirect relative target URI. Removing
uri
would update the load balancer listener and remove theuri
fromhttps_redirect
- http
Status DoubleCode - The HTTP status code for this redirect. Allowable values are:
301
,302
,303
,307
,308
. - listener
Is
Lb Listener Https Redirect Listener - Nested schema for listener:
- uri String
- The redirect relative target URI. Removing
uri
would update the load balancer listener and remove theuri
fromhttps_redirect
- http
Status numberCode - The HTTP status code for this redirect. Allowable values are:
301
,302
,303
,307
,308
. - listener
Is
Lb Listener Https Redirect Listener - Nested schema for listener:
- uri string
- The redirect relative target URI. Removing
uri
would update the load balancer listener and remove theuri
fromhttps_redirect
- http_
status_ floatcode - The HTTP status code for this redirect. Allowable values are:
301
,302
,303
,307
,308
. - listener
Is
Lb Listener Https Redirect Listener - Nested schema for listener:
- uri str
- The redirect relative target URI. Removing
uri
would update the load balancer listener and remove theuri
fromhttps_redirect
- http
Status NumberCode - The HTTP status code for this redirect. Allowable values are:
301
,302
,303
,307
,308
. - listener Property Map
- Nested schema for listener:
- uri String
- The redirect relative target URI. Removing
uri
would update the load balancer listener and remove theuri
fromhttps_redirect
Is
Lb Listener Https Redirect Listener , Is Lb Listener Https Redirect Listener Args - Id string
- The unique identifier for this load balancer listener.
- Deleteds
List<Is
Lb Listener Https Redirect Listener Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- Href string
- (String) The listener's canonical URL.
- Id string
- The unique identifier for this load balancer listener.
- Deleteds
[]Is
Lb Listener Https Redirect Listener Deleted - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- Href string
- (String) The listener's canonical URL.
- id String
- The unique identifier for this load balancer listener.
- deleteds
List<Is
Lb Listener Https Redirect Listener Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href String
- (String) The listener's canonical URL.
- id string
- The unique identifier for this load balancer listener.
- deleteds
Is
Lb Listener Https Redirect Listener Deleted[] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href string
- (String) The listener's canonical URL.
- id str
- The unique identifier for this load balancer listener.
- deleteds
Sequence[Is
Lb Listener Https Redirect Listener Deleted] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href str
- (String) The listener's canonical URL.
- id String
- The unique identifier for this load balancer listener.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href String
- (String) The listener's canonical URL.
Is
Lb Listener Https Redirect Listener Deleted , Is Lb Listener Https Redirect Listener Deleted Args - More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
Is
Lb Listener Timeouts , Is Lb Listener Timeouts Args Import
The
ibm_is_lb_listener
resource can be imported by using the load balancer ID and listener ID.Syntax
$ pulumi import ibm:index/isLbListener:IsLbListener example <loadbalancer_ID>/<listener_ID>
Example
$ pulumi import ibm:index/isLbListener:IsLbListener example d7bec597-4726-451f-8a63-e61212c32c/cea6651a-bc0a-4438-9f8a-44444f3ebb
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.