Provides a resource to manage listener
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.getZones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
vpcId: fooVpc.id,
});
const fooClb = new volcengine.clb.Clb("fooClb", {
type: "public",
subnetId: fooSubnet.id,
loadBalancerSpec: "small_1",
description: "acc0Demo",
loadBalancerName: "acc-test-create",
eipBillingConfig: {
isp: "BGP",
eipBillingType: "PostPaidByBandwidth",
bandwidth: 1,
},
});
const fooServerGroup = new volcengine.clb.ServerGroup("fooServerGroup", {
loadBalancerId: fooClb.id,
serverGroupName: "acc-test-create",
description: "hello demo11",
});
const fooListener = new volcengine.clb.Listener("fooListener", {
loadBalancerId: fooClb.id,
listenerName: "acc-test-listener",
protocol: "HTTP",
port: 90,
serverGroupId: fooServerGroup.id,
healthCheck: {
enabled: "on",
interval: 10,
timeout: 3,
healthyThreshold: 5,
unHealthyThreshold: 2,
domain: "volcengine.com",
httpCode: "http_2xx",
method: "GET",
uri: "/",
},
tags: [{
key: "k1",
value: "v1",
}],
enabled: "on",
});
const fooTcp = new volcengine.clb.Listener("fooTcp", {
loadBalancerId: fooClb.id,
listenerName: "acc-test-listener",
protocol: "TCP",
port: 90,
serverGroupId: fooServerGroup.id,
enabled: "on",
bandwidth: 2,
proxyProtocolType: "standard",
persistenceType: "source_ip",
persistenceTimeout: 100,
connectionDrainEnabled: "on",
connectionDrainTimeout: 100,
});
const fooHttps = new volcengine.clb.Listener("fooHttps", {
loadBalancerId: fooClb.id,
listenerName: "acc-test-listener-https",
protocol: "HTTPS",
port: 100,
serverGroupId: fooServerGroup.id,
healthCheck: {
enabled: "on",
interval: 10,
timeout: 3,
healthyThreshold: 5,
unHealthyThreshold: 2,
domain: "volcengine.com",
httpCode: "http_2xx,http_3xx",
method: "GET",
uri: "/",
},
enabled: "on",
clientHeaderTimeout: 80,
clientBodyTimeout: 80,
keepaliveTimeout: 80,
proxyConnectTimeout: 20,
proxySendTimeout: 1800,
proxyReadTimeout: 1800,
certificateSource: "clb",
certificateId: "cert-mjpctunmog745smt1a******",
tags: [{
key: "k1",
value: "v1",
}],
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.get_zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id=foo_zones.zones[0].id,
vpc_id=foo_vpc.id)
foo_clb = volcengine.clb.Clb("fooClb",
type="public",
subnet_id=foo_subnet.id,
load_balancer_spec="small_1",
description="acc0Demo",
load_balancer_name="acc-test-create",
eip_billing_config=volcengine.clb.ClbEipBillingConfigArgs(
isp="BGP",
eip_billing_type="PostPaidByBandwidth",
bandwidth=1,
))
foo_server_group = volcengine.clb.ServerGroup("fooServerGroup",
load_balancer_id=foo_clb.id,
server_group_name="acc-test-create",
description="hello demo11")
foo_listener = volcengine.clb.Listener("fooListener",
load_balancer_id=foo_clb.id,
listener_name="acc-test-listener",
protocol="HTTP",
port=90,
server_group_id=foo_server_group.id,
health_check=volcengine.clb.ListenerHealthCheckArgs(
enabled="on",
interval=10,
timeout=3,
healthy_threshold=5,
un_healthy_threshold=2,
domain="volcengine.com",
http_code="http_2xx",
method="GET",
uri="/",
),
tags=[volcengine.clb.ListenerTagArgs(
key="k1",
value="v1",
)],
enabled="on")
foo_tcp = volcengine.clb.Listener("fooTcp",
load_balancer_id=foo_clb.id,
listener_name="acc-test-listener",
protocol="TCP",
port=90,
server_group_id=foo_server_group.id,
enabled="on",
bandwidth=2,
proxy_protocol_type="standard",
persistence_type="source_ip",
persistence_timeout=100,
connection_drain_enabled="on",
connection_drain_timeout=100)
foo_https = volcengine.clb.Listener("fooHttps",
load_balancer_id=foo_clb.id,
listener_name="acc-test-listener-https",
protocol="HTTPS",
port=100,
server_group_id=foo_server_group.id,
health_check=volcengine.clb.ListenerHealthCheckArgs(
enabled="on",
interval=10,
timeout=3,
healthy_threshold=5,
un_healthy_threshold=2,
domain="volcengine.com",
http_code="http_2xx,http_3xx",
method="GET",
uri="/",
),
enabled="on",
client_header_timeout=80,
client_body_timeout=80,
keepalive_timeout=80,
proxy_connect_timeout=20,
proxy_send_timeout=1800,
proxy_read_timeout=1800,
certificate_source="clb",
certificate_id="cert-mjpctunmog745smt1a******",
tags=[volcengine.clb.ListenerTagArgs(
key="k1",
value="v1",
)])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/clb"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := ecs.GetZones(ctx, nil, nil)
if err != nil {
return err
}
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(fooZones.Zones[0].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooClb, err := clb.NewClb(ctx, "fooClb", &clb.ClbArgs{
Type: pulumi.String("public"),
SubnetId: fooSubnet.ID(),
LoadBalancerSpec: pulumi.String("small_1"),
Description: pulumi.String("acc0Demo"),
LoadBalancerName: pulumi.String("acc-test-create"),
EipBillingConfig: &clb.ClbEipBillingConfigArgs{
Isp: pulumi.String("BGP"),
EipBillingType: pulumi.String("PostPaidByBandwidth"),
Bandwidth: pulumi.Int(1),
},
})
if err != nil {
return err
}
fooServerGroup, err := clb.NewServerGroup(ctx, "fooServerGroup", &clb.ServerGroupArgs{
LoadBalancerId: fooClb.ID(),
ServerGroupName: pulumi.String("acc-test-create"),
Description: pulumi.String("hello demo11"),
})
if err != nil {
return err
}
_, err = clb.NewListener(ctx, "fooListener", &clb.ListenerArgs{
LoadBalancerId: fooClb.ID(),
ListenerName: pulumi.String("acc-test-listener"),
Protocol: pulumi.String("HTTP"),
Port: pulumi.Int(90),
ServerGroupId: fooServerGroup.ID(),
HealthCheck: &clb.ListenerHealthCheckArgs{
Enabled: pulumi.String("on"),
Interval: pulumi.Int(10),
Timeout: pulumi.Int(3),
HealthyThreshold: pulumi.Int(5),
UnHealthyThreshold: pulumi.Int(2),
Domain: pulumi.String("volcengine.com"),
HttpCode: pulumi.String("http_2xx"),
Method: pulumi.String("GET"),
Uri: pulumi.String("/"),
},
Tags: clb.ListenerTagArray{
&clb.ListenerTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
Enabled: pulumi.String("on"),
})
if err != nil {
return err
}
_, err = clb.NewListener(ctx, "fooTcp", &clb.ListenerArgs{
LoadBalancerId: fooClb.ID(),
ListenerName: pulumi.String("acc-test-listener"),
Protocol: pulumi.String("TCP"),
Port: pulumi.Int(90),
ServerGroupId: fooServerGroup.ID(),
Enabled: pulumi.String("on"),
Bandwidth: pulumi.Int(2),
ProxyProtocolType: pulumi.String("standard"),
PersistenceType: pulumi.String("source_ip"),
PersistenceTimeout: pulumi.Int(100),
ConnectionDrainEnabled: pulumi.String("on"),
ConnectionDrainTimeout: pulumi.Int(100),
})
if err != nil {
return err
}
_, err = clb.NewListener(ctx, "fooHttps", &clb.ListenerArgs{
LoadBalancerId: fooClb.ID(),
ListenerName: pulumi.String("acc-test-listener-https"),
Protocol: pulumi.String("HTTPS"),
Port: pulumi.Int(100),
ServerGroupId: fooServerGroup.ID(),
HealthCheck: &clb.ListenerHealthCheckArgs{
Enabled: pulumi.String("on"),
Interval: pulumi.Int(10),
Timeout: pulumi.Int(3),
HealthyThreshold: pulumi.Int(5),
UnHealthyThreshold: pulumi.Int(2),
Domain: pulumi.String("volcengine.com"),
HttpCode: pulumi.String("http_2xx,http_3xx"),
Method: pulumi.String("GET"),
Uri: pulumi.String("/"),
},
Enabled: pulumi.String("on"),
ClientHeaderTimeout: pulumi.Int(80),
ClientBodyTimeout: pulumi.Int(80),
KeepaliveTimeout: pulumi.Int(80),
ProxyConnectTimeout: pulumi.Int(20),
ProxySendTimeout: pulumi.Int(1800),
ProxyReadTimeout: pulumi.Int(1800),
CertificateSource: pulumi.String("clb"),
CertificateId: pulumi.String("cert-mjpctunmog745smt1a******"),
Tags: clb.ListenerTagArray{
&clb.ListenerTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooZones = Volcengine.Ecs.GetZones.Invoke();
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = fooZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VpcId = fooVpc.Id,
});
var fooClb = new Volcengine.Clb.Clb("fooClb", new()
{
Type = "public",
SubnetId = fooSubnet.Id,
LoadBalancerSpec = "small_1",
Description = "acc0Demo",
LoadBalancerName = "acc-test-create",
EipBillingConfig = new Volcengine.Clb.Inputs.ClbEipBillingConfigArgs
{
Isp = "BGP",
EipBillingType = "PostPaidByBandwidth",
Bandwidth = 1,
},
});
var fooServerGroup = new Volcengine.Clb.ServerGroup("fooServerGroup", new()
{
LoadBalancerId = fooClb.Id,
ServerGroupName = "acc-test-create",
Description = "hello demo11",
});
var fooListener = new Volcengine.Clb.Listener("fooListener", new()
{
LoadBalancerId = fooClb.Id,
ListenerName = "acc-test-listener",
Protocol = "HTTP",
Port = 90,
ServerGroupId = fooServerGroup.Id,
HealthCheck = new Volcengine.Clb.Inputs.ListenerHealthCheckArgs
{
Enabled = "on",
Interval = 10,
Timeout = 3,
HealthyThreshold = 5,
UnHealthyThreshold = 2,
Domain = "volcengine.com",
HttpCode = "http_2xx",
Method = "GET",
Uri = "/",
},
Tags = new[]
{
new Volcengine.Clb.Inputs.ListenerTagArgs
{
Key = "k1",
Value = "v1",
},
},
Enabled = "on",
});
var fooTcp = new Volcengine.Clb.Listener("fooTcp", new()
{
LoadBalancerId = fooClb.Id,
ListenerName = "acc-test-listener",
Protocol = "TCP",
Port = 90,
ServerGroupId = fooServerGroup.Id,
Enabled = "on",
Bandwidth = 2,
ProxyProtocolType = "standard",
PersistenceType = "source_ip",
PersistenceTimeout = 100,
ConnectionDrainEnabled = "on",
ConnectionDrainTimeout = 100,
});
var fooHttps = new Volcengine.Clb.Listener("fooHttps", new()
{
LoadBalancerId = fooClb.Id,
ListenerName = "acc-test-listener-https",
Protocol = "HTTPS",
Port = 100,
ServerGroupId = fooServerGroup.Id,
HealthCheck = new Volcengine.Clb.Inputs.ListenerHealthCheckArgs
{
Enabled = "on",
Interval = 10,
Timeout = 3,
HealthyThreshold = 5,
UnHealthyThreshold = 2,
Domain = "volcengine.com",
HttpCode = "http_2xx,http_3xx",
Method = "GET",
Uri = "/",
},
Enabled = "on",
ClientHeaderTimeout = 80,
ClientBodyTimeout = 80,
KeepaliveTimeout = 80,
ProxyConnectTimeout = 20,
ProxySendTimeout = 1800,
ProxyReadTimeout = 1800,
CertificateSource = "clb",
CertificateId = "cert-mjpctunmog745smt1a******",
Tags = new[]
{
new Volcengine.Clb.Inputs.ListenerTagArgs
{
Key = "k1",
Value = "v1",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.GetZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.clb.Clb;
import com.pulumi.volcengine.clb.ClbArgs;
import com.pulumi.volcengine.clb.inputs.ClbEipBillingConfigArgs;
import com.pulumi.volcengine.clb.ServerGroup;
import com.pulumi.volcengine.clb.ServerGroupArgs;
import com.pulumi.volcengine.clb.Listener;
import com.pulumi.volcengine.clb.ListenerArgs;
import com.pulumi.volcengine.clb.inputs.ListenerHealthCheckArgs;
import com.pulumi.volcengine.clb.inputs.ListenerTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var fooZones = EcsFunctions.getZones();
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId(fooZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vpcId(fooVpc.id())
.build());
var fooClb = new Clb("fooClb", ClbArgs.builder()
.type("public")
.subnetId(fooSubnet.id())
.loadBalancerSpec("small_1")
.description("acc0Demo")
.loadBalancerName("acc-test-create")
.eipBillingConfig(ClbEipBillingConfigArgs.builder()
.isp("BGP")
.eipBillingType("PostPaidByBandwidth")
.bandwidth(1)
.build())
.build());
var fooServerGroup = new ServerGroup("fooServerGroup", ServerGroupArgs.builder()
.loadBalancerId(fooClb.id())
.serverGroupName("acc-test-create")
.description("hello demo11")
.build());
var fooListener = new Listener("fooListener", ListenerArgs.builder()
.loadBalancerId(fooClb.id())
.listenerName("acc-test-listener")
.protocol("HTTP")
.port(90)
.serverGroupId(fooServerGroup.id())
.healthCheck(ListenerHealthCheckArgs.builder()
.enabled("on")
.interval(10)
.timeout(3)
.healthyThreshold(5)
.unHealthyThreshold(2)
.domain("volcengine.com")
.httpCode("http_2xx")
.method("GET")
.uri("/")
.build())
.tags(ListenerTagArgs.builder()
.key("k1")
.value("v1")
.build())
.enabled("on")
.build());
var fooTcp = new Listener("fooTcp", ListenerArgs.builder()
.loadBalancerId(fooClb.id())
.listenerName("acc-test-listener")
.protocol("TCP")
.port(90)
.serverGroupId(fooServerGroup.id())
.enabled("on")
.bandwidth(2)
.proxyProtocolType("standard")
.persistenceType("source_ip")
.persistenceTimeout(100)
.connectionDrainEnabled("on")
.connectionDrainTimeout(100)
.build());
var fooHttps = new Listener("fooHttps", ListenerArgs.builder()
.loadBalancerId(fooClb.id())
.listenerName("acc-test-listener-https")
.protocol("HTTPS")
.port(100)
.serverGroupId(fooServerGroup.id())
.healthCheck(ListenerHealthCheckArgs.builder()
.enabled("on")
.interval(10)
.timeout(3)
.healthyThreshold(5)
.unHealthyThreshold(2)
.domain("volcengine.com")
.httpCode("http_2xx,http_3xx")
.method("GET")
.uri("/")
.build())
.enabled("on")
.clientHeaderTimeout(80)
.clientBodyTimeout(80)
.keepaliveTimeout(80)
.proxyConnectTimeout(20)
.proxySendTimeout(1800)
.proxyReadTimeout(1800)
.certificateSource("clb")
.certificateId("cert-mjpctunmog745smt1a******")
.tags(ListenerTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
}
}
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: ${fooZones.zones[0].id}
vpcId: ${fooVpc.id}
fooClb:
type: volcengine:clb:Clb
properties:
type: public
subnetId: ${fooSubnet.id}
loadBalancerSpec: small_1
description: acc0Demo
loadBalancerName: acc-test-create
eipBillingConfig:
isp: BGP
eipBillingType: PostPaidByBandwidth
bandwidth: 1
fooServerGroup:
type: volcengine:clb:ServerGroup
properties:
loadBalancerId: ${fooClb.id}
serverGroupName: acc-test-create
description: hello demo11
fooListener:
type: volcengine:clb:Listener
properties:
loadBalancerId: ${fooClb.id}
listenerName: acc-test-listener
protocol: HTTP
port: 90
serverGroupId: ${fooServerGroup.id}
healthCheck:
enabled: on
interval: 10
timeout: 3
healthyThreshold: 5
unHealthyThreshold: 2
domain: volcengine.com
httpCode: http_2xx
method: GET
uri: /
tags:
- key: k1
value: v1
enabled: on
fooTcp:
type: volcengine:clb:Listener
properties:
loadBalancerId: ${fooClb.id}
listenerName: acc-test-listener
protocol: TCP
port: 90
serverGroupId: ${fooServerGroup.id}
enabled: on
bandwidth: 2
proxyProtocolType: standard
persistenceType: source_ip
persistenceTimeout: 100
connectionDrainEnabled: on
connectionDrainTimeout: 100
fooHttps:
type: volcengine:clb:Listener
properties:
loadBalancerId: ${fooClb.id}
listenerName: acc-test-listener-https
protocol: HTTPS
port: 100
serverGroupId: ${fooServerGroup.id}
healthCheck:
enabled: on
interval: 10
timeout: 3
healthyThreshold: 5
unHealthyThreshold: 2
domain: volcengine.com
httpCode: http_2xx,http_3xx
method: GET
uri: /
enabled: on
clientHeaderTimeout: 80
clientBodyTimeout: 80
keepaliveTimeout: 80
proxyConnectTimeout: 20
proxySendTimeout: 1800
proxyReadTimeout: 1800
certificateSource: clb
certificateId: cert-mjpctunmog745smt1a******
tags:
- key: k1
value: v1
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:getZones
Arguments: {}
Create Listener Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Listener(name: string, args: ListenerArgs, opts?: CustomResourceOptions);@overload
def Listener(resource_name: str,
args: ListenerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Listener(resource_name: str,
opts: Optional[ResourceOptions] = None,
load_balancer_id: Optional[str] = None,
server_group_id: Optional[str] = None,
protocol: Optional[str] = None,
port: Optional[int] = None,
client_body_timeout: Optional[int] = None,
keepalive_timeout: Optional[int] = None,
cert_center_certificate_id: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_source: Optional[str] = None,
acl_ids: Optional[Sequence[str]] = None,
client_header_timeout: Optional[int] = None,
connection_drain_enabled: Optional[str] = None,
connection_drain_timeout: Optional[int] = None,
cookie: Optional[str] = None,
cps: Optional[int] = None,
description: Optional[str] = None,
enabled: Optional[str] = None,
end_port: Optional[int] = None,
established_timeout: Optional[int] = None,
health_check: Optional[ListenerHealthCheckArgs] = None,
http2_enabled: Optional[str] = None,
ca_enabled: Optional[str] = None,
listener_name: Optional[str] = None,
ca_certificate_id: Optional[str] = None,
max_connections: Optional[int] = None,
persistence_timeout: Optional[int] = None,
persistence_type: Optional[str] = None,
bandwidth: Optional[int] = None,
acl_type: Optional[str] = None,
proxy_connect_timeout: Optional[int] = None,
proxy_protocol_type: Optional[str] = None,
proxy_read_timeout: Optional[int] = None,
proxy_send_timeout: Optional[int] = None,
scheduler: Optional[str] = None,
security_policy_id: Optional[str] = None,
send_timeout: Optional[int] = None,
acl_status: Optional[str] = None,
start_port: Optional[int] = None,
tags: Optional[Sequence[ListenerTagArgs]] = None)func NewListener(ctx *Context, name string, args ListenerArgs, opts ...ResourceOption) (*Listener, error)public Listener(string name, ListenerArgs args, CustomResourceOptions? opts = null)
public Listener(String name, ListenerArgs args)
public Listener(String name, ListenerArgs args, CustomResourceOptions options)
type: volcengine:clb:Listener
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 ListenerArgs
- 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 ListenerArgs
- 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 ListenerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ListenerArgs
- 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 volcengineListenerResource = new Volcengine.Clb.Listener("volcengineListenerResource", new()
{
LoadBalancerId = "string",
ServerGroupId = "string",
Protocol = "string",
Port = 0,
ClientBodyTimeout = 0,
KeepaliveTimeout = 0,
CertCenterCertificateId = "string",
CertificateId = "string",
CertificateSource = "string",
AclIds = new[]
{
"string",
},
ClientHeaderTimeout = 0,
ConnectionDrainEnabled = "string",
ConnectionDrainTimeout = 0,
Cookie = "string",
Cps = 0,
Description = "string",
Enabled = "string",
EndPort = 0,
EstablishedTimeout = 0,
HealthCheck = new Volcengine.Clb.Inputs.ListenerHealthCheckArgs
{
Domain = "string",
Enabled = "string",
HealthyThreshold = 0,
HttpCode = "string",
Interval = 0,
Method = "string",
Port = 0,
Timeout = 0,
UdpExpect = "string",
UdpRequest = "string",
UnHealthyThreshold = 0,
Uri = "string",
},
Http2Enabled = "string",
CaEnabled = "string",
ListenerName = "string",
CaCertificateId = "string",
MaxConnections = 0,
PersistenceTimeout = 0,
PersistenceType = "string",
Bandwidth = 0,
AclType = "string",
ProxyConnectTimeout = 0,
ProxyProtocolType = "string",
ProxyReadTimeout = 0,
ProxySendTimeout = 0,
Scheduler = "string",
SecurityPolicyId = "string",
SendTimeout = 0,
AclStatus = "string",
StartPort = 0,
Tags = new[]
{
new Volcengine.Clb.Inputs.ListenerTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := clb.NewListener(ctx, "volcengineListenerResource", &clb.ListenerArgs{
LoadBalancerId: pulumi.String("string"),
ServerGroupId: pulumi.String("string"),
Protocol: pulumi.String("string"),
Port: pulumi.Int(0),
ClientBodyTimeout: pulumi.Int(0),
KeepaliveTimeout: pulumi.Int(0),
CertCenterCertificateId: pulumi.String("string"),
CertificateId: pulumi.String("string"),
CertificateSource: pulumi.String("string"),
AclIds: pulumi.StringArray{
pulumi.String("string"),
},
ClientHeaderTimeout: pulumi.Int(0),
ConnectionDrainEnabled: pulumi.String("string"),
ConnectionDrainTimeout: pulumi.Int(0),
Cookie: pulumi.String("string"),
Cps: pulumi.Int(0),
Description: pulumi.String("string"),
Enabled: pulumi.String("string"),
EndPort: pulumi.Int(0),
EstablishedTimeout: pulumi.Int(0),
HealthCheck: &clb.ListenerHealthCheckArgs{
Domain: pulumi.String("string"),
Enabled: pulumi.String("string"),
HealthyThreshold: pulumi.Int(0),
HttpCode: pulumi.String("string"),
Interval: pulumi.Int(0),
Method: pulumi.String("string"),
Port: pulumi.Int(0),
Timeout: pulumi.Int(0),
UdpExpect: pulumi.String("string"),
UdpRequest: pulumi.String("string"),
UnHealthyThreshold: pulumi.Int(0),
Uri: pulumi.String("string"),
},
Http2Enabled: pulumi.String("string"),
CaEnabled: pulumi.String("string"),
ListenerName: pulumi.String("string"),
CaCertificateId: pulumi.String("string"),
MaxConnections: pulumi.Int(0),
PersistenceTimeout: pulumi.Int(0),
PersistenceType: pulumi.String("string"),
Bandwidth: pulumi.Int(0),
AclType: pulumi.String("string"),
ProxyConnectTimeout: pulumi.Int(0),
ProxyProtocolType: pulumi.String("string"),
ProxyReadTimeout: pulumi.Int(0),
ProxySendTimeout: pulumi.Int(0),
Scheduler: pulumi.String("string"),
SecurityPolicyId: pulumi.String("string"),
SendTimeout: pulumi.Int(0),
AclStatus: pulumi.String("string"),
StartPort: pulumi.Int(0),
Tags: clb.ListenerTagArray{
&clb.ListenerTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var volcengineListenerResource = new com.pulumi.volcengine.clb.Listener("volcengineListenerResource", com.pulumi.volcengine.clb.ListenerArgs.builder()
.loadBalancerId("string")
.serverGroupId("string")
.protocol("string")
.port(0)
.clientBodyTimeout(0)
.keepaliveTimeout(0)
.certCenterCertificateId("string")
.certificateId("string")
.certificateSource("string")
.aclIds("string")
.clientHeaderTimeout(0)
.connectionDrainEnabled("string")
.connectionDrainTimeout(0)
.cookie("string")
.cps(0)
.description("string")
.enabled("string")
.endPort(0)
.establishedTimeout(0)
.healthCheck(ListenerHealthCheckArgs.builder()
.domain("string")
.enabled("string")
.healthyThreshold(0)
.httpCode("string")
.interval(0)
.method("string")
.port(0)
.timeout(0)
.udpExpect("string")
.udpRequest("string")
.unHealthyThreshold(0)
.uri("string")
.build())
.http2Enabled("string")
.caEnabled("string")
.listenerName("string")
.caCertificateId("string")
.maxConnections(0)
.persistenceTimeout(0)
.persistenceType("string")
.bandwidth(0)
.aclType("string")
.proxyConnectTimeout(0)
.proxyProtocolType("string")
.proxyReadTimeout(0)
.proxySendTimeout(0)
.scheduler("string")
.securityPolicyId("string")
.sendTimeout(0)
.aclStatus("string")
.startPort(0)
.tags(ListenerTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
volcengine_listener_resource = volcengine.clb.Listener("volcengineListenerResource",
load_balancer_id="string",
server_group_id="string",
protocol="string",
port=0,
client_body_timeout=0,
keepalive_timeout=0,
cert_center_certificate_id="string",
certificate_id="string",
certificate_source="string",
acl_ids=["string"],
client_header_timeout=0,
connection_drain_enabled="string",
connection_drain_timeout=0,
cookie="string",
cps=0,
description="string",
enabled="string",
end_port=0,
established_timeout=0,
health_check={
"domain": "string",
"enabled": "string",
"healthy_threshold": 0,
"http_code": "string",
"interval": 0,
"method": "string",
"port": 0,
"timeout": 0,
"udp_expect": "string",
"udp_request": "string",
"un_healthy_threshold": 0,
"uri": "string",
},
http2_enabled="string",
ca_enabled="string",
listener_name="string",
ca_certificate_id="string",
max_connections=0,
persistence_timeout=0,
persistence_type="string",
bandwidth=0,
acl_type="string",
proxy_connect_timeout=0,
proxy_protocol_type="string",
proxy_read_timeout=0,
proxy_send_timeout=0,
scheduler="string",
security_policy_id="string",
send_timeout=0,
acl_status="string",
start_port=0,
tags=[{
"key": "string",
"value": "string",
}])
const volcengineListenerResource = new volcengine.clb.Listener("volcengineListenerResource", {
loadBalancerId: "string",
serverGroupId: "string",
protocol: "string",
port: 0,
clientBodyTimeout: 0,
keepaliveTimeout: 0,
certCenterCertificateId: "string",
certificateId: "string",
certificateSource: "string",
aclIds: ["string"],
clientHeaderTimeout: 0,
connectionDrainEnabled: "string",
connectionDrainTimeout: 0,
cookie: "string",
cps: 0,
description: "string",
enabled: "string",
endPort: 0,
establishedTimeout: 0,
healthCheck: {
domain: "string",
enabled: "string",
healthyThreshold: 0,
httpCode: "string",
interval: 0,
method: "string",
port: 0,
timeout: 0,
udpExpect: "string",
udpRequest: "string",
unHealthyThreshold: 0,
uri: "string",
},
http2Enabled: "string",
caEnabled: "string",
listenerName: "string",
caCertificateId: "string",
maxConnections: 0,
persistenceTimeout: 0,
persistenceType: "string",
bandwidth: 0,
aclType: "string",
proxyConnectTimeout: 0,
proxyProtocolType: "string",
proxyReadTimeout: 0,
proxySendTimeout: 0,
scheduler: "string",
securityPolicyId: "string",
sendTimeout: 0,
aclStatus: "string",
startPort: 0,
tags: [{
key: "string",
value: "string",
}],
});
type: volcengine:clb:Listener
properties:
aclIds:
- string
aclStatus: string
aclType: string
bandwidth: 0
caCertificateId: string
caEnabled: string
certCenterCertificateId: string
certificateId: string
certificateSource: string
clientBodyTimeout: 0
clientHeaderTimeout: 0
connectionDrainEnabled: string
connectionDrainTimeout: 0
cookie: string
cps: 0
description: string
enabled: string
endPort: 0
establishedTimeout: 0
healthCheck:
domain: string
enabled: string
healthyThreshold: 0
httpCode: string
interval: 0
method: string
port: 0
timeout: 0
udpExpect: string
udpRequest: string
unHealthyThreshold: 0
uri: string
http2Enabled: string
keepaliveTimeout: 0
listenerName: string
loadBalancerId: string
maxConnections: 0
persistenceTimeout: 0
persistenceType: string
port: 0
protocol: string
proxyConnectTimeout: 0
proxyProtocolType: string
proxyReadTimeout: 0
proxySendTimeout: 0
scheduler: string
securityPolicyId: string
sendTimeout: 0
serverGroupId: string
startPort: 0
tags:
- key: string
value: string
Listener 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 Listener resource accepts the following input properties:
- Load
Balancer stringId - The region of the request.
- Port int
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - Protocol string
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - Server
Group stringId - The server group id associated with the listener.
- Acl
Ids List<string> - The id list of the Acl.
- Acl
Status string - The enable status of Acl. Optional choice contains
on,off. - Acl
Type string - The type of the Acl. Optional choice contains
white,black. - Bandwidth int
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- Ca
Certificate stringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - Ca
Enabled string - Whether to enable CACertificate two-way authentication. Values: on, off.
- Cert
Center stringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - Certificate
Id string - The certificate id associated with the listener.
- Certificate
Source string - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - Client
Body intTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- Client
Header intTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - Connection
Drain stringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - Connection
Drain intTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - string
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - Cps int
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - Description string
- The description of the Listener.
- Enabled string
- The enable status of the Listener. Optional choice contains
on,off. - End
Port int - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - Established
Timeout int - The connection timeout of the Listener.
- Health
Check ListenerHealth Check - The config of health check.
- Http2Enabled string
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - Keepalive
Timeout int - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- Listener
Name string - The name of the Listener.
- Max
Connections int - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - Persistence
Timeout int - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - Persistence
Type string - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - Proxy
Connect intTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- Proxy
Protocol stringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - Proxy
Read intTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- Proxy
Send intTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- Scheduler string
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - Security
Policy stringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - Send
Timeout int - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- Start
Port int - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
List<Listener
Tag> - Tags.
- Load
Balancer stringId - The region of the request.
- Port int
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - Protocol string
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - Server
Group stringId - The server group id associated with the listener.
- Acl
Ids []string - The id list of the Acl.
- Acl
Status string - The enable status of Acl. Optional choice contains
on,off. - Acl
Type string - The type of the Acl. Optional choice contains
white,black. - Bandwidth int
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- Ca
Certificate stringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - Ca
Enabled string - Whether to enable CACertificate two-way authentication. Values: on, off.
- Cert
Center stringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - Certificate
Id string - The certificate id associated with the listener.
- Certificate
Source string - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - Client
Body intTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- Client
Header intTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - Connection
Drain stringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - Connection
Drain intTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - string
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - Cps int
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - Description string
- The description of the Listener.
- Enabled string
- The enable status of the Listener. Optional choice contains
on,off. - End
Port int - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - Established
Timeout int - The connection timeout of the Listener.
- Health
Check ListenerHealth Check Args - The config of health check.
- Http2Enabled string
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - Keepalive
Timeout int - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- Listener
Name string - The name of the Listener.
- Max
Connections int - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - Persistence
Timeout int - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - Persistence
Type string - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - Proxy
Connect intTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- Proxy
Protocol stringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - Proxy
Read intTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- Proxy
Send intTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- Scheduler string
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - Security
Policy stringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - Send
Timeout int - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- Start
Port int - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
[]Listener
Tag Args - Tags.
- load
Balancer StringId - The region of the request.
- port Integer
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - protocol String
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - server
Group StringId - The server group id associated with the listener.
- acl
Ids List<String> - The id list of the Acl.
- acl
Status String - The enable status of Acl. Optional choice contains
on,off. - acl
Type String - The type of the Acl. Optional choice contains
white,black. - bandwidth Integer
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- ca
Certificate StringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - ca
Enabled String - Whether to enable CACertificate two-way authentication. Values: on, off.
- cert
Center StringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - certificate
Id String - The certificate id associated with the listener.
- certificate
Source String - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - client
Body IntegerTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- client
Header IntegerTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - connection
Drain StringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - connection
Drain IntegerTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - String
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - cps Integer
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - description String
- The description of the Listener.
- enabled String
- The enable status of the Listener. Optional choice contains
on,off. - end
Port Integer - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - established
Timeout Integer - The connection timeout of the Listener.
- health
Check ListenerHealth Check - The config of health check.
- http2Enabled String
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - keepalive
Timeout Integer - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- listener
Name String - The name of the Listener.
- max
Connections Integer - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - persistence
Timeout Integer - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - persistence
Type String - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - proxy
Connect IntegerTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- proxy
Protocol StringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - proxy
Read IntegerTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- proxy
Send IntegerTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- scheduler String
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - security
Policy StringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - send
Timeout Integer - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- start
Port Integer - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
List<Listener
Tag> - Tags.
- load
Balancer stringId - The region of the request.
- port number
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - protocol string
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - server
Group stringId - The server group id associated with the listener.
- acl
Ids string[] - The id list of the Acl.
- acl
Status string - The enable status of Acl. Optional choice contains
on,off. - acl
Type string - The type of the Acl. Optional choice contains
white,black. - bandwidth number
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- ca
Certificate stringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - ca
Enabled string - Whether to enable CACertificate two-way authentication. Values: on, off.
- cert
Center stringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - certificate
Id string - The certificate id associated with the listener.
- certificate
Source string - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - client
Body numberTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- client
Header numberTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - connection
Drain stringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - connection
Drain numberTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - string
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - cps number
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - description string
- The description of the Listener.
- enabled string
- The enable status of the Listener. Optional choice contains
on,off. - end
Port number - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - established
Timeout number - The connection timeout of the Listener.
- health
Check ListenerHealth Check - The config of health check.
- http2Enabled string
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - keepalive
Timeout number - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- listener
Name string - The name of the Listener.
- max
Connections number - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - persistence
Timeout number - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - persistence
Type string - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - proxy
Connect numberTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- proxy
Protocol stringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - proxy
Read numberTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- proxy
Send numberTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- scheduler string
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - security
Policy stringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - send
Timeout number - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- start
Port number - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
Listener
Tag[] - Tags.
- load_
balancer_ strid - The region of the request.
- port int
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - protocol str
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - server_
group_ strid - The server group id associated with the listener.
- acl_
ids Sequence[str] - The id list of the Acl.
- acl_
status str - The enable status of Acl. Optional choice contains
on,off. - acl_
type str - The type of the Acl. Optional choice contains
white,black. - bandwidth int
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- ca_
certificate_ strid - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - ca_
enabled str - Whether to enable CACertificate two-way authentication. Values: on, off.
- cert_
center_ strcertificate_ id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - certificate_
id str - The certificate id associated with the listener.
- certificate_
source str - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - client_
body_ inttimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- client_
header_ inttimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - connection_
drain_ strenabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - connection_
drain_ inttimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - str
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - cps int
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - description str
- The description of the Listener.
- enabled str
- The enable status of the Listener. Optional choice contains
on,off. - end_
port int - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - established_
timeout int - The connection timeout of the Listener.
- health_
check ListenerHealth Check Args - The config of health check.
- http2_
enabled str - Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - keepalive_
timeout int - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- listener_
name str - The name of the Listener.
- max_
connections int - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - persistence_
timeout int - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - persistence_
type str - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - proxy_
connect_ inttimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- proxy_
protocol_ strtype - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - proxy_
read_ inttimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- proxy_
send_ inttimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- scheduler str
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - security_
policy_ strid - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - send_
timeout int - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- start_
port int - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
Sequence[Listener
Tag Args] - Tags.
- load
Balancer StringId - The region of the request.
- port Number
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - protocol String
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - server
Group StringId - The server group id associated with the listener.
- acl
Ids List<String> - The id list of the Acl.
- acl
Status String - The enable status of Acl. Optional choice contains
on,off. - acl
Type String - The type of the Acl. Optional choice contains
white,black. - bandwidth Number
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- ca
Certificate StringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - ca
Enabled String - Whether to enable CACertificate two-way authentication. Values: on, off.
- cert
Center StringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - certificate
Id String - The certificate id associated with the listener.
- certificate
Source String - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - client
Body NumberTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- client
Header NumberTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - connection
Drain StringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - connection
Drain NumberTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - String
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - cps Number
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - description String
- The description of the Listener.
- enabled String
- The enable status of the Listener. Optional choice contains
on,off. - end
Port Number - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - established
Timeout Number - The connection timeout of the Listener.
- health
Check Property Map - The config of health check.
- http2Enabled String
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - keepalive
Timeout Number - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- listener
Name String - The name of the Listener.
- max
Connections Number - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - persistence
Timeout Number - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - persistence
Type String - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - proxy
Connect NumberTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- proxy
Protocol StringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - proxy
Read NumberTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- proxy
Send NumberTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- scheduler String
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - security
Policy StringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - send
Timeout Number - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- start
Port Number - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. - List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Listener resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - The ID of the Listener.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - The ID of the Listener.
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - The ID of the Listener.
- id string
- The provider-assigned unique ID for this managed resource.
- listener
Id string - The ID of the Listener.
- id str
- The provider-assigned unique ID for this managed resource.
- listener_
id str - The ID of the Listener.
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - The ID of the Listener.
Look up Existing Listener Resource
Get an existing Listener 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?: ListenerState, opts?: CustomResourceOptions): Listener@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_ids: Optional[Sequence[str]] = None,
acl_status: Optional[str] = None,
acl_type: Optional[str] = None,
bandwidth: Optional[int] = None,
ca_certificate_id: Optional[str] = None,
ca_enabled: Optional[str] = None,
cert_center_certificate_id: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_source: Optional[str] = None,
client_body_timeout: Optional[int] = None,
client_header_timeout: Optional[int] = None,
connection_drain_enabled: Optional[str] = None,
connection_drain_timeout: Optional[int] = None,
cookie: Optional[str] = None,
cps: Optional[int] = None,
description: Optional[str] = None,
enabled: Optional[str] = None,
end_port: Optional[int] = None,
established_timeout: Optional[int] = None,
health_check: Optional[ListenerHealthCheckArgs] = None,
http2_enabled: Optional[str] = None,
keepalive_timeout: Optional[int] = None,
listener_id: Optional[str] = None,
listener_name: Optional[str] = None,
load_balancer_id: Optional[str] = None,
max_connections: Optional[int] = None,
persistence_timeout: Optional[int] = None,
persistence_type: Optional[str] = None,
port: Optional[int] = None,
protocol: Optional[str] = None,
proxy_connect_timeout: Optional[int] = None,
proxy_protocol_type: Optional[str] = None,
proxy_read_timeout: Optional[int] = None,
proxy_send_timeout: Optional[int] = None,
scheduler: Optional[str] = None,
security_policy_id: Optional[str] = None,
send_timeout: Optional[int] = None,
server_group_id: Optional[str] = None,
start_port: Optional[int] = None,
tags: Optional[Sequence[ListenerTagArgs]] = None) -> Listenerfunc GetListener(ctx *Context, name string, id IDInput, state *ListenerState, opts ...ResourceOption) (*Listener, error)public static Listener Get(string name, Input<string> id, ListenerState? state, CustomResourceOptions? opts = null)public static Listener get(String name, Output<String> id, ListenerState state, CustomResourceOptions options)resources: _: type: volcengine:clb:Listener 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.
- Acl
Ids List<string> - The id list of the Acl.
- Acl
Status string - The enable status of Acl. Optional choice contains
on,off. - Acl
Type string - The type of the Acl. Optional choice contains
white,black. - Bandwidth int
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- Ca
Certificate stringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - Ca
Enabled string - Whether to enable CACertificate two-way authentication. Values: on, off.
- Cert
Center stringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - Certificate
Id string - The certificate id associated with the listener.
- Certificate
Source string - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - Client
Body intTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- Client
Header intTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - Connection
Drain stringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - Connection
Drain intTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - string
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - Cps int
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - Description string
- The description of the Listener.
- Enabled string
- The enable status of the Listener. Optional choice contains
on,off. - End
Port int - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - Established
Timeout int - The connection timeout of the Listener.
- Health
Check ListenerHealth Check - The config of health check.
- Http2Enabled string
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - Keepalive
Timeout int - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- Listener
Id string - The ID of the Listener.
- Listener
Name string - The name of the Listener.
- Load
Balancer stringId - The region of the request.
- Max
Connections int - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - Persistence
Timeout int - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - Persistence
Type string - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - Port int
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - Protocol string
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - Proxy
Connect intTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- Proxy
Protocol stringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - Proxy
Read intTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- Proxy
Send intTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- Scheduler string
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - Security
Policy stringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - Send
Timeout int - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- Server
Group stringId - The server group id associated with the listener.
- Start
Port int - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
List<Listener
Tag> - Tags.
- Acl
Ids []string - The id list of the Acl.
- Acl
Status string - The enable status of Acl. Optional choice contains
on,off. - Acl
Type string - The type of the Acl. Optional choice contains
white,black. - Bandwidth int
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- Ca
Certificate stringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - Ca
Enabled string - Whether to enable CACertificate two-way authentication. Values: on, off.
- Cert
Center stringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - Certificate
Id string - The certificate id associated with the listener.
- Certificate
Source string - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - Client
Body intTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- Client
Header intTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - Connection
Drain stringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - Connection
Drain intTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - string
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - Cps int
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - Description string
- The description of the Listener.
- Enabled string
- The enable status of the Listener. Optional choice contains
on,off. - End
Port int - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - Established
Timeout int - The connection timeout of the Listener.
- Health
Check ListenerHealth Check Args - The config of health check.
- Http2Enabled string
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - Keepalive
Timeout int - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- Listener
Id string - The ID of the Listener.
- Listener
Name string - The name of the Listener.
- Load
Balancer stringId - The region of the request.
- Max
Connections int - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - Persistence
Timeout int - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - Persistence
Type string - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - Port int
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - Protocol string
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - Proxy
Connect intTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- Proxy
Protocol stringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - Proxy
Read intTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- Proxy
Send intTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- Scheduler string
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - Security
Policy stringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - Send
Timeout int - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- Server
Group stringId - The server group id associated with the listener.
- Start
Port int - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
[]Listener
Tag Args - Tags.
- acl
Ids List<String> - The id list of the Acl.
- acl
Status String - The enable status of Acl. Optional choice contains
on,off. - acl
Type String - The type of the Acl. Optional choice contains
white,black. - bandwidth Integer
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- ca
Certificate StringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - ca
Enabled String - Whether to enable CACertificate two-way authentication. Values: on, off.
- cert
Center StringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - certificate
Id String - The certificate id associated with the listener.
- certificate
Source String - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - client
Body IntegerTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- client
Header IntegerTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - connection
Drain StringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - connection
Drain IntegerTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - String
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - cps Integer
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - description String
- The description of the Listener.
- enabled String
- The enable status of the Listener. Optional choice contains
on,off. - end
Port Integer - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - established
Timeout Integer - The connection timeout of the Listener.
- health
Check ListenerHealth Check - The config of health check.
- http2Enabled String
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - keepalive
Timeout Integer - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- listener
Id String - The ID of the Listener.
- listener
Name String - The name of the Listener.
- load
Balancer StringId - The region of the request.
- max
Connections Integer - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - persistence
Timeout Integer - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - persistence
Type String - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - port Integer
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - protocol String
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - proxy
Connect IntegerTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- proxy
Protocol StringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - proxy
Read IntegerTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- proxy
Send IntegerTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- scheduler String
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - security
Policy StringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - send
Timeout Integer - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- server
Group StringId - The server group id associated with the listener.
- start
Port Integer - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
List<Listener
Tag> - Tags.
- acl
Ids string[] - The id list of the Acl.
- acl
Status string - The enable status of Acl. Optional choice contains
on,off. - acl
Type string - The type of the Acl. Optional choice contains
white,black. - bandwidth number
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- ca
Certificate stringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - ca
Enabled string - Whether to enable CACertificate two-way authentication. Values: on, off.
- cert
Center stringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - certificate
Id string - The certificate id associated with the listener.
- certificate
Source string - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - client
Body numberTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- client
Header numberTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - connection
Drain stringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - connection
Drain numberTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - string
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - cps number
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - description string
- The description of the Listener.
- enabled string
- The enable status of the Listener. Optional choice contains
on,off. - end
Port number - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - established
Timeout number - The connection timeout of the Listener.
- health
Check ListenerHealth Check - The config of health check.
- http2Enabled string
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - keepalive
Timeout number - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- listener
Id string - The ID of the Listener.
- listener
Name string - The name of the Listener.
- load
Balancer stringId - The region of the request.
- max
Connections number - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - persistence
Timeout number - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - persistence
Type string - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - port number
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - protocol string
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - proxy
Connect numberTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- proxy
Protocol stringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - proxy
Read numberTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- proxy
Send numberTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- scheduler string
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - security
Policy stringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - send
Timeout number - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- server
Group stringId - The server group id associated with the listener.
- start
Port number - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
Listener
Tag[] - Tags.
- acl_
ids Sequence[str] - The id list of the Acl.
- acl_
status str - The enable status of Acl. Optional choice contains
on,off. - acl_
type str - The type of the Acl. Optional choice contains
white,black. - bandwidth int
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- ca_
certificate_ strid - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - ca_
enabled str - Whether to enable CACertificate two-way authentication. Values: on, off.
- cert_
center_ strcertificate_ id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - certificate_
id str - The certificate id associated with the listener.
- certificate_
source str - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - client_
body_ inttimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- client_
header_ inttimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - connection_
drain_ strenabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - connection_
drain_ inttimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - str
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - cps int
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - description str
- The description of the Listener.
- enabled str
- The enable status of the Listener. Optional choice contains
on,off. - end_
port int - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - established_
timeout int - The connection timeout of the Listener.
- health_
check ListenerHealth Check Args - The config of health check.
- http2_
enabled str - Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - keepalive_
timeout int - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- listener_
id str - The ID of the Listener.
- listener_
name str - The name of the Listener.
- load_
balancer_ strid - The region of the request.
- max_
connections int - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - persistence_
timeout int - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - persistence_
type str - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - port int
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - protocol str
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - proxy_
connect_ inttimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- proxy_
protocol_ strtype - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - proxy_
read_ inttimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- proxy_
send_ inttimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- scheduler str
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - security_
policy_ strid - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - send_
timeout int - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- server_
group_ strid - The server group id associated with the listener.
- start_
port int - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. -
Sequence[Listener
Tag Args] - Tags.
- acl
Ids List<String> - The id list of the Acl.
- acl
Status String - The enable status of Acl. Optional choice contains
on,off. - acl
Type String - The type of the Acl. Optional choice contains
white,black. - bandwidth Number
- The bandwidth of the Listener. Unit: Mbps. Default is -1, indicating that the Listener does not specify a speed limit.
- ca
Certificate StringId - The ID of the CA certificate which is associated with the listener. When
ca_enabledison, this parameter is required. - ca
Enabled String - Whether to enable CACertificate two-way authentication. Values: on, off.
- cert
Center StringCertificate Id - The ID of the certificate in Certificate Center. When
certificate_sourceiscert_center, this parameter is required. - certificate
Id String - The certificate id associated with the listener.
- certificate
Source String - The source of the certificate which is associated with the listener. Values:
clb,cert_center. - client
Body NumberTimeout - The client body timeout of the Listener. Only HTTP/HTTPS listeners support this parameter. value range: 30-120.
- client
Header NumberTimeout - The client header timeout of the Listener. Only HTTP/HTTPS listeners support this parameter, i.e.,
protocol=HTTPorHTTPS. value range: 30-120. - connection
Drain StringEnabled - Whether to enable connection drain of the Listener. Valid values:
off,on. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - connection
Drain NumberTimeout - The connection drain timeout of the Listener. Valid value range is
0-900. This filed is required when the value of fieldconnection_drain_enabledison. - String
- The name of the cookie for session persistence configured on the backend server. When PersistenceType is configured as
server, this parameter is required. When PersistenceType is configured as any other value, this parameter is not effective. - cps Number
- The maximum number of new connections per second allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - description String
- The description of the Listener.
- enabled String
- The enable status of the Listener. Optional choice contains
on,off. - end
Port Number - The end port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required, and must be greater thanstart_port. - established
Timeout Number - The connection timeout of the Listener.
- health
Check Property Map - The config of health check.
- http2Enabled String
- Whether the HTTPS protocol listener enables the front-end HTTP 2.0 protocol. value range:
on,off. - keepalive
Timeout Number - The timeout period for the long connection between the client and the CLB. Only HTTP/HTTPS listeners support this parameter. value range: 0-900.
- listener
Id String - The ID of the Listener.
- listener
Name String - The name of the Listener.
- load
Balancer StringId - The region of the request.
- max
Connections Number - The maximum number of connections allowed for the Listener. Default value:
-1, no limit, which is the upper limit of new connections for the CLB instance. - persistence
Timeout Number - The persistence timeout of the Listener. Unit: second. Default is
1000. When PersistenceType is configured as source_ip, the value range is 1-3600. When PersistenceType is configured as insert, the value range is 1-86400. This filed is valid only when the value of fieldpersistence_typeissource_iporinsert. - persistence
Type String - The persistence type of the Listener. Valid values:
off,source_ip,insert,server. Default isoff.source_ip: Represents the source IP address, only effective for TCP/UDP protocols.insert: means implanting a cookie, only effective for HTTP/HTTPS protocol and when the scheduler iswrr.server: Indicates rewriting cookies, only effective for HTTP/HTTPS protocols and when the scheduler iswrr. - port Number
- The port receiving request of the Listener, the value range in 0~65535. When
protocolisTCPorUDP, 0 can be passed in, indicating that full port listening is enabled. - protocol String
- The protocol of the Listener. Optional choice contains
TCP,UDP,HTTP,HTTPS. - proxy
Connect NumberTimeout - The timeout period for establishing a connection between the CLB and the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 4-120.
- proxy
Protocol StringType - Whether to enable proxy protocol. Valid values:
off,standard. Default isoff. This filed is valid only when the value of fieldprotocolisTCPorUDP. - proxy
Read NumberTimeout - The timeout period for CLB to read the response from the backend server. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- proxy
Send NumberTimeout - The timeout period for CLB to transmit requests to backend servers. Only HTTP/HTTPS listeners support this parameter. value range: 30-3600.
- scheduler String
- The scheduling algorithm of the Listener. Optional choice contains
wrr,wlc,sh. - security
Policy StringId - The TLS security policy of the HTTPS listener. Only HTTPS listeners support this parameter. value range:
default_policy,tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. - send
Timeout Number - The timeout period for CLB to send responses to the client. Only HTTP/HTTPS listeners support this parameter. value range: 1-3600.
- server
Group StringId - The server group id associated with the listener.
- start
Port Number - The start port for full port listening, with a value range of 1-65535. When
portis 0, this parameter is required. - List<Property Map>
- Tags.
Supporting Types
ListenerHealthCheck, ListenerHealthCheckArgs
- Domain string
- The domain of health check.
- Enabled string
- The enable status of health check function. Optional choice contains
on,off. - Healthy
Threshold int - The healthy threshold of health check, default 3, range in 2~10.
- Http
Code string - The normal http status code of health check, the value can be
http_2xxorhttp_3xxorhttp_4xxorhttp_5xx. - Interval int
- The interval executing health check, default 2, range in 1~300.
- Method string
- The method of health check, the value can be
GETorHEAD. - Port int
- The port for health check, with a value range of 1-65535.
- Timeout int
- The response timeout of health check, default 2, range in 1~60..
- Udp
Expect string - The UDP expect of health check. This field must be specified simultaneously with field
udp_request. - Udp
Request string - The UDP request of health check. This field must be specified simultaneously with field
udp_expect. - Un
Healthy intThreshold - The unhealthy threshold of health check, default 3, range in 2~10.
- Uri string
- The uri of health check.
- Domain string
- The domain of health check.
- Enabled string
- The enable status of health check function. Optional choice contains
on,off. - Healthy
Threshold int - The healthy threshold of health check, default 3, range in 2~10.
- Http
Code string - The normal http status code of health check, the value can be
http_2xxorhttp_3xxorhttp_4xxorhttp_5xx. - Interval int
- The interval executing health check, default 2, range in 1~300.
- Method string
- The method of health check, the value can be
GETorHEAD. - Port int
- The port for health check, with a value range of 1-65535.
- Timeout int
- The response timeout of health check, default 2, range in 1~60..
- Udp
Expect string - The UDP expect of health check. This field must be specified simultaneously with field
udp_request. - Udp
Request string - The UDP request of health check. This field must be specified simultaneously with field
udp_expect. - Un
Healthy intThreshold - The unhealthy threshold of health check, default 3, range in 2~10.
- Uri string
- The uri of health check.
- domain String
- The domain of health check.
- enabled String
- The enable status of health check function. Optional choice contains
on,off. - healthy
Threshold Integer - The healthy threshold of health check, default 3, range in 2~10.
- http
Code String - The normal http status code of health check, the value can be
http_2xxorhttp_3xxorhttp_4xxorhttp_5xx. - interval Integer
- The interval executing health check, default 2, range in 1~300.
- method String
- The method of health check, the value can be
GETorHEAD. - port Integer
- The port for health check, with a value range of 1-65535.
- timeout Integer
- The response timeout of health check, default 2, range in 1~60..
- udp
Expect String - The UDP expect of health check. This field must be specified simultaneously with field
udp_request. - udp
Request String - The UDP request of health check. This field must be specified simultaneously with field
udp_expect. - un
Healthy IntegerThreshold - The unhealthy threshold of health check, default 3, range in 2~10.
- uri String
- The uri of health check.
- domain string
- The domain of health check.
- enabled string
- The enable status of health check function. Optional choice contains
on,off. - healthy
Threshold number - The healthy threshold of health check, default 3, range in 2~10.
- http
Code string - The normal http status code of health check, the value can be
http_2xxorhttp_3xxorhttp_4xxorhttp_5xx. - interval number
- The interval executing health check, default 2, range in 1~300.
- method string
- The method of health check, the value can be
GETorHEAD. - port number
- The port for health check, with a value range of 1-65535.
- timeout number
- The response timeout of health check, default 2, range in 1~60..
- udp
Expect string - The UDP expect of health check. This field must be specified simultaneously with field
udp_request. - udp
Request string - The UDP request of health check. This field must be specified simultaneously with field
udp_expect. - un
Healthy numberThreshold - The unhealthy threshold of health check, default 3, range in 2~10.
- uri string
- The uri of health check.
- domain str
- The domain of health check.
- enabled str
- The enable status of health check function. Optional choice contains
on,off. - healthy_
threshold int - The healthy threshold of health check, default 3, range in 2~10.
- http_
code str - The normal http status code of health check, the value can be
http_2xxorhttp_3xxorhttp_4xxorhttp_5xx. - interval int
- The interval executing health check, default 2, range in 1~300.
- method str
- The method of health check, the value can be
GETorHEAD. - port int
- The port for health check, with a value range of 1-65535.
- timeout int
- The response timeout of health check, default 2, range in 1~60..
- udp_
expect str - The UDP expect of health check. This field must be specified simultaneously with field
udp_request. - udp_
request str - The UDP request of health check. This field must be specified simultaneously with field
udp_expect. - un_
healthy_ intthreshold - The unhealthy threshold of health check, default 3, range in 2~10.
- uri str
- The uri of health check.
- domain String
- The domain of health check.
- enabled String
- The enable status of health check function. Optional choice contains
on,off. - healthy
Threshold Number - The healthy threshold of health check, default 3, range in 2~10.
- http
Code String - The normal http status code of health check, the value can be
http_2xxorhttp_3xxorhttp_4xxorhttp_5xx. - interval Number
- The interval executing health check, default 2, range in 1~300.
- method String
- The method of health check, the value can be
GETorHEAD. - port Number
- The port for health check, with a value range of 1-65535.
- timeout Number
- The response timeout of health check, default 2, range in 1~60..
- udp
Expect String - The UDP expect of health check. This field must be specified simultaneously with field
udp_request. - udp
Request String - The UDP request of health check. This field must be specified simultaneously with field
udp_expect. - un
Healthy NumberThreshold - The unhealthy threshold of health check, default 3, range in 2~10.
- uri String
- The uri of health check.
ListenerTag, ListenerTagArgs
Import
Listener can be imported using the id, e.g.
$ pulumi import volcengine:clb/listener:Listener default lsn-273yv0mhs5xj47fap8sehiiso
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
