From a5085e38af183757ac059c0934878045951a505c Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Fri, 14 Mar 2025 11:30:24 +0800 Subject: [PATCH 1/2] add --- .../services/clb/resource_tc_clb_listener_rule.go | 10 ++++++++++ website/docs/r/clb_listener_rule.html.markdown | 1 + 2 files changed, 11 insertions(+) diff --git a/tencentcloud/services/clb/resource_tc_clb_listener_rule.go b/tencentcloud/services/clb/resource_tc_clb_listener_rule.go index a5e5f912a5..24e257f970 100644 --- a/tencentcloud/services/clb/resource_tc_clb_listener_rule.go +++ b/tencentcloud/services/clb/resource_tc_clb_listener_rule.go @@ -133,6 +133,13 @@ func ResourceTencentCloudClbListenerRule() *schema.Resource { ValidateFunc: tccommon.ValidateAllowedStringValue(CLB_HTTP_METHOD), Description: "Methods of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol. The default is `HEAD`, the available value are `HEAD` and `GET`.", }, + "health_source_ip_type": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ValidateFunc: tccommon.ValidateAllowedIntValue([]int{0, 1}), + Description: "Specifies the type of health check source IP. `0` (default): CLB VIP. `1`: 100.64 IP range.", + }, "certificate_ssl_mode": { Type: schema.TypeString, Optional: true, @@ -613,6 +620,9 @@ func resourceTencentCloudClbListenerRuleRead(d *schema.ResourceData, meta interf } _ = d.Set("health_check_type", instance.HealthCheck.CheckType) _ = d.Set("health_check_time_out", instance.HealthCheck.TimeOut) + if instance.HealthCheck.SourceIpType != nil { + _ = d.Set("health_source_ip_type", instance.HealthCheck.SourceIpType) + } } if instance.Certificate != nil { diff --git a/website/docs/r/clb_listener_rule.html.markdown b/website/docs/r/clb_listener_rule.html.markdown index 1b93e48a07..c38905d031 100644 --- a/website/docs/r/clb_listener_rule.html.markdown +++ b/website/docs/r/clb_listener_rule.html.markdown @@ -93,6 +93,7 @@ The following arguments are supported: * `health_check_time_out` - (Optional, Int) Time out of health check. The value range is [2-60](SEC). * `health_check_type` - (Optional, String) Type of health check. Valid value is `CUSTOM`, `PING`, `TCP`, `HTTP`, `HTTPS`, `GRPC`, `GRPCS`. * `health_check_unhealth_num` - (Optional, Int) 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 in `tencentcloud_clb_listener_rule`. +* `health_source_ip_type` - (Optional, Int) Specifies the type of health check source IP. `0` (default): CLB VIP. `1`: 100.64 IP range. * `http2_switch` - (Optional, Bool) Indicate to apply HTTP2.0 protocol or not. * `multi_cert_info` - (Optional, List) 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` - (Optional, List) OAuth configuration information. From b8c0d400f7e536ab047216b50bae0364cbe80f56 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Fri, 14 Mar 2025 11:32:42 +0800 Subject: [PATCH 2/2] add --- .changelog/3208.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/3208.txt diff --git a/.changelog/3208.txt b/.changelog/3208.txt new file mode 100644 index 0000000000..0ec3fb7d0e --- /dev/null +++ b/.changelog/3208.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_clb_listener_rule: support `health_source_ip_type` param +``` \ No newline at end of file