diff --git a/tencentcloud/data_source_tc_clb_listener_rules.go b/tencentcloud/data_source_tc_clb_listener_rules.go index 023574bcf0..35628a73be 100644 --- a/tencentcloud/data_source_tc_clb_listener_rules.go +++ b/tencentcloud/data_source_tc_clb_listener_rules.go @@ -106,7 +106,7 @@ func dataSourceTencentCloudClbListenerRules() *schema.Resource { "health_check_interval_time": { Type: schema.TypeInt, Computed: true, - Description: "Interval time of health check. The value range is 5-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.", + Description: "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_health_num": { Type: schema.TypeInt, diff --git a/tencentcloud/data_source_tc_clb_listeners.go b/tencentcloud/data_source_tc_clb_listeners.go index a8d523502b..778a659601 100644 --- a/tencentcloud/data_source_tc_clb_listeners.go +++ b/tencentcloud/data_source_tc_clb_listeners.go @@ -100,7 +100,7 @@ func dataSourceTencentCloudClbListeners() *schema.Resource { "health_check_interval_time": { Type: schema.TypeInt, Computed: true, - Description: "Interval time of health check. The value range is 5-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.", + Description: "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_health_num": { Type: schema.TypeInt, diff --git a/tencentcloud/resource_tc_clb_listener.go b/tencentcloud/resource_tc_clb_listener.go index 976efe8c4b..adc92e45e9 100644 --- a/tencentcloud/resource_tc_clb_listener.go +++ b/tencentcloud/resource_tc_clb_listener.go @@ -215,8 +215,8 @@ func resourceTencentCloudClbListener() *schema.Resource { Type: schema.TypeInt, Optional: true, Computed: true, - ValidateFunc: validateIntegerInRange(5, 300), - Description: "Interval time of health check. Valid value ranges: [5~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`.", + ValidateFunc: validateIntegerInRange(2, 300), + Description: "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 in `tencentcloud_clb_listener_rule`.", }, "health_check_health_num": { Type: schema.TypeInt, diff --git a/tencentcloud/resource_tc_clb_listener_rule.go b/tencentcloud/resource_tc_clb_listener_rule.go index dfcf02469d..5af6037e1d 100644 --- a/tencentcloud/resource_tc_clb_listener_rule.go +++ b/tencentcloud/resource_tc_clb_listener_rule.go @@ -91,8 +91,8 @@ func resourceTencentCloudClbListenerRule() *schema.Resource { Type: schema.TypeInt, Optional: true, Computed: true, - ValidateFunc: validateIntegerInRange(5, 300), - Description: "Interval time of health check. Valid value ranges: (5~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`.", + ValidateFunc: validateIntegerInRange(2, 300), + Description: "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 in `tencentcloud_clb_listener_rule`.", }, "health_check_health_num": { Type: schema.TypeInt, diff --git a/website/docs/d/clb_listener_rules.html.markdown b/website/docs/d/clb_listener_rules.html.markdown index b5a8339948..14d2ca1ebc 100644 --- a/website/docs/d/clb_listener_rules.html.markdown +++ b/website/docs/d/clb_listener_rules.html.markdown @@ -50,7 +50,7 @@ In addition to all arguments above, the following attributes are exported: * `health_check_http_domain` - Domain name of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. * `health_check_http_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_http_path` - Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. - * `health_check_interval_time` - Interval time of health check. The value range is 5-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_interval_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_switch` - Indicates whether health check is enabled. * `health_check_unhealth_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` - Indicate to set HTTP2 protocol or not. diff --git a/website/docs/d/clb_listeners.html.markdown b/website/docs/d/clb_listeners.html.markdown index 4e5079535c..3cfc951c9e 100644 --- a/website/docs/d/clb_listeners.html.markdown +++ b/website/docs/d/clb_listeners.html.markdown @@ -48,7 +48,7 @@ In addition to all arguments above, the following attributes are exported: * `health_check_http_method` - HTTP health check method of TCP listener. * `health_check_http_path` - HTTP health check path of TCP listener. * `health_check_http_version` - The HTTP version of the backend service. - * `health_check_interval_time` - Interval time of health check. The value range is 5-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_interval_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_port` - The health check port is the port of the backend service. * `health_check_recv_context` - It represents the result returned by the health check. * `health_check_send_context` - It represents the content of the request sent by the health check. diff --git a/website/docs/r/clb_listener.html.markdown b/website/docs/r/clb_listener.html.markdown index 77fec69f5f..fcc4881adf 100644 --- a/website/docs/r/clb_listener.html.markdown +++ b/website/docs/r/clb_listener.html.markdown @@ -167,7 +167,7 @@ The following arguments are supported: * `health_check_http_method` - (Optional, String) HTTP health check method of TCP listener. Valid values: `HEAD`, `GET`. * `health_check_http_path` - (Optional, String) HTTP health check path of TCP listener. * `health_check_http_version` - (Optional, String) The HTTP version of the backend service. When the value of `health_check_type` of the health check protocol is `HTTP`, this field is required. Valid values: `HTTP/1.0`, `HTTP/1.1`. -* `health_check_interval_time` - (Optional, Int) Interval time of health check. Valid value ranges: [5~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_interval_time` - (Optional, Int) 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 in `tencentcloud_clb_listener_rule`. * `health_check_port` - (Optional, Int) The health check port is the port of the backend service by default. Unless you want to specify a specific port, it is recommended to leave it blank. Only applicable to TCP/UDP listener. * `health_check_recv_context` - (Optional, String) It represents the result returned by the health check. When the value of `health_check_type` of the health check protocol is `CUSTOM`, this field is required. Only ASCII visible characters are allowed and the maximum length is 500. When `health_check_context_type` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits. * `health_check_send_context` - (Optional, String) It represents the content of the request sent by the health check. When the value of `health_check_type` of the health check protocol is `CUSTOM`, this field is required. Only visible ASCII characters are allowed and the maximum length is 500. When `health_check_context_type` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits. diff --git a/website/docs/r/clb_listener_rule.html.markdown b/website/docs/r/clb_listener_rule.html.markdown index d6684fe2c5..ddfe138b74 100644 --- a/website/docs/r/clb_listener_rule.html.markdown +++ b/website/docs/r/clb_listener_rule.html.markdown @@ -54,7 +54,7 @@ The following arguments are supported: * `health_check_http_domain` - (Optional, String) Domain name of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol. * `health_check_http_method` - (Optional, String) 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_check_http_path` - (Optional, String) Path of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol. -* `health_check_interval_time` - (Optional, Int) Interval time of health check. Valid value ranges: (5~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_interval_time` - (Optional, Int) 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 in `tencentcloud_clb_listener_rule`. * `health_check_switch` - (Optional, Bool) Indicates whether health check is enabled. * `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`, `TCP`, `HTTP`.