ucloud.LbListener
Explore with Pulumi AI
Provides a Load Balancer Listener resource.
Note This
listen_type
only support whenprotocol
istcp
in the extranet mode and the default value isrequest_proxy
. In addition, in the extranet mode, thelisten_type
isrequest_proxy
ifprotocol
ishttp
orhttps
, thelisten_type
ispackets_transmit
ifprotocol
isudp
. In the intranet mode, thelisten_type
ispackets_transmit
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const web = new ucloud.Lb("web", {tag: "tf-example"});
const example = new ucloud.LbListener("example", {
loadBalancerId: web.lbId,
protocol: "http",
});
import pulumi
import pulumi_ucloud as ucloud
web = ucloud.Lb("web", tag="tf-example")
example = ucloud.LbListener("example",
load_balancer_id=web.lb_id,
protocol="http")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
web, err := ucloud.NewLb(ctx, "web", &ucloud.LbArgs{
Tag: pulumi.String("tf-example"),
})
if err != nil {
return err
}
_, err = ucloud.NewLbListener(ctx, "example", &ucloud.LbListenerArgs{
LoadBalancerId: web.LbId,
Protocol: pulumi.String("http"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
var web = new Ucloud.Lb("web", new()
{
Tag = "tf-example",
});
var example = new Ucloud.LbListener("example", new()
{
LoadBalancerId = web.LbId,
Protocol = "http",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.Lb;
import com.pulumi.ucloud.LbArgs;
import com.pulumi.ucloud.LbListener;
import com.pulumi.ucloud.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 web = new Lb("web", LbArgs.builder()
.tag("tf-example")
.build());
var example = new LbListener("example", LbListenerArgs.builder()
.loadBalancerId(web.lbId())
.protocol("http")
.build());
}
}
resources:
web:
type: ucloud:Lb
properties:
tag: tf-example
example:
type: ucloud:LbListener
properties:
loadBalancerId: ${web.lbId}
protocol: http
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,
load_balancer_id: Optional[str] = None,
protocol: Optional[str] = None,
method: Optional[str] = None,
lb_listener_id: Optional[str] = None,
listen_type: Optional[str] = None,
idle_timeout: Optional[float] = None,
domain: Optional[str] = None,
name: Optional[str] = None,
path: Optional[str] = None,
persistence: Optional[str] = None,
persistence_type: Optional[str] = None,
port: Optional[float] = None,
health_check_type: Optional[str] = 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: ucloud: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 Ucloud.LbListener("lbListenerResource", new()
{
LoadBalancerId = "string",
Protocol = "string",
Method = "string",
LbListenerId = "string",
ListenType = "string",
IdleTimeout = 0,
Domain = "string",
Name = "string",
Path = "string",
Persistence = "string",
PersistenceType = "string",
Port = 0,
HealthCheckType = "string",
});
example, err := ucloud.NewLbListener(ctx, "lbListenerResource", &ucloud.LbListenerArgs{
LoadBalancerId: pulumi.String("string"),
Protocol: pulumi.String("string"),
Method: pulumi.String("string"),
LbListenerId: pulumi.String("string"),
ListenType: pulumi.String("string"),
IdleTimeout: pulumi.Float64(0),
Domain: pulumi.String("string"),
Name: pulumi.String("string"),
Path: pulumi.String("string"),
Persistence: pulumi.String("string"),
PersistenceType: pulumi.String("string"),
Port: pulumi.Float64(0),
HealthCheckType: pulumi.String("string"),
})
var lbListenerResource = new LbListener("lbListenerResource", LbListenerArgs.builder()
.loadBalancerId("string")
.protocol("string")
.method("string")
.lbListenerId("string")
.listenType("string")
.idleTimeout(0)
.domain("string")
.name("string")
.path("string")
.persistence("string")
.persistenceType("string")
.port(0)
.healthCheckType("string")
.build());
lb_listener_resource = ucloud.LbListener("lbListenerResource",
load_balancer_id="string",
protocol="string",
method="string",
lb_listener_id="string",
listen_type="string",
idle_timeout=0,
domain="string",
name="string",
path="string",
persistence="string",
persistence_type="string",
port=0,
health_check_type="string")
const lbListenerResource = new ucloud.LbListener("lbListenerResource", {
loadBalancerId: "string",
protocol: "string",
method: "string",
lbListenerId: "string",
listenType: "string",
idleTimeout: 0,
domain: "string",
name: "string",
path: "string",
persistence: "string",
persistenceType: "string",
port: 0,
healthCheckType: "string",
});
type: ucloud:LbListener
properties:
domain: string
healthCheckType: string
idleTimeout: 0
lbListenerId: string
listenType: string
loadBalancerId: string
method: string
name: string
path: string
persistence: string
persistenceType: string
port: 0
protocol: 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:
- Load
Balancer stringId - The ID of load balancer instance.
- Protocol string
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - Domain string
- Health check domain checking.
- Health
Check stringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - Idle
Timeout double - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - Lb
Listener stringId - The ID of the resource lb listener.
- Listen
Type string - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - Method string
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- Name string
- Path string
- Health check path checking.
- Persistence string
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - Persistence
Type string - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - Port double
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
.
- Load
Balancer stringId - The ID of load balancer instance.
- Protocol string
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - Domain string
- Health check domain checking.
- Health
Check stringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - Idle
Timeout float64 - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - Lb
Listener stringId - The ID of the resource lb listener.
- Listen
Type string - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - Method string
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- Name string
- Path string
- Health check path checking.
- Persistence string
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - Persistence
Type string - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - Port float64
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
.
- load
Balancer StringId - The ID of load balancer instance.
- protocol String
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - domain String
- Health check domain checking.
- health
Check StringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - idle
Timeout Double - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - lb
Listener StringId - The ID of the resource lb listener.
- listen
Type String - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - method String
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- name String
- path String
- Health check path checking.
- persistence String
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - persistence
Type String - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - port Double
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
.
- load
Balancer stringId - The ID of load balancer instance.
- protocol string
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - domain string
- Health check domain checking.
- health
Check stringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - idle
Timeout number - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - lb
Listener stringId - The ID of the resource lb listener.
- listen
Type string - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - method string
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- name string
- path string
- Health check path checking.
- persistence string
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - persistence
Type string - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - port number
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
.
- load_
balancer_ strid - The ID of load balancer instance.
- protocol str
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - domain str
- Health check domain checking.
- health_
check_ strtype - Health check method. Possible values are
port
as port checking andpath
as http checking. - idle_
timeout float - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - lb_
listener_ strid - The ID of the resource lb listener.
- listen_
type str - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - method str
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- name str
- path str
- Health check path checking.
- persistence str
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - persistence_
type str - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - port float
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
.
- load
Balancer StringId - The ID of load balancer instance.
- protocol String
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - domain String
- Health check domain checking.
- health
Check StringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - idle
Timeout Number - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - lb
Listener StringId - The ID of the resource lb listener.
- listen
Type String - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - method String
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- name String
- path String
- Health check path checking.
- persistence String
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - persistence
Type String - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - port Number
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
.
Outputs
All input properties are implicitly available as output properties. Additionally, the LbListener resource produces the following output properties:
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,
domain: Optional[str] = None,
health_check_type: Optional[str] = None,
idle_timeout: Optional[float] = None,
lb_listener_id: Optional[str] = None,
listen_type: Optional[str] = None,
load_balancer_id: Optional[str] = None,
method: Optional[str] = None,
name: Optional[str] = None,
path: Optional[str] = None,
persistence: Optional[str] = None,
persistence_type: Optional[str] = None,
port: Optional[float] = None,
protocol: Optional[str] = None,
status: Optional[str] = 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: ucloud: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.
- Domain string
- Health check domain checking.
- Health
Check stringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - Idle
Timeout double - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - Lb
Listener stringId - The ID of the resource lb listener.
- Listen
Type string - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - Load
Balancer stringId - The ID of load balancer instance.
- Method string
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- Name string
- Path string
- Health check path checking.
- Persistence string
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - Persistence
Type string - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - Port double
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
. - Protocol string
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - Status string
- Listener status. Possible values are:
allNormal
for all resource functioning well,partNormal
for partial resource functioning well andallException
for all resource functioning exceptional.
- Domain string
- Health check domain checking.
- Health
Check stringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - Idle
Timeout float64 - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - Lb
Listener stringId - The ID of the resource lb listener.
- Listen
Type string - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - Load
Balancer stringId - The ID of load balancer instance.
- Method string
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- Name string
- Path string
- Health check path checking.
- Persistence string
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - Persistence
Type string - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - Port float64
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
. - Protocol string
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - Status string
- Listener status. Possible values are:
allNormal
for all resource functioning well,partNormal
for partial resource functioning well andallException
for all resource functioning exceptional.
- domain String
- Health check domain checking.
- health
Check StringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - idle
Timeout Double - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - lb
Listener StringId - The ID of the resource lb listener.
- listen
Type String - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - load
Balancer StringId - The ID of load balancer instance.
- method String
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- name String
- path String
- Health check path checking.
- persistence String
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - persistence
Type String - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - port Double
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
. - protocol String
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - status String
- Listener status. Possible values are:
allNormal
for all resource functioning well,partNormal
for partial resource functioning well andallException
for all resource functioning exceptional.
- domain string
- Health check domain checking.
- health
Check stringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - idle
Timeout number - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - lb
Listener stringId - The ID of the resource lb listener.
- listen
Type string - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - load
Balancer stringId - The ID of load balancer instance.
- method string
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- name string
- path string
- Health check path checking.
- persistence string
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - persistence
Type string - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - port number
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
. - protocol string
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - status string
- Listener status. Possible values are:
allNormal
for all resource functioning well,partNormal
for partial resource functioning well andallException
for all resource functioning exceptional.
- domain str
- Health check domain checking.
- health_
check_ strtype - Health check method. Possible values are
port
as port checking andpath
as http checking. - idle_
timeout float - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - lb_
listener_ strid - The ID of the resource lb listener.
- listen_
type str - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - load_
balancer_ strid - The ID of load balancer instance.
- method str
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- name str
- path str
- Health check path checking.
- persistence str
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - persistence_
type str - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - port float
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
. - protocol str
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - status str
- Listener status. Possible values are:
allNormal
for all resource functioning well,partNormal
for partial resource functioning well andallException
for all resource functioning exceptional.
- domain String
- Health check domain checking.
- health
Check StringType - Health check method. Possible values are
port
as port checking andpath
as http checking. - idle
Timeout Number - Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when
listen_type
isrequest_proxy
, range: 60-900 whenlisten_type
ispackets_transmit
(Default:60
). The connection will be closed as soon as no response between the client and LB if it set by0
. - lb
Listener StringId - The ID of the resource lb listener.
- listen
Type String - The type of listener. Possible values are
request_proxy
andpackets_transmit
. Whenpackets_transmit
was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to configuration instruction. - load
Balancer StringId - The ID of load balancer instance.
- method String
- The load balancer method in which the listener is. Possible values are:
roundrobin
,source
,consistent_hash
,source_port
,consistent_hash_port
,weight_roundrobin
andleastconn
. (Default:roundrobin
).- The
consistent_hash
,source_port
,consistent_hash_port
,roundrobin
,source
andweight_roundrobin
are valid iflisten_type
ispackets_transmit
. - The
roundrobin
,source
andweight_roundrobin
andleastconn
are valid iflisten_type
isrequest_proxy
.
- The
- name String
- path String
- Health check path checking.
- persistence String
- Indicate whether the persistence session is enabled, it is invalid if
persistence_type
isnone
, an auto-generated string will be exported ifpersistence_type
isserver_insert
, a custom string will be exported ifpersistence_type
isuser_defined
. - persistence
Type String - The type of session persistence of listener. Possible values are:
none
as disabled,server_insert
as auto-generated key anduser_defined
as customized key. (Default:none
). - port Number
- Port opened on the listeners to receive requests, range: 1-65535. The default value:
80
asprotocol
ishttp
,443
asprotocol
ishttps
,1024
asprotocol
istcp
orudp
. - protocol String
- Listener protocol. Possible values:
http
,https
,tcp
iflisten_type
isrequest_proxy
,tcp
andudp
iflisten_type
ispackets_transmit
. - status String
- Listener status. Possible values are:
allNormal
for all resource functioning well,partNormal
for partial resource functioning well andallException
for all resource functioning exceptional.
Import
LB Listener can be imported using the id
, e.g.
$ pulumi import ucloud:index/lbListener:LbListener example vserver-abcdefg
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloud
Terraform Provider.