volcenginecc.clb.NlbListener
监听器负责根据指定的协议和端口,监听NLB实例接收到的用户访问请求。NLB将按照该监听器关联的服务器组配置的调度算法,将访问请求转发至该服务器组内健康的后端服务器。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const cLBNLBListenerDemo = new volcenginecc.clb.NlbListener("CLBNLBListenerDemo", {
loadBalancerId: "nlb-11zz9w3jqptz449iegfwvxxxx",
protocol: "TCP",
port: 0,
serverGroupId: "rsp-11zz9wdewa3uo49ieggq8xxxx",
connectionTimeout: 60,
description: "CLBNLBListenerDemo description",
enabled: true,
listenerName: "CLBNLBListenerDemo",
tags: [{
key: "env",
value: "Test",
}],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
c_lbnlb_listener_demo = volcenginecc.clb.NlbListener("CLBNLBListenerDemo",
load_balancer_id="nlb-11zz9w3jqptz449iegfwvxxxx",
protocol="TCP",
port=0,
server_group_id="rsp-11zz9wdewa3uo49ieggq8xxxx",
connection_timeout=60,
description="CLBNLBListenerDemo description",
enabled=True,
listener_name="CLBNLBListenerDemo",
tags=[{
"key": "env",
"value": "Test",
}])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/clb"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := clb.NewNlbListener(ctx, "CLBNLBListenerDemo", &clb.NlbListenerArgs{
LoadBalancerId: pulumi.String("nlb-11zz9w3jqptz449iegfwvxxxx"),
Protocol: pulumi.String("TCP"),
Port: pulumi.Int(0),
ServerGroupId: pulumi.String("rsp-11zz9wdewa3uo49ieggq8xxxx"),
ConnectionTimeout: pulumi.Int(60),
Description: pulumi.String("CLBNLBListenerDemo description"),
Enabled: pulumi.Bool(true),
ListenerName: pulumi.String("CLBNLBListenerDemo"),
Tags: clb.NlbListenerTagArray{
&clb.NlbListenerTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("Test"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var cLBNLBListenerDemo = new Volcenginecc.Clb.NlbListener("CLBNLBListenerDemo", new()
{
LoadBalancerId = "nlb-11zz9w3jqptz449iegfwvxxxx",
Protocol = "TCP",
Port = 0,
ServerGroupId = "rsp-11zz9wdewa3uo49ieggq8xxxx",
ConnectionTimeout = 60,
Description = "CLBNLBListenerDemo description",
Enabled = true,
ListenerName = "CLBNLBListenerDemo",
Tags = new[]
{
new Volcenginecc.Clb.Inputs.NlbListenerTagArgs
{
Key = "env",
Value = "Test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.clb.NlbListener;
import com.volcengine.volcenginecc.clb.NlbListenerArgs;
import com.pulumi.volcenginecc.clb.inputs.NlbListenerTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cLBNLBListenerDemo = new NlbListener("cLBNLBListenerDemo", NlbListenerArgs.builder()
.loadBalancerId("nlb-11zz9w3jqptz449iegfwvxxxx")
.protocol("TCP")
.port(0)
.serverGroupId("rsp-11zz9wdewa3uo49ieggq8xxxx")
.connectionTimeout(60)
.description("CLBNLBListenerDemo description")
.enabled(true)
.listenerName("CLBNLBListenerDemo")
.tags(NlbListenerTagArgs.builder()
.key("env")
.value("Test")
.build())
.build());
}
}
resources:
cLBNLBListenerDemo:
type: volcenginecc:clb:NlbListener
name: CLBNLBListenerDemo
properties:
loadBalancerId: nlb-11zz9w3jqptz449iegfwvxxxx
protocol: TCP
port: 0
serverGroupId: rsp-11zz9wdewa3uo49ieggq8xxxx
connectionTimeout: 60
description: CLBNLBListenerDemo description
enabled: true
listenerName: CLBNLBListenerDemo
tags:
- key: env
value: Test
Create NlbListener Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NlbListener(name: string, args: NlbListenerArgs, opts?: CustomResourceOptions);
@overload
def NlbListener(resource_name: str,
args: NlbListenerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NlbListener(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,
enabled: Optional[bool] = None,
healths: Optional[Sequence[NlbListenerHealthArgs]] = None,
listener_name: Optional[str] = None,
end_port: Optional[int] = None,
certificate_id: Optional[str] = None,
description: Optional[str] = None,
security_policy_id: Optional[str] = None,
connection_timeout: Optional[int] = None,
start_port: Optional[int] = None,
tags: Optional[Sequence[NlbListenerTagArgs]] = None)
func NewNlbListener(ctx *Context, name string, args NlbListenerArgs, opts ...ResourceOption) (*NlbListener, error)
public NlbListener(string name, NlbListenerArgs args, CustomResourceOptions? opts = null)
public NlbListener(String name, NlbListenerArgs args)
public NlbListener(String name, NlbListenerArgs args, CustomResourceOptions options)
type: volcenginecc:clb:NlbListener
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 NlbListenerArgs
- 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 NlbListenerArgs
- 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 NlbListenerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NlbListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NlbListenerArgs
- 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 nlbListenerResource = new Volcenginecc.Clb.NlbListener("nlbListenerResource", new()
{
LoadBalancerId = "string",
ServerGroupId = "string",
Protocol = "string",
Port = 0,
Enabled = false,
Healths = new[]
{
new Volcenginecc.Clb.Inputs.NlbListenerHealthArgs
{
InstanceId = "string",
Ip = "string",
Port = 0,
ServerId = "string",
ServerType = "string",
Status = "string",
UpdatedTime = "string",
ZoneId = "string",
},
},
ListenerName = "string",
EndPort = 0,
CertificateId = "string",
Description = "string",
SecurityPolicyId = "string",
ConnectionTimeout = 0,
StartPort = 0,
Tags = new[]
{
new Volcenginecc.Clb.Inputs.NlbListenerTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := clb.NewNlbListener(ctx, "nlbListenerResource", &clb.NlbListenerArgs{
LoadBalancerId: pulumi.String("string"),
ServerGroupId: pulumi.String("string"),
Protocol: pulumi.String("string"),
Port: pulumi.Int(0),
Enabled: pulumi.Bool(false),
Healths: clb.NlbListenerHealthArray{
&clb.NlbListenerHealthArgs{
InstanceId: pulumi.String("string"),
Ip: pulumi.String("string"),
Port: pulumi.Int(0),
ServerId: pulumi.String("string"),
ServerType: pulumi.String("string"),
Status: pulumi.String("string"),
UpdatedTime: pulumi.String("string"),
ZoneId: pulumi.String("string"),
},
},
ListenerName: pulumi.String("string"),
EndPort: pulumi.Int(0),
CertificateId: pulumi.String("string"),
Description: pulumi.String("string"),
SecurityPolicyId: pulumi.String("string"),
ConnectionTimeout: pulumi.Int(0),
StartPort: pulumi.Int(0),
Tags: clb.NlbListenerTagArray{
&clb.NlbListenerTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var nlbListenerResource = new NlbListener("nlbListenerResource", NlbListenerArgs.builder()
.loadBalancerId("string")
.serverGroupId("string")
.protocol("string")
.port(0)
.enabled(false)
.healths(NlbListenerHealthArgs.builder()
.instanceId("string")
.ip("string")
.port(0)
.serverId("string")
.serverType("string")
.status("string")
.updatedTime("string")
.zoneId("string")
.build())
.listenerName("string")
.endPort(0)
.certificateId("string")
.description("string")
.securityPolicyId("string")
.connectionTimeout(0)
.startPort(0)
.tags(NlbListenerTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
nlb_listener_resource = volcenginecc.clb.NlbListener("nlbListenerResource",
load_balancer_id="string",
server_group_id="string",
protocol="string",
port=0,
enabled=False,
healths=[{
"instance_id": "string",
"ip": "string",
"port": 0,
"server_id": "string",
"server_type": "string",
"status": "string",
"updated_time": "string",
"zone_id": "string",
}],
listener_name="string",
end_port=0,
certificate_id="string",
description="string",
security_policy_id="string",
connection_timeout=0,
start_port=0,
tags=[{
"key": "string",
"value": "string",
}])
const nlbListenerResource = new volcenginecc.clb.NlbListener("nlbListenerResource", {
loadBalancerId: "string",
serverGroupId: "string",
protocol: "string",
port: 0,
enabled: false,
healths: [{
instanceId: "string",
ip: "string",
port: 0,
serverId: "string",
serverType: "string",
status: "string",
updatedTime: "string",
zoneId: "string",
}],
listenerName: "string",
endPort: 0,
certificateId: "string",
description: "string",
securityPolicyId: "string",
connectionTimeout: 0,
startPort: 0,
tags: [{
key: "string",
value: "string",
}],
});
type: volcenginecc:clb:NlbListener
properties:
certificateId: string
connectionTimeout: 0
description: string
enabled: false
endPort: 0
healths:
- instanceId: string
ip: string
port: 0
serverId: string
serverType: string
status: string
updatedTime: string
zoneId: string
listenerName: string
loadBalancerId: string
port: 0
protocol: string
securityPolicyId: string
serverGroupId: string
startPort: 0
tags:
- key: string
value: string
NlbListener 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 NlbListener resource accepts the following input properties:
- Load
Balancer stringId - 负载均衡实例ID。
- Port int
- 监听器接收请求的端口,0表示启用全端口监听。
- Protocol string
- 监听协议类型。
- Server
Group stringId - 监听器关联的服务器组ID。
- Certificate
Id string - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- Connection
Timeout int - 监听器的连接超时时间(秒)。
- Description string
- 监听器描述信息。
- Enabled bool
- 是否启用监听器。true:开启;false:关闭。
- End
Port int - 全端口监听的结束端口,仅当Port为0时有效。
- Healths
List<Volcengine.
Nlb Listener Health> - Listener
Name string - 监听器名称。
- Security
Policy stringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- Start
Port int - 全端口监听的起始端口,仅当Port为0时有效。
- List<Volcengine.
Nlb Listener Tag>
- Load
Balancer stringId - 负载均衡实例ID。
- Port int
- 监听器接收请求的端口,0表示启用全端口监听。
- Protocol string
- 监听协议类型。
- Server
Group stringId - 监听器关联的服务器组ID。
- Certificate
Id string - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- Connection
Timeout int - 监听器的连接超时时间(秒)。
- Description string
- 监听器描述信息。
- Enabled bool
- 是否启用监听器。true:开启;false:关闭。
- End
Port int - 全端口监听的结束端口,仅当Port为0时有效。
- Healths
[]Nlb
Listener Health Args - Listener
Name string - 监听器名称。
- Security
Policy stringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- Start
Port int - 全端口监听的起始端口,仅当Port为0时有效。
- []Nlb
Listener Tag Args
- load
Balancer StringId - 负载均衡实例ID。
- port Integer
- 监听器接收请求的端口,0表示启用全端口监听。
- protocol String
- 监听协议类型。
- server
Group StringId - 监听器关联的服务器组ID。
- certificate
Id String - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- connection
Timeout Integer - 监听器的连接超时时间(秒)。
- description String
- 监听器描述信息。
- enabled Boolean
- 是否启用监听器。true:开启;false:关闭。
- end
Port Integer - 全端口监听的结束端口,仅当Port为0时有效。
- healths
List<Nlb
Listener Health> - listener
Name String - 监听器名称。
- security
Policy StringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- start
Port Integer - 全端口监听的起始端口,仅当Port为0时有效。
- List<Nlb
Listener Tag>
- load
Balancer stringId - 负载均衡实例ID。
- port number
- 监听器接收请求的端口,0表示启用全端口监听。
- protocol string
- 监听协议类型。
- server
Group stringId - 监听器关联的服务器组ID。
- certificate
Id string - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- connection
Timeout number - 监听器的连接超时时间(秒)。
- description string
- 监听器描述信息。
- enabled boolean
- 是否启用监听器。true:开启;false:关闭。
- end
Port number - 全端口监听的结束端口,仅当Port为0时有效。
- healths
Nlb
Listener Health[] - listener
Name string - 监听器名称。
- security
Policy stringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- start
Port number - 全端口监听的起始端口,仅当Port为0时有效。
- Nlb
Listener Tag[]
- load_
balancer_ strid - 负载均衡实例ID。
- port int
- 监听器接收请求的端口,0表示启用全端口监听。
- protocol str
- 监听协议类型。
- server_
group_ strid - 监听器关联的服务器组ID。
- certificate_
id str - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- connection_
timeout int - 监听器的连接超时时间(秒)。
- description str
- 监听器描述信息。
- enabled bool
- 是否启用监听器。true:开启;false:关闭。
- end_
port int - 全端口监听的结束端口,仅当Port为0时有效。
- healths
Sequence[Nlb
Listener Health Args] - listener_
name str - 监听器名称。
- security_
policy_ strid - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- start_
port int - 全端口监听的起始端口,仅当Port为0时有效。
- Sequence[Nlb
Listener Tag Args]
- load
Balancer StringId - 负载均衡实例ID。
- port Number
- 监听器接收请求的端口,0表示启用全端口监听。
- protocol String
- 监听协议类型。
- server
Group StringId - 监听器关联的服务器组ID。
- certificate
Id String - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- connection
Timeout Number - 监听器的连接超时时间(秒)。
- description String
- 监听器描述信息。
- enabled Boolean
- 是否启用监听器。true:开启;false:关闭。
- end
Port Number - 全端口监听的结束端口,仅当Port为0时有效。
- healths List<Property Map>
- listener
Name String - 监听器名称。
- security
Policy StringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- start
Port Number - 全端口监听的起始端口,仅当Port为0时有效。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the NlbListener resource produces the following output properties:
- Created
Time string - 监听器的创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - 监听器唯一标识。
- Status string
- 监听器的状态。
- Updated
Time string - 监听器最近操作时间。
- Created
Time string - 监听器的创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Id string - 监听器唯一标识。
- Status string
- 监听器的状态。
- Updated
Time string - 监听器最近操作时间。
- created
Time String - 监听器的创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - 监听器唯一标识。
- status String
- 监听器的状态。
- updated
Time String - 监听器最近操作时间。
- created
Time string - 监听器的创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- listener
Id string - 监听器唯一标识。
- status string
- 监听器的状态。
- updated
Time string - 监听器最近操作时间。
- created_
time str - 监听器的创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- listener_
id str - 监听器唯一标识。
- status str
- 监听器的状态。
- updated_
time str - 监听器最近操作时间。
- created
Time String - 监听器的创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Id String - 监听器唯一标识。
- status String
- 监听器的状态。
- updated
Time String - 监听器最近操作时间。
Look up Existing NlbListener Resource
Get an existing NlbListener 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?: NlbListenerState, opts?: CustomResourceOptions): NlbListener
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
connection_timeout: Optional[int] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
end_port: Optional[int] = None,
healths: Optional[Sequence[NlbListenerHealthArgs]] = None,
listener_id: Optional[str] = None,
listener_name: Optional[str] = None,
load_balancer_id: Optional[str] = None,
port: Optional[int] = None,
protocol: Optional[str] = None,
security_policy_id: Optional[str] = None,
server_group_id: Optional[str] = None,
start_port: Optional[int] = None,
status: Optional[str] = None,
tags: Optional[Sequence[NlbListenerTagArgs]] = None,
updated_time: Optional[str] = None) -> NlbListener
func GetNlbListener(ctx *Context, name string, id IDInput, state *NlbListenerState, opts ...ResourceOption) (*NlbListener, error)
public static NlbListener Get(string name, Input<string> id, NlbListenerState? state, CustomResourceOptions? opts = null)
public static NlbListener get(String name, Output<String> id, NlbListenerState state, CustomResourceOptions options)
resources: _: type: volcenginecc:clb:NlbListener 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.
- Certificate
Id string - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- Connection
Timeout int - 监听器的连接超时时间(秒)。
- Created
Time string - 监听器的创建时间。
- Description string
- 监听器描述信息。
- Enabled bool
- 是否启用监听器。true:开启;false:关闭。
- End
Port int - 全端口监听的结束端口,仅当Port为0时有效。
- Healths
List<Volcengine.
Nlb Listener Health> - Listener
Id string - 监听器唯一标识。
- Listener
Name string - 监听器名称。
- Load
Balancer stringId - 负载均衡实例ID。
- Port int
- 监听器接收请求的端口,0表示启用全端口监听。
- Protocol string
- 监听协议类型。
- Security
Policy stringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- Server
Group stringId - 监听器关联的服务器组ID。
- Start
Port int - 全端口监听的起始端口,仅当Port为0时有效。
- Status string
- 监听器的状态。
- List<Volcengine.
Nlb Listener Tag> - Updated
Time string - 监听器最近操作时间。
- Certificate
Id string - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- Connection
Timeout int - 监听器的连接超时时间(秒)。
- Created
Time string - 监听器的创建时间。
- Description string
- 监听器描述信息。
- Enabled bool
- 是否启用监听器。true:开启;false:关闭。
- End
Port int - 全端口监听的结束端口,仅当Port为0时有效。
- Healths
[]Nlb
Listener Health Args - Listener
Id string - 监听器唯一标识。
- Listener
Name string - 监听器名称。
- Load
Balancer stringId - 负载均衡实例ID。
- Port int
- 监听器接收请求的端口,0表示启用全端口监听。
- Protocol string
- 监听协议类型。
- Security
Policy stringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- Server
Group stringId - 监听器关联的服务器组ID。
- Start
Port int - 全端口监听的起始端口,仅当Port为0时有效。
- Status string
- 监听器的状态。
- []Nlb
Listener Tag Args - Updated
Time string - 监听器最近操作时间。
- certificate
Id String - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- connection
Timeout Integer - 监听器的连接超时时间(秒)。
- created
Time String - 监听器的创建时间。
- description String
- 监听器描述信息。
- enabled Boolean
- 是否启用监听器。true:开启;false:关闭。
- end
Port Integer - 全端口监听的结束端口,仅当Port为0时有效。
- healths
List<Nlb
Listener Health> - listener
Id String - 监听器唯一标识。
- listener
Name String - 监听器名称。
- load
Balancer StringId - 负载均衡实例ID。
- port Integer
- 监听器接收请求的端口,0表示启用全端口监听。
- protocol String
- 监听协议类型。
- security
Policy StringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- server
Group StringId - 监听器关联的服务器组ID。
- start
Port Integer - 全端口监听的起始端口,仅当Port为0时有效。
- status String
- 监听器的状态。
- List<Nlb
Listener Tag> - updated
Time String - 监听器最近操作时间。
- certificate
Id string - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- connection
Timeout number - 监听器的连接超时时间(秒)。
- created
Time string - 监听器的创建时间。
- description string
- 监听器描述信息。
- enabled boolean
- 是否启用监听器。true:开启;false:关闭。
- end
Port number - 全端口监听的结束端口,仅当Port为0时有效。
- healths
Nlb
Listener Health[] - listener
Id string - 监听器唯一标识。
- listener
Name string - 监听器名称。
- load
Balancer stringId - 负载均衡实例ID。
- port number
- 监听器接收请求的端口,0表示启用全端口监听。
- protocol string
- 监听协议类型。
- security
Policy stringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- server
Group stringId - 监听器关联的服务器组ID。
- start
Port number - 全端口监听的起始端口,仅当Port为0时有效。
- status string
- 监听器的状态。
- Nlb
Listener Tag[] - updated
Time string - 监听器最近操作时间。
- certificate_
id str - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- connection_
timeout int - 监听器的连接超时时间(秒)。
- created_
time str - 监听器的创建时间。
- description str
- 监听器描述信息。
- enabled bool
- 是否启用监听器。true:开启;false:关闭。
- end_
port int - 全端口监听的结束端口,仅当Port为0时有效。
- healths
Sequence[Nlb
Listener Health Args] - listener_
id str - 监听器唯一标识。
- listener_
name str - 监听器名称。
- load_
balancer_ strid - 负载均衡实例ID。
- port int
- 监听器接收请求的端口,0表示启用全端口监听。
- protocol str
- 监听协议类型。
- security_
policy_ strid - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- server_
group_ strid - 监听器关联的服务器组ID。
- start_
port int - 全端口监听的起始端口,仅当Port为0时有效。
- status str
- 监听器的状态。
- Sequence[Nlb
Listener Tag Args] - updated_
time str - 监听器最近操作时间。
- certificate
Id String - TLS监听器服务器证书的ID,仅支持传入火山引擎证书中心 SSL 证书。。
- connection
Timeout Number - 监听器的连接超时时间(秒)。
- created
Time String - 监听器的创建时间。
- description String
- 监听器描述信息。
- enabled Boolean
- 是否启用监听器。true:开启;false:关闭。
- end
Port Number - 全端口监听的结束端口,仅当Port为0时有效。
- healths List<Property Map>
- listener
Id String - 监听器唯一标识。
- listener
Name String - 监听器名称。
- load
Balancer StringId - 负载均衡实例ID。
- port Number
- 监听器接收请求的端口,0表示启用全端口监听。
- protocol String
- 监听协议类型。
- security
Policy StringId - TLS 安全策略ID,支持系统安全策略和自定义安全策略。系统安全策略取值:.tlscipherpolicy10.tlscipherpolicy11.tlscipherpolicy12.tlscipherpolicy12strict.tlscipherpolicy12strictwith1_3.自定义安全策略:输入自定义安全策略 ID。当Protocol为TLS 时,该参数为必填。。
- server
Group StringId - 监听器关联的服务器组ID。
- start
Port Number - 全端口监听的起始端口,仅当Port为0时有效。
- status String
- 监听器的状态。
- List<Property Map>
- updated
Time String - 监听器最近操作时间。
Supporting Types
NlbListenerHealth, NlbListenerHealthArgs
- Instance
Id string - 后端服务器的实例 ID或IP地址。
- Ip string
- 后端服务器的IP地址。
- Port int
- 后端服务器提供服务的端口。
- Server
Id string - 后端服务器ID。
- Server
Type string - 后端服务器的类型。ecs:云服务器实例(即主网卡);eni:辅助网卡;ip:IP地址
- Status string
- 后端服务器的健康状态。Up:正常;Down:异常;Unused:未被使用(NLB实例已关闭跨可用区转发,且没有来自该后端服务器可用区的访问流量)。
- Updated
Time string - 健康状态最后更新时间。
- Zone
Id string - 后端服务器接收访问流量的可用区ID。
- Instance
Id string - 后端服务器的实例 ID或IP地址。
- Ip string
- 后端服务器的IP地址。
- Port int
- 后端服务器提供服务的端口。
- Server
Id string - 后端服务器ID。
- Server
Type string - 后端服务器的类型。ecs:云服务器实例(即主网卡);eni:辅助网卡;ip:IP地址
- Status string
- 后端服务器的健康状态。Up:正常;Down:异常;Unused:未被使用(NLB实例已关闭跨可用区转发,且没有来自该后端服务器可用区的访问流量)。
- Updated
Time string - 健康状态最后更新时间。
- Zone
Id string - 后端服务器接收访问流量的可用区ID。
- instance
Id String - 后端服务器的实例 ID或IP地址。
- ip String
- 后端服务器的IP地址。
- port Integer
- 后端服务器提供服务的端口。
- server
Id String - 后端服务器ID。
- server
Type String - 后端服务器的类型。ecs:云服务器实例(即主网卡);eni:辅助网卡;ip:IP地址
- status String
- 后端服务器的健康状态。Up:正常;Down:异常;Unused:未被使用(NLB实例已关闭跨可用区转发,且没有来自该后端服务器可用区的访问流量)。
- updated
Time String - 健康状态最后更新时间。
- zone
Id String - 后端服务器接收访问流量的可用区ID。
- instance
Id string - 后端服务器的实例 ID或IP地址。
- ip string
- 后端服务器的IP地址。
- port number
- 后端服务器提供服务的端口。
- server
Id string - 后端服务器ID。
- server
Type string - 后端服务器的类型。ecs:云服务器实例(即主网卡);eni:辅助网卡;ip:IP地址
- status string
- 后端服务器的健康状态。Up:正常;Down:异常;Unused:未被使用(NLB实例已关闭跨可用区转发,且没有来自该后端服务器可用区的访问流量)。
- updated
Time string - 健康状态最后更新时间。
- zone
Id string - 后端服务器接收访问流量的可用区ID。
- instance_
id str - 后端服务器的实例 ID或IP地址。
- ip str
- 后端服务器的IP地址。
- port int
- 后端服务器提供服务的端口。
- server_
id str - 后端服务器ID。
- server_
type str - 后端服务器的类型。ecs:云服务器实例(即主网卡);eni:辅助网卡;ip:IP地址
- status str
- 后端服务器的健康状态。Up:正常;Down:异常;Unused:未被使用(NLB实例已关闭跨可用区转发,且没有来自该后端服务器可用区的访问流量)。
- updated_
time str - 健康状态最后更新时间。
- zone_
id str - 后端服务器接收访问流量的可用区ID。
- instance
Id String - 后端服务器的实例 ID或IP地址。
- ip String
- 后端服务器的IP地址。
- port Number
- 后端服务器提供服务的端口。
- server
Id String - 后端服务器ID。
- server
Type String - 后端服务器的类型。ecs:云服务器实例(即主网卡);eni:辅助网卡;ip:IP地址
- status String
- 后端服务器的健康状态。Up:正常;Down:异常;Unused:未被使用(NLB实例已关闭跨可用区转发,且没有来自该后端服务器可用区的访问流量)。
- updated
Time String - 健康状态最后更新时间。
- zone
Id String - 后端服务器接收访问流量的可用区ID。
NlbListenerTag, NlbListenerTagArgs
Import
$ pulumi import volcenginecc:clb/nlbListener:NlbListener example "listener_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcenginecc
Terraform Provider.