tencentcloud.ClbListenerRule
Explore with Pulumi AI
Provides a resource to create a CLB listener rule.
NOTE: This resource only be applied to the HTTP or HTTPS listeners.
Example Usage
Create a single domain listener rule
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ClbListenerRule("example", {
certificateCaId: "VfqO4zkB",
certificateId: "VjANRdz8",
certificateSslMode: "MUTUAL",
clbId: "lb-k2zjp9lv",
domain: "example.com",
healthCheckHealthNum: 3,
healthCheckHttpCode: 2,
healthCheckHttpDomain: "check.com",
healthCheckHttpMethod: "GET",
healthCheckHttpPath: "/",
healthCheckIntervalTime: 5,
healthCheckSwitch: true,
healthCheckUnhealthNum: 3,
listenerId: "lbl-hh141sn9",
scheduler: "WRR",
sessionExpireTime: 30,
url: "/",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ClbListenerRule("example",
certificate_ca_id="VfqO4zkB",
certificate_id="VjANRdz8",
certificate_ssl_mode="MUTUAL",
clb_id="lb-k2zjp9lv",
domain="example.com",
health_check_health_num=3,
health_check_http_code=2,
health_check_http_domain="check.com",
health_check_http_method="GET",
health_check_http_path="/",
health_check_interval_time=5,
health_check_switch=True,
health_check_unhealth_num=3,
listener_id="lbl-hh141sn9",
scheduler="WRR",
session_expire_time=30,
url="/")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewClbListenerRule(ctx, "example", &tencentcloud.ClbListenerRuleArgs{
CertificateCaId: pulumi.String("VfqO4zkB"),
CertificateId: pulumi.String("VjANRdz8"),
CertificateSslMode: pulumi.String("MUTUAL"),
ClbId: pulumi.String("lb-k2zjp9lv"),
Domain: pulumi.String("example.com"),
HealthCheckHealthNum: pulumi.Float64(3),
HealthCheckHttpCode: pulumi.Float64(2),
HealthCheckHttpDomain: pulumi.String("check.com"),
HealthCheckHttpMethod: pulumi.String("GET"),
HealthCheckHttpPath: pulumi.String("/"),
HealthCheckIntervalTime: pulumi.Float64(5),
HealthCheckSwitch: pulumi.Bool(true),
HealthCheckUnhealthNum: pulumi.Float64(3),
ListenerId: pulumi.String("lbl-hh141sn9"),
Scheduler: pulumi.String("WRR"),
SessionExpireTime: pulumi.Float64(30),
Url: pulumi.String("/"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.ClbListenerRule("example", new()
{
CertificateCaId = "VfqO4zkB",
CertificateId = "VjANRdz8",
CertificateSslMode = "MUTUAL",
ClbId = "lb-k2zjp9lv",
Domain = "example.com",
HealthCheckHealthNum = 3,
HealthCheckHttpCode = 2,
HealthCheckHttpDomain = "check.com",
HealthCheckHttpMethod = "GET",
HealthCheckHttpPath = "/",
HealthCheckIntervalTime = 5,
HealthCheckSwitch = true,
HealthCheckUnhealthNum = 3,
ListenerId = "lbl-hh141sn9",
Scheduler = "WRR",
SessionExpireTime = 30,
Url = "/",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbListenerRule;
import com.pulumi.tencentcloud.ClbListenerRuleArgs;
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 example = new ClbListenerRule("example", ClbListenerRuleArgs.builder()
.certificateCaId("VfqO4zkB")
.certificateId("VjANRdz8")
.certificateSslMode("MUTUAL")
.clbId("lb-k2zjp9lv")
.domain("example.com")
.healthCheckHealthNum(3)
.healthCheckHttpCode(2)
.healthCheckHttpDomain("check.com")
.healthCheckHttpMethod("GET")
.healthCheckHttpPath("/")
.healthCheckIntervalTime(5)
.healthCheckSwitch(true)
.healthCheckUnhealthNum(3)
.listenerId("lbl-hh141sn9")
.scheduler("WRR")
.sessionExpireTime(30)
.url("/")
.build());
}
}
resources:
example:
type: tencentcloud:ClbListenerRule
properties:
certificateCaId: VfqO4zkB
certificateId: VjANRdz8
certificateSslMode: MUTUAL
clbId: lb-k2zjp9lv
domain: example.com
healthCheckHealthNum: 3
healthCheckHttpCode: 2
healthCheckHttpDomain: check.com
healthCheckHttpMethod: GET
healthCheckHttpPath: /
healthCheckIntervalTime: 5
healthCheckSwitch: true
healthCheckUnhealthNum: 3
listenerId: lbl-hh141sn9
scheduler: WRR
sessionExpireTime: 30
url: /
Create a listener rule for domain lists
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ClbListenerRule("example", {
clbId: "lb-l6cp6jt4",
domains: [
"example1.com",
"example2.com",
],
healthCheckHealthNum: 3,
healthCheckHttpCode: 15,
healthCheckHttpDomain: "check.com",
healthCheckHttpMethod: "GET",
healthCheckHttpPath: "/",
healthCheckIntervalTime: 5,
healthCheckPort: 8080,
healthCheckSwitch: true,
healthCheckTimeOut: 2,
healthCheckType: "HTTP",
healthCheckUnhealthNum: 3,
listenerId: "lbl-2qzcv7oq",
multiCertInfo: {
certIdLists: [
"LCYouprI",
"JVO1alRN",
],
sslMode: "UNIDIRECTIONAL",
},
scheduler: "WRR",
url: "/",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ClbListenerRule("example",
clb_id="lb-l6cp6jt4",
domains=[
"example1.com",
"example2.com",
],
health_check_health_num=3,
health_check_http_code=15,
health_check_http_domain="check.com",
health_check_http_method="GET",
health_check_http_path="/",
health_check_interval_time=5,
health_check_port=8080,
health_check_switch=True,
health_check_time_out=2,
health_check_type="HTTP",
health_check_unhealth_num=3,
listener_id="lbl-2qzcv7oq",
multi_cert_info={
"cert_id_lists": [
"LCYouprI",
"JVO1alRN",
],
"ssl_mode": "UNIDIRECTIONAL",
},
scheduler="WRR",
url="/")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewClbListenerRule(ctx, "example", &tencentcloud.ClbListenerRuleArgs{
ClbId: pulumi.String("lb-l6cp6jt4"),
Domains: pulumi.StringArray{
pulumi.String("example1.com"),
pulumi.String("example2.com"),
},
HealthCheckHealthNum: pulumi.Float64(3),
HealthCheckHttpCode: pulumi.Float64(15),
HealthCheckHttpDomain: pulumi.String("check.com"),
HealthCheckHttpMethod: pulumi.String("GET"),
HealthCheckHttpPath: pulumi.String("/"),
HealthCheckIntervalTime: pulumi.Float64(5),
HealthCheckPort: pulumi.Float64(8080),
HealthCheckSwitch: pulumi.Bool(true),
HealthCheckTimeOut: pulumi.Float64(2),
HealthCheckType: pulumi.String("HTTP"),
HealthCheckUnhealthNum: pulumi.Float64(3),
ListenerId: pulumi.String("lbl-2qzcv7oq"),
MultiCertInfo: &tencentcloud.ClbListenerRuleMultiCertInfoArgs{
CertIdLists: pulumi.StringArray{
pulumi.String("LCYouprI"),
pulumi.String("JVO1alRN"),
},
SslMode: pulumi.String("UNIDIRECTIONAL"),
},
Scheduler: pulumi.String("WRR"),
Url: pulumi.String("/"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.ClbListenerRule("example", new()
{
ClbId = "lb-l6cp6jt4",
Domains = new[]
{
"example1.com",
"example2.com",
},
HealthCheckHealthNum = 3,
HealthCheckHttpCode = 15,
HealthCheckHttpDomain = "check.com",
HealthCheckHttpMethod = "GET",
HealthCheckHttpPath = "/",
HealthCheckIntervalTime = 5,
HealthCheckPort = 8080,
HealthCheckSwitch = true,
HealthCheckTimeOut = 2,
HealthCheckType = "HTTP",
HealthCheckUnhealthNum = 3,
ListenerId = "lbl-2qzcv7oq",
MultiCertInfo = new Tencentcloud.Inputs.ClbListenerRuleMultiCertInfoArgs
{
CertIdLists = new[]
{
"LCYouprI",
"JVO1alRN",
},
SslMode = "UNIDIRECTIONAL",
},
Scheduler = "WRR",
Url = "/",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbListenerRule;
import com.pulumi.tencentcloud.ClbListenerRuleArgs;
import com.pulumi.tencentcloud.inputs.ClbListenerRuleMultiCertInfoArgs;
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 example = new ClbListenerRule("example", ClbListenerRuleArgs.builder()
.clbId("lb-l6cp6jt4")
.domains(
"example1.com",
"example2.com")
.healthCheckHealthNum(3)
.healthCheckHttpCode(15)
.healthCheckHttpDomain("check.com")
.healthCheckHttpMethod("GET")
.healthCheckHttpPath("/")
.healthCheckIntervalTime(5)
.healthCheckPort(8080)
.healthCheckSwitch(true)
.healthCheckTimeOut(2)
.healthCheckType("HTTP")
.healthCheckUnhealthNum(3)
.listenerId("lbl-2qzcv7oq")
.multiCertInfo(ClbListenerRuleMultiCertInfoArgs.builder()
.certIdLists(
"LCYouprI",
"JVO1alRN")
.sslMode("UNIDIRECTIONAL")
.build())
.scheduler("WRR")
.url("/")
.build());
}
}
resources:
example:
type: tencentcloud:ClbListenerRule
properties:
clbId: lb-l6cp6jt4
domains:
- example1.com
- example2.com
healthCheckHealthNum: 3
healthCheckHttpCode: 15
healthCheckHttpDomain: check.com
healthCheckHttpMethod: GET
healthCheckHttpPath: /
healthCheckIntervalTime: 5
healthCheckPort: 8080
healthCheckSwitch: true
healthCheckTimeOut: 2
healthCheckType: HTTP
healthCheckUnhealthNum: 3
listenerId: lbl-2qzcv7oq
multiCertInfo:
certIdLists:
- LCYouprI
- JVO1alRN
sslMode: UNIDIRECTIONAL
scheduler: WRR
url: /
Create ClbListenerRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClbListenerRule(name: string, args: ClbListenerRuleArgs, opts?: CustomResourceOptions);
@overload
def ClbListenerRule(resource_name: str,
args: ClbListenerRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClbListenerRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
clb_id: Optional[str] = None,
url: Optional[str] = None,
listener_id: Optional[str] = None,
forward_type: Optional[str] = None,
health_check_time_out: Optional[float] = None,
domain: Optional[str] = None,
domains: Optional[Sequence[str]] = None,
certificate_ca_id: Optional[str] = None,
health_check_health_num: Optional[float] = None,
health_check_http_code: Optional[float] = None,
health_check_http_domain: Optional[str] = None,
health_check_http_method: Optional[str] = None,
health_check_http_path: Optional[str] = None,
health_check_interval_time: Optional[float] = None,
health_check_port: Optional[float] = None,
health_check_switch: Optional[bool] = None,
clb_listener_rule_id: Optional[str] = None,
health_check_type: Optional[str] = None,
health_check_unhealth_num: Optional[float] = None,
health_source_ip_type: Optional[float] = None,
http2_switch: Optional[bool] = None,
certificate_ssl_mode: Optional[str] = None,
multi_cert_info: Optional[ClbListenerRuleMultiCertInfoArgs] = None,
oauth: Optional[ClbListenerRuleOauthArgs] = None,
quic: Optional[bool] = None,
scheduler: Optional[str] = None,
session_expire_time: Optional[float] = None,
target_type: Optional[str] = None,
certificate_id: Optional[str] = None)
func NewClbListenerRule(ctx *Context, name string, args ClbListenerRuleArgs, opts ...ResourceOption) (*ClbListenerRule, error)
public ClbListenerRule(string name, ClbListenerRuleArgs args, CustomResourceOptions? opts = null)
public ClbListenerRule(String name, ClbListenerRuleArgs args)
public ClbListenerRule(String name, ClbListenerRuleArgs args, CustomResourceOptions options)
type: tencentcloud:ClbListenerRule
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 ClbListenerRuleArgs
- 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 ClbListenerRuleArgs
- 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 ClbListenerRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClbListenerRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClbListenerRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClbListenerRule 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 ClbListenerRule resource accepts the following input properties:
- Clb
Id string - ID of CLB instance.
- Listener
Id string - ID of CLB listener.
- Url string
- Url of the listener rule.
- Certificate
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- Certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- Certificate
Ssl stringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - Clb
Listener stringRule Id - ID of the resource.
- Domain string
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - Domains List<string>
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - Forward
Type string - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - Health
Check doubleHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Check doubleHttp Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - Health
Check stringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - Health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - Health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - Health
Check doubleInterval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Check doublePort - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- Health
Check boolSwitch - Indicates whether health check is enabled.
- Health
Check doubleTime Out - Time out of health check. The value range is 2-60.
- Health
Check stringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - Health
Check doubleUnhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Source doubleIp Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - Http2Switch bool
- Indicate to apply HTTP2.0 protocol or not.
- Multi
Cert ClbInfo Listener Rule Multi Cert Info - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- Oauth
Clb
Listener Rule Oauth - OAuth configuration information.
- Quic bool
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- Scheduler string
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Session
Expire doubleTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Target
Type string - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group.
- Clb
Id string - ID of CLB instance.
- Listener
Id string - ID of CLB listener.
- Url string
- Url of the listener rule.
- Certificate
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- Certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- Certificate
Ssl stringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - Clb
Listener stringRule Id - ID of the resource.
- Domain string
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - Domains []string
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - Forward
Type string - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - Health
Check float64Health Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Check float64Http Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - Health
Check stringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - Health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - Health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - Health
Check float64Interval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Check float64Port - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- Health
Check boolSwitch - Indicates whether health check is enabled.
- Health
Check float64Time Out - Time out of health check. The value range is 2-60.
- Health
Check stringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - Health
Check float64Unhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Source float64Ip Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - Http2Switch bool
- Indicate to apply HTTP2.0 protocol or not.
- Multi
Cert ClbInfo Listener Rule Multi Cert Info Args - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- Oauth
Clb
Listener Rule Oauth Args - OAuth configuration information.
- Quic bool
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- Scheduler string
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Session
Expire float64Time - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Target
Type string - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group.
- clb
Id String - ID of CLB instance.
- listener
Id String - ID of CLB listener.
- url String
- Url of the listener rule.
- certificate
Ca StringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Id String - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Ssl StringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - clb
Listener StringRule Id - ID of the resource.
- domain String
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - domains List<String>
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - forward
Type String - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - health
Check DoubleHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check DoubleHttp Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - health
Check StringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check StringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - health
Check StringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check DoubleInterval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check DoublePort - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- health
Check BooleanSwitch - Indicates whether health check is enabled.
- health
Check DoubleTime Out - Time out of health check. The value range is 2-60.
- health
Check StringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - health
Check DoubleUnhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Source DoubleIp Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - http2Switch Boolean
- Indicate to apply HTTP2.0 protocol or not.
- multi
Cert ClbInfo Listener Rule Multi Cert Info - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- oauth
Clb
Listener Rule Oauth - OAuth configuration information.
- quic Boolean
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- scheduler String
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - session
Expire DoubleTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - target
Type String - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group.
- clb
Id string - ID of CLB instance.
- listener
Id string - ID of CLB listener.
- url string
- Url of the listener rule.
- certificate
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Ssl stringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - clb
Listener stringRule Id - ID of the resource.
- domain string
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - domains string[]
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - forward
Type string - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - health
Check numberHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check numberHttp Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - health
Check stringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check numberInterval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check numberPort - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- health
Check booleanSwitch - Indicates whether health check is enabled.
- health
Check numberTime Out - Time out of health check. The value range is 2-60.
- health
Check stringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - health
Check numberUnhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Source numberIp Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - http2Switch boolean
- Indicate to apply HTTP2.0 protocol or not.
- multi
Cert ClbInfo Listener Rule Multi Cert Info - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- oauth
Clb
Listener Rule Oauth - OAuth configuration information.
- quic boolean
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- scheduler string
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - session
Expire numberTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - target
Type string - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group.
- clb_
id str - ID of CLB instance.
- listener_
id str - ID of CLB listener.
- url str
- Url of the listener rule.
- certificate_
ca_ strid - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate_
id str - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate_
ssl_ strmode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - clb_
listener_ strrule_ id - ID of the resource.
- domain str
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - domains Sequence[str]
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - forward_
type str - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - health_
check_ floathealth_ num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health_
check_ floathttp_ code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - health_
check_ strhttp_ domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health_
check_ strhttp_ method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - health_
check_ strhttp_ path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health_
check_ floatinterval_ time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health_
check_ floatport - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- health_
check_ boolswitch - Indicates whether health check is enabled.
- health_
check_ floattime_ out - Time out of health check. The value range is 2-60.
- health_
check_ strtype - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - health_
check_ floatunhealth_ num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health_
source_ floatip_ type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - http2_
switch bool - Indicate to apply HTTP2.0 protocol or not.
- multi_
cert_ Clbinfo Listener Rule Multi Cert Info Args - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- oauth
Clb
Listener Rule Oauth Args - OAuth configuration information.
- quic bool
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- scheduler str
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - session_
expire_ floattime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - target_
type str - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group.
- clb
Id String - ID of CLB instance.
- listener
Id String - ID of CLB listener.
- url String
- Url of the listener rule.
- certificate
Ca StringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Id String - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Ssl StringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - clb
Listener StringRule Id - ID of the resource.
- domain String
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - domains List<String>
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - forward
Type String - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - health
Check NumberHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check NumberHttp Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - health
Check StringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check StringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - health
Check StringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check NumberInterval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check NumberPort - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- health
Check BooleanSwitch - Indicates whether health check is enabled.
- health
Check NumberTime Out - Time out of health check. The value range is 2-60.
- health
Check StringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - health
Check NumberUnhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Source NumberIp Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - http2Switch Boolean
- Indicate to apply HTTP2.0 protocol or not.
- multi
Cert Property MapInfo - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- oauth Property Map
- OAuth configuration information.
- quic Boolean
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- scheduler String
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - session
Expire NumberTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - target
Type String - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClbListenerRule resource produces the following output properties:
Look up Existing ClbListenerRule Resource
Get an existing ClbListenerRule 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?: ClbListenerRuleState, opts?: CustomResourceOptions): ClbListenerRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_ca_id: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_ssl_mode: Optional[str] = None,
clb_id: Optional[str] = None,
clb_listener_rule_id: Optional[str] = None,
domain: Optional[str] = None,
domains: Optional[Sequence[str]] = None,
forward_type: Optional[str] = None,
health_check_health_num: Optional[float] = None,
health_check_http_code: Optional[float] = None,
health_check_http_domain: Optional[str] = None,
health_check_http_method: Optional[str] = None,
health_check_http_path: Optional[str] = None,
health_check_interval_time: Optional[float] = None,
health_check_port: Optional[float] = None,
health_check_switch: Optional[bool] = None,
health_check_time_out: Optional[float] = None,
health_check_type: Optional[str] = None,
health_check_unhealth_num: Optional[float] = None,
health_source_ip_type: Optional[float] = None,
http2_switch: Optional[bool] = None,
listener_id: Optional[str] = None,
multi_cert_info: Optional[ClbListenerRuleMultiCertInfoArgs] = None,
oauth: Optional[ClbListenerRuleOauthArgs] = None,
quic: Optional[bool] = None,
rule_id: Optional[str] = None,
scheduler: Optional[str] = None,
session_expire_time: Optional[float] = None,
target_type: Optional[str] = None,
url: Optional[str] = None) -> ClbListenerRule
func GetClbListenerRule(ctx *Context, name string, id IDInput, state *ClbListenerRuleState, opts ...ResourceOption) (*ClbListenerRule, error)
public static ClbListenerRule Get(string name, Input<string> id, ClbListenerRuleState? state, CustomResourceOptions? opts = null)
public static ClbListenerRule get(String name, Output<String> id, ClbListenerRuleState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ClbListenerRule 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
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- Certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- Certificate
Ssl stringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - Clb
Id string - ID of CLB instance.
- Clb
Listener stringRule Id - ID of the resource.
- Domain string
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - Domains List<string>
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - Forward
Type string - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - Health
Check doubleHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Check doubleHttp Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - Health
Check stringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - Health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - Health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - Health
Check doubleInterval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Check doublePort - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- Health
Check boolSwitch - Indicates whether health check is enabled.
- Health
Check doubleTime Out - Time out of health check. The value range is 2-60.
- Health
Check stringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - Health
Check doubleUnhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Source doubleIp Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - Http2Switch bool
- Indicate to apply HTTP2.0 protocol or not.
- Listener
Id string - ID of CLB listener.
- Multi
Cert ClbInfo Listener Rule Multi Cert Info - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- Oauth
Clb
Listener Rule Oauth - OAuth configuration information.
- Quic bool
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- Rule
Id string - ID of this CLB listener rule.
- Scheduler string
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Session
Expire doubleTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Target
Type string - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group. - Url string
- Url of the listener rule.
- Certificate
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- Certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- Certificate
Ssl stringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - Clb
Id string - ID of CLB instance.
- Clb
Listener stringRule Id - ID of the resource.
- Domain string
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - Domains []string
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - Forward
Type string - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - Health
Check float64Health Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Check float64Http Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - Health
Check stringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - Health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - Health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - Health
Check float64Interval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Check float64Port - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- Health
Check boolSwitch - Indicates whether health check is enabled.
- Health
Check float64Time Out - Time out of health check. The value range is 2-60.
- Health
Check stringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - Health
Check float64Unhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Health
Source float64Ip Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - Http2Switch bool
- Indicate to apply HTTP2.0 protocol or not.
- Listener
Id string - ID of CLB listener.
- Multi
Cert ClbInfo Listener Rule Multi Cert Info Args - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- Oauth
Clb
Listener Rule Oauth Args - OAuth configuration information.
- Quic bool
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- Rule
Id string - ID of this CLB listener rule.
- Scheduler string
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Session
Expire float64Time - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - Target
Type string - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group. - Url string
- Url of the listener rule.
- certificate
Ca StringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Id String - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Ssl StringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - clb
Id String - ID of CLB instance.
- clb
Listener StringRule Id - ID of the resource.
- domain String
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - domains List<String>
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - forward
Type String - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - health
Check DoubleHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check DoubleHttp Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - health
Check StringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check StringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - health
Check StringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check DoubleInterval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check DoublePort - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- health
Check BooleanSwitch - Indicates whether health check is enabled.
- health
Check DoubleTime Out - Time out of health check. The value range is 2-60.
- health
Check StringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - health
Check DoubleUnhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Source DoubleIp Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - http2Switch Boolean
- Indicate to apply HTTP2.0 protocol or not.
- listener
Id String - ID of CLB listener.
- multi
Cert ClbInfo Listener Rule Multi Cert Info - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- oauth
Clb
Listener Rule Oauth - OAuth configuration information.
- quic Boolean
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- rule
Id String - ID of this CLB listener rule.
- scheduler String
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - session
Expire DoubleTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - target
Type String - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group. - url String
- Url of the listener rule.
- certificate
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Ssl stringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - clb
Id string - ID of CLB instance.
- clb
Listener stringRule Id - ID of the resource.
- domain string
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - domains string[]
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - forward
Type string - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - health
Check numberHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check numberHttp Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - health
Check stringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check numberInterval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check numberPort - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- health
Check booleanSwitch - Indicates whether health check is enabled.
- health
Check numberTime Out - Time out of health check. The value range is 2-60.
- health
Check stringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - health
Check numberUnhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Source numberIp Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - http2Switch boolean
- Indicate to apply HTTP2.0 protocol or not.
- listener
Id string - ID of CLB listener.
- multi
Cert ClbInfo Listener Rule Multi Cert Info - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- oauth
Clb
Listener Rule Oauth - OAuth configuration information.
- quic boolean
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- rule
Id string - ID of this CLB listener rule.
- scheduler string
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - session
Expire numberTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - target
Type string - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group. - url string
- Url of the listener rule.
- certificate_
ca_ strid - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate_
id str - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate_
ssl_ strmode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - clb_
id str - ID of CLB instance.
- clb_
listener_ strrule_ id - ID of the resource.
- domain str
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - domains Sequence[str]
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - forward_
type str - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - health_
check_ floathealth_ num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health_
check_ floathttp_ code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - health_
check_ strhttp_ domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health_
check_ strhttp_ method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - health_
check_ strhttp_ path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health_
check_ floatinterval_ time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health_
check_ floatport - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- health_
check_ boolswitch - Indicates whether health check is enabled.
- health_
check_ floattime_ out - Time out of health check. The value range is 2-60.
- health_
check_ strtype - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - health_
check_ floatunhealth_ num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health_
source_ floatip_ type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - http2_
switch bool - Indicate to apply HTTP2.0 protocol or not.
- listener_
id str - ID of CLB listener.
- multi_
cert_ Clbinfo Listener Rule Multi Cert Info Args - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- oauth
Clb
Listener Rule Oauth Args - OAuth configuration information.
- quic bool
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- rule_
id str - ID of this CLB listener rule.
- scheduler str
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - session_
expire_ floattime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - target_
type str - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group. - url str
- Url of the listener rule.
- certificate
Ca StringId - ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Id String - ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
- certificate
Ssl StringMode - Type of certificate. Valid values:
UNIDIRECTIONAL
,MUTUAL
. NOTES: Only supports listeners of HTTPS protocol. - clb
Id String - ID of CLB instance.
- clb
Listener StringRule Id - ID of the resource.
- domain String
- Domain name of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - domains List<String>
- Domain name list of the listener rule. Single domain rules are passed to
domain
, and multi domain rules are passed todomains
. - forward
Type String - Forwarding protocol between the CLB instance and real server. Valid values:
HTTP
,HTTPS
,GRPC
,GRPCS
,TRPC
. The default isHTTP
. - health
Check NumberHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check NumberHttp Code - HTTP Status Code. The default is 31. Valid value ranges: [1~31].
1 means the return value '1xx' is health.
2means the return value '2xx' is health.
4means the return value '3xx' is health.
8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol. - health
Check StringHttp Domain - Domain name of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check StringHttp Method - Methods of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. The default isHEAD
, the available value areHEAD
andGET
. - health
Check StringHttp Path - Path of health check. NOTES: Only supports listeners of
HTTP
andHTTPS
protocol. - health
Check NumberInterval Time - Interval time of health check. Valid value ranges: (2~300) sec. and the default is
5
sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Check NumberPort - Customize detection related parameters. Health check port, defaults to the port of the backend service, unless you want to specify a specific port, it is recommended to leave it blank. (Applicable only to TCP/UDP listeners).
- health
Check BooleanSwitch - Indicates whether health check is enabled.
- health
Check NumberTime Out - Time out of health check. The value range is 2-60.
- health
Check StringType - Type of health check. Valid value is
CUSTOM
,PING
,TCP
,HTTP
,HTTPS
,GRPC
,GRPCS
. - health
Check NumberUnhealth Num - Unhealthy threshold of health check, and the default is
3
. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - health
Source NumberIp Type - Specifies the type of health check source IP.
0
(default): CLB VIP.1
: 100.64 IP range. - http2Switch Boolean
- Indicate to apply HTTP2.0 protocol or not.
- listener
Id String - ID of CLB listener.
- multi
Cert Property MapInfo - Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
- oauth Property Map
- OAuth configuration information.
- quic Boolean
- Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names.
- rule
Id String - ID of this CLB listener rule.
- scheduler String
- Scheduling method of the CLB listener rules. Valid values:
WRR
,IP HASH
,LEAST_CONN
. The default isWRR
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - session
Expire NumberTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as
WRR
, and not available when listener protocol isTCP_SSL
. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured intencentcloud.ClbListenerRule
. - target
Type String - Backend target type. Valid values:
NODE
,TARGETGROUP
.NODE
means to bind ordinary nodes,TARGETGROUP
means to bind target group. - url String
- Url of the listener rule.
Supporting Types
ClbListenerRuleMultiCertInfo, ClbListenerRuleMultiCertInfoArgs
- Cert
Id List<string>Lists - List of server certificate ID.
- Ssl
Mode string - Authentication type. Values: UNIDIRECTIONAL (one-way authentication), MUTUAL (two-way authentication).
- Cert
Id []stringLists - List of server certificate ID.
- Ssl
Mode string - Authentication type. Values: UNIDIRECTIONAL (one-way authentication), MUTUAL (two-way authentication).
- cert
Id List<String>Lists - List of server certificate ID.
- ssl
Mode String - Authentication type. Values: UNIDIRECTIONAL (one-way authentication), MUTUAL (two-way authentication).
- cert
Id string[]Lists - List of server certificate ID.
- ssl
Mode string - Authentication type. Values: UNIDIRECTIONAL (one-way authentication), MUTUAL (two-way authentication).
- cert_
id_ Sequence[str]lists - List of server certificate ID.
- ssl_
mode str - Authentication type. Values: UNIDIRECTIONAL (one-way authentication), MUTUAL (two-way authentication).
- cert
Id List<String>Lists - List of server certificate ID.
- ssl
Mode String - Authentication type. Values: UNIDIRECTIONAL (one-way authentication), MUTUAL (two-way authentication).
ClbListenerRuleOauth, ClbListenerRuleOauthArgs
- Oauth
Enable bool - Enable or disable authentication. True: Enabled; False: Disabled.
- Oauth
Failure stringStatus - After all IAPs fail, the request is rejected or released. BYPASS: PASS; REJECT: Reject.
- Oauth
Enable bool - Enable or disable authentication. True: Enabled; False: Disabled.
- Oauth
Failure stringStatus - After all IAPs fail, the request is rejected or released. BYPASS: PASS; REJECT: Reject.
- oauth
Enable Boolean - Enable or disable authentication. True: Enabled; False: Disabled.
- oauth
Failure StringStatus - After all IAPs fail, the request is rejected or released. BYPASS: PASS; REJECT: Reject.
- oauth
Enable boolean - Enable or disable authentication. True: Enabled; False: Disabled.
- oauth
Failure stringStatus - After all IAPs fail, the request is rejected or released. BYPASS: PASS; REJECT: Reject.
- oauth_
enable bool - Enable or disable authentication. True: Enabled; False: Disabled.
- oauth_
failure_ strstatus - After all IAPs fail, the request is rejected or released. BYPASS: PASS; REJECT: Reject.
- oauth
Enable Boolean - Enable or disable authentication. True: Enabled; False: Disabled.
- oauth
Failure StringStatus - After all IAPs fail, the request is rejected or released. BYPASS: PASS; REJECT: Reject.
Import
CLB listener rule can be imported using the id (version >= 1.47.0), e.g.
$ pulumi import tencentcloud:index/clbListenerRule:ClbListenerRule example lb-k2zjp9lv#lbl-hh141sn9#loc-agg236ys
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.