site24x7 / terraform-provider-site24x7

Terraform provider for Site24x7
MIT License
23 stars 36 forks source link

response_headers_severity does not allow down value #286

Open valugi opened 5 months ago

valugi commented 5 months ago

This is about a website monitor attribute called response_headers_severity. The documentation states that the possible values are DOWN 0 - or Trouble 2. Setting this to 0 in terraform does not work - the value gets set back to 2.

  # module.spof_website.site24x7_website_monitor.website will be updated in-place
  ~ resource "site24x7_website_monitor" "website" {
        id                          = "396627000019683030"
      ~ response_headers_severity   = 2 -> 0

The same behavior happens in the web interface - Down value is not saved.

https://registry.terraform.io/providers/site24x7/site24x7/latest/docs/resources/website_monitor#response_headers_severity