Git Product home page Git Product logo

Comments (3)

gailwang avatar gailwang commented on June 1, 2024

The documentation for tencentcloud_clb_listener_rule attribute health_check_httpd_code is unclear:

health_check_http_code - (Optional) HTTP Status Code. The default is 31 and value range is 1-31. '0b0001' means the return value '1xx' is health. '0b0010' means the return value '2xx' is health. '0b0100' means the return value '3xx' is health. '0b1000' means the return value '4xx' is health. 0b10000 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.

  1. I get errors using "0b0010" or 0b0010; can I just use "2"?
  2. The example at the top of the page, "http_1xx", appears to be invalid:

Error: Incorrect attribute value type
on ../../ICM/etc/Terraform/Tencent/Instance/infrastructure.tf line 500, in resource "tencentcloud_clb_listener_rule" "default":
500: health_check_http_code = "http_1xx"
Inappropriate value for attribute "health_check_http_code": a number is
required.

hi lubars, for the first question, using '2' is the right way. '0b0010' is an explanation in the description. The description does cause ambiguity,so it will be modified in the next version 1.19.0. For the second question, the 'http_1xx' is an error in this example, it will be modified in the next version too. Thanks for your comments.

from terraform-provider-tencentcloud.

likexian avatar likexian commented on June 1, 2024

Hello @lubars
This has been fixed in v1.19.0, would you please have a try?
Thank you.

from terraform-provider-tencentcloud.

likexian avatar likexian commented on June 1, 2024

Hello,
This issue will be closed, if you have any problems, please open a new issue.

from terraform-provider-tencentcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.