tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClbListenerRules
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of CLB listener rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getClbListenerRules({
clbId: "lb-k2zjp9lv",
domain: "abc.com",
listenerId: "lbl-mwr6vbtv",
ruleId: "loc-inem40hz",
scheduler: "WRR",
url: "/",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_clb_listener_rules(clb_id="lb-k2zjp9lv",
domain="abc.com",
listener_id="lbl-mwr6vbtv",
rule_id="loc-inem40hz",
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.GetClbListenerRules(ctx, &tencentcloud.GetClbListenerRulesArgs{
ClbId: "lb-k2zjp9lv",
Domain: pulumi.StringRef("abc.com"),
ListenerId: "lbl-mwr6vbtv",
RuleId: pulumi.StringRef("loc-inem40hz"),
Scheduler: pulumi.StringRef("WRR"),
Url: pulumi.StringRef("/"),
}, nil)
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 foo = Tencentcloud.GetClbListenerRules.Invoke(new()
{
ClbId = "lb-k2zjp9lv",
Domain = "abc.com",
ListenerId = "lbl-mwr6vbtv",
RuleId = "loc-inem40hz",
Scheduler = "WRR",
Url = "/",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetClbListenerRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = TencentcloudFunctions.getClbListenerRules(GetClbListenerRulesArgs.builder()
.clbId("lb-k2zjp9lv")
.domain("abc.com")
.listenerId("lbl-mwr6vbtv")
.ruleId("loc-inem40hz")
.scheduler("WRR")
.url("/")
.build());
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getClbListenerRules
arguments:
clbId: lb-k2zjp9lv
domain: abc.com
listenerId: lbl-mwr6vbtv
ruleId: loc-inem40hz
scheduler: WRR
url: /
Using getClbListenerRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getClbListenerRules(args: GetClbListenerRulesArgs, opts?: InvokeOptions): Promise<GetClbListenerRulesResult>
function getClbListenerRulesOutput(args: GetClbListenerRulesOutputArgs, opts?: InvokeOptions): Output<GetClbListenerRulesResult>
def get_clb_listener_rules(clb_id: Optional[str] = None,
domain: Optional[str] = None,
id: Optional[str] = None,
listener_id: Optional[str] = None,
result_output_file: Optional[str] = None,
rule_id: Optional[str] = None,
scheduler: Optional[str] = None,
url: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClbListenerRulesResult
def get_clb_listener_rules_output(clb_id: Optional[pulumi.Input[str]] = None,
domain: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
listener_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
rule_id: Optional[pulumi.Input[str]] = None,
scheduler: Optional[pulumi.Input[str]] = None,
url: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClbListenerRulesResult]
func GetClbListenerRules(ctx *Context, args *GetClbListenerRulesArgs, opts ...InvokeOption) (*GetClbListenerRulesResult, error)
func GetClbListenerRulesOutput(ctx *Context, args *GetClbListenerRulesOutputArgs, opts ...InvokeOption) GetClbListenerRulesResultOutput
> Note: This function is named GetClbListenerRules
in the Go SDK.
public static class GetClbListenerRules
{
public static Task<GetClbListenerRulesResult> InvokeAsync(GetClbListenerRulesArgs args, InvokeOptions? opts = null)
public static Output<GetClbListenerRulesResult> Invoke(GetClbListenerRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClbListenerRulesResult> getClbListenerRules(GetClbListenerRulesArgs args, InvokeOptions options)
public static Output<GetClbListenerRulesResult> getClbListenerRules(GetClbListenerRulesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClbListenerRules:getClbListenerRules
arguments:
# arguments dictionary
The following arguments are supported:
- Clb
Id string - ID of the CLB to be queried.
- Listener
Id string - ID of the CLB listener to be queried.
- Domain string
- Domain name of the forwarding rule to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Rule
Id string - ID of the forwarding rule to be queried.
- Scheduler string
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - Url string
- Url of the forwarding rule to be queried.
- Clb
Id string - ID of the CLB to be queried.
- Listener
Id string - ID of the CLB listener to be queried.
- Domain string
- Domain name of the forwarding rule to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Rule
Id string - ID of the forwarding rule to be queried.
- Scheduler string
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - Url string
- Url of the forwarding rule to be queried.
- clb
Id String - ID of the CLB to be queried.
- listener
Id String - ID of the CLB listener to be queried.
- domain String
- Domain name of the forwarding rule to be queried.
- id String
- result
Output StringFile - Used to save results.
- rule
Id String - ID of the forwarding rule to be queried.
- scheduler String
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - url String
- Url of the forwarding rule to be queried.
- clb
Id string - ID of the CLB to be queried.
- listener
Id string - ID of the CLB listener to be queried.
- domain string
- Domain name of the forwarding rule to be queried.
- id string
- result
Output stringFile - Used to save results.
- rule
Id string - ID of the forwarding rule to be queried.
- scheduler string
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - url string
- Url of the forwarding rule to be queried.
- clb_
id str - ID of the CLB to be queried.
- listener_
id str - ID of the CLB listener to be queried.
- domain str
- Domain name of the forwarding rule to be queried.
- id str
- result_
output_ strfile - Used to save results.
- rule_
id str - ID of the forwarding rule to be queried.
- scheduler str
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - url str
- Url of the forwarding rule to be queried.
- clb
Id String - ID of the CLB to be queried.
- listener
Id String - ID of the CLB listener to be queried.
- domain String
- Domain name of the forwarding rule to be queried.
- id String
- result
Output StringFile - Used to save results.
- rule
Id String - ID of the forwarding rule to be queried.
- scheduler String
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - url String
- Url of the forwarding rule to be queried.
getClbListenerRules Result
The following output properties are available:
- Clb
Id string - ID of the CLB.
- Id string
- Listener
Id string - ID of the listener.
- Rule
Lists List<GetClb Listener Rules Rule List> - A list of forward rules of listeners. Each element contains the following attributes:
- Domain string
- Result
Output stringFile - Rule
Id string - ID of the rule.
- Scheduler string
- Scheduling method of the CLB listener, and available values include 'WRR', 'IP_HASH' and 'LEAST_CONN'. The default is 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- Url string
- Clb
Id string - ID of the CLB.
- Id string
- Listener
Id string - ID of the listener.
- Rule
Lists []GetClb Listener Rules Rule List - A list of forward rules of listeners. Each element contains the following attributes:
- Domain string
- Result
Output stringFile - Rule
Id string - ID of the rule.
- Scheduler string
- Scheduling method of the CLB listener, and available values include 'WRR', 'IP_HASH' and 'LEAST_CONN'. The default is 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- Url string
- clb
Id String - ID of the CLB.
- id String
- listener
Id String - ID of the listener.
- rule
Lists List<GetClb Listener Rules Rule List> - A list of forward rules of listeners. Each element contains the following attributes:
- domain String
- result
Output StringFile - rule
Id String - ID of the rule.
- scheduler String
- Scheduling method of the CLB listener, and available values include 'WRR', 'IP_HASH' and 'LEAST_CONN'. The default is 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- url String
- clb
Id string - ID of the CLB.
- id string
- listener
Id string - ID of the listener.
- rule
Lists GetClb Listener Rules Rule List[] - A list of forward rules of listeners. Each element contains the following attributes:
- domain string
- result
Output stringFile - rule
Id string - ID of the rule.
- scheduler string
- Scheduling method of the CLB listener, and available values include 'WRR', 'IP_HASH' and 'LEAST_CONN'. The default is 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- url string
- clb_
id str - ID of the CLB.
- id str
- listener_
id str - ID of the listener.
- rule_
lists Sequence[GetClb Listener Rules Rule List] - A list of forward rules of listeners. Each element contains the following attributes:
- domain str
- result_
output_ strfile - rule_
id str - ID of the rule.
- scheduler str
- Scheduling method of the CLB listener, and available values include 'WRR', 'IP_HASH' and 'LEAST_CONN'. The default is 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- url str
- clb
Id String - ID of the CLB.
- id String
- listener
Id String - ID of the listener.
- rule
Lists List<Property Map> - A list of forward rules of listeners. Each element contains the following attributes:
- domain String
- result
Output StringFile - rule
Id String - ID of the rule.
- scheduler String
- Scheduling method of the CLB listener, and available values include 'WRR', 'IP_HASH' and 'LEAST_CONN'. The default is 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- url String
Supporting Types
GetClbListenerRulesRuleList
- Certificate
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- Certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- Certificate
Ssl stringMode - Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- Clb
Id string - ID of the CLB to be queried.
- Domain string
- Domain name of the forwarding rule to be queried.
- Health
Check doubleHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - Health
Check doubleHttp Code - HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means 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 'HTTPS' and 'HTTP' protocol.
- Health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.
- Health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
- Health
Check doubleInterval Time - Interval time of health check. The value range is 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 in tencentcloud_clb_listener_rule. - Health
Check boolSwitch - Indicates whether health check is enabled.
- Health
Check doubleUnhealth Num - Unhealth threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - Http2Switch bool
- Indicate to set HTTP2 protocol or not.
- Listener
Id string - ID of the CLB listener to be queried.
- Rule
Id string - ID of the forwarding rule to be queried.
- Scheduler string
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - Session
Expire doubleTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- Url string
- Url of the forwarding rule to be queried.
- Certificate
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- Certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- Certificate
Ssl stringMode - Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- Clb
Id string - ID of the CLB to be queried.
- Domain string
- Domain name of the forwarding rule to be queried.
- Health
Check float64Health Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - Health
Check float64Http Code - HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means 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 'HTTPS' and 'HTTP' protocol.
- Health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.
- Health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
- Health
Check float64Interval Time - Interval time of health check. The value range is 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 in tencentcloud_clb_listener_rule. - Health
Check boolSwitch - Indicates whether health check is enabled.
- Health
Check float64Unhealth Num - Unhealth threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - Http2Switch bool
- Indicate to set HTTP2 protocol or not.
- Listener
Id string - ID of the CLB listener to be queried.
- Rule
Id string - ID of the forwarding rule to be queried.
- Scheduler string
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - Session
Expire float64Time - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- Url string
- Url of the forwarding rule to be queried.
- certificate
Ca StringId - ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- certificate
Id String - ID of the server certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- certificate
Ssl StringMode - Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- clb
Id String - ID of the CLB to be queried.
- domain String
- Domain name of the forwarding rule to be queried.
- health
Check DoubleHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - health
Check DoubleHttp Code - HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means 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 'HTTPS' and 'HTTP' protocol.
- health
Check StringHttp Method - Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.
- health
Check StringHttp Path - Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
- health
Check DoubleInterval Time - Interval time of health check. The value range is 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 in tencentcloud_clb_listener_rule. - health
Check BooleanSwitch - Indicates whether health check is enabled.
- health
Check DoubleUnhealth Num - Unhealth threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - http2Switch Boolean
- Indicate to set HTTP2 protocol or not.
- listener
Id String - ID of the CLB listener to be queried.
- rule
Id String - ID of the forwarding rule to be queried.
- scheduler String
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - session
Expire DoubleTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- url String
- Url of the forwarding rule to be queried.
- certificate
Ca stringId - ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- certificate
Id string - ID of the server certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- certificate
Ssl stringMode - Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- clb
Id string - ID of the CLB to be queried.
- domain string
- Domain name of the forwarding rule to be queried.
- health
Check numberHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - health
Check numberHttp Code - HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means 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 'HTTPS' and 'HTTP' protocol.
- health
Check stringHttp Method - Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.
- health
Check stringHttp Path - Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
- health
Check numberInterval Time - Interval time of health check. The value range is 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 in tencentcloud_clb_listener_rule. - health
Check booleanSwitch - Indicates whether health check is enabled.
- health
Check numberUnhealth Num - Unhealth threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - http2Switch boolean
- Indicate to set HTTP2 protocol or not.
- listener
Id string - ID of the CLB listener to be queried.
- rule
Id string - ID of the forwarding rule to be queried.
- scheduler string
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - session
Expire numberTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- url string
- Url of the forwarding rule to be queried.
- certificate_
ca_ strid - ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- certificate_
id str - ID of the server certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- certificate_
ssl_ strmode - Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- clb_
id str - ID of the CLB to be queried.
- domain str
- Domain name of the forwarding rule to be queried.
- health_
check_ floathealth_ num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - health_
check_ floathttp_ code - HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means 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 'HTTPS' and 'HTTP' protocol.
- health_
check_ strhttp_ method - Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.
- health_
check_ strhttp_ path - Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
- health_
check_ floatinterval_ time - Interval time of health check. The value range is 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 in tencentcloud_clb_listener_rule. - health_
check_ boolswitch - Indicates whether health check is enabled.
- health_
check_ floatunhealth_ num - Unhealth threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - http2_
switch bool - Indicate to set HTTP2 protocol or not.
- listener_
id str - ID of the CLB listener to be queried.
- rule_
id str - ID of the forwarding rule to be queried.
- scheduler str
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - session_
expire_ floattime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- url str
- Url of the forwarding rule to be queried.
- certificate
Ca StringId - ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- certificate
Id String - ID of the server certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- certificate
Ssl StringMode - Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
- clb
Id String - ID of the CLB to be queried.
- domain String
- Domain name of the forwarding rule to be queried.
- health
Check NumberHealth Num - Health threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - health
Check NumberHttp Code - HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means 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 'HTTPS' and 'HTTP' protocol.
- health
Check StringHttp Method - Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.
- health
Check StringHttp Path - Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
- health
Check NumberInterval Time - Interval time of health check. The value range is 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 in tencentcloud_clb_listener_rule. - health
Check BooleanSwitch - Indicates whether health check is enabled.
- health
Check NumberUnhealth Num - Unhealth threshold of health check, and the default is
3
. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule. - http2Switch Boolean
- Indicate to set HTTP2 protocol or not.
- listener
Id String - ID of the CLB listener to be queried.
- rule
Id String - ID of the forwarding rule to be queried.
- scheduler String
- Scheduling method of the forwarding rule of thr CLB listener, and available values include
WRR
,IP HASH
andLEAST_CONN
. The default isWRR
. - session
Expire NumberTime - Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
- url String
- Url of the forwarding rule to be queried.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack