Skip to content

fix(clb): [122360685] tencentcloud_clb_listener_rule support health_source_ip_type param #3208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3208.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_clb_listener_rule: support `health_source_ip_type` param
```
10 changes: 10 additions & 0 deletions tencentcloud/services/clb/resource_tc_clb_listener_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/clb_listener_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading