thousandeyes / terraform-provider-thousandeyes

ThousandEyes Terraform Provider
Apache License 2.0
21 stars 26 forks source link

Error: Failed call API endpoint. HTTP response code: 404. Error: 404 Not Found #169

Open edwinsalazar opened 2 months ago

edwinsalazar commented 2 months ago

What versions are you using?

required_providers { thousandeyes = { source = "thousandeyes/thousandeyes" version = "2.0.1" } }

What did you expect to happen?

I have deleted some Test that It was created before using TF via web. then when I am planning to update any value using TF it supposed that TF should create again that test but I am getting this message: Error: Failed call API endpoint. HTTP response code: 404. Error: 404 Not Found

What actually happened?

Error: Failed call API endpoint. HTTP response code: 404. Error: 404 Not Found

Terraform code to reproduce the bug

resource "thousandeyes_agent_to_agent" "agent_to_agent_MexicoCity_Lima" {
  test_name      = "MexicoCity-to-Lima"
  description    = "by terraform at ${local.now}"
  interval       = var.test_interval
  direction = "BIDIRECTIONAL"
  protocol = "TCP"
  target_agent_id = "66222"
  bgp_measurements = var.bgp
  alerts_enabled = var.alerts
  agents {
    agent_id = 63438 
  }
}

resource "thousandeyes_agent_to_agent" "agent_to_agent_MexicoCity_Guadalajara" {
  test_name      = "MexicoCity-to-Guadalajara"
  description    = "by terraform at ${local.now}"
  interval       = var.test_interval
  direction = "BIDIRECTIONAL"
  protocol = "TCP"
  target_agent_id = "320"
  bgp_measurements = var.bgp
  alerts_enabled = var.alerts
  agents {
    agent_id = 63438 
  }
}

resource "thousandeyes_agent_to_agent" "agent_to_agent_MexicoCity_Raleigh" {
  test_name      = "MexicoCity-to-Raleigh"
  description    = "by terraform at ${local.now}"
  interval       = var.test_interval
  direction = "BIDIRECTIONAL"
  protocol = "TCP"
  target_agent_id = "69"
  bgp_measurements = var.bgp
  alerts_enabled = var.alerts
  agents {
    agent_id = 63438 
  }
}

Any additional comments or code?

No response

Steps to reproduce the bug

  1. create tests using TF
  2. delete any test via web
  3. try to update those tests including that previous that it was deleted via web
  4. get Error: 404 Not Found