site24x7 / terraform-provider-site24x7

Terraform provider for Site24x7
MIT License
22 stars 33 forks source link

site24x7_threshold_profile: website_content_changes.severity=0 not supported in Provider #240

Closed andreub closed 4 months ago

andreub commented 6 months ago

When trying to create a site24x7_threshold_profile of the type URL, with:

resource "site24x7_threshold_profile" "this_url" {
  profile_name = "${var.name}-url"
  type         = "URL"
  // 1 - Static Threshold
  profile_type = 1

  website_content_modified = true
  website_content_changes {
    severity = 0 // Down
    value    = var.url_content_changes_threshold
  }

  read_time_out = {
    severity = 0 // Down
    value    = true
  }
}

I'm getting the following error:

│ Error: expected website_content_changes.0.severity to be one of [2 3], got 0
│ 
│   with site24x7_threshold_profile.this_url,
│   on threshold_profile.tf line 8, in resource "site24x7_threshold_profile" "this_url":
│    8: resource "site24x7_threshold_profile" "this_url" {

Even though 0 is a supported value based on what is allowed in UI and described in doc

image