russellcardullo / terraform-provider-pingdom

No longer maintained: Terraform provider to manage pingdom resources
MIT License
120 stars 108 forks source link

Error: 400 Bad Request: Invalid parameter value: host #95

Open IanMoroney opened 3 years ago

IanMoroney commented 3 years ago
resource "pingdom_check" "my_website" {
    type = "http"
    name = "My Website Check"
    host = "https://www.example.com"
    resolution = 1
    sendnotificationwhendown = 2 # alert after 5 mins, with resolution 5*(2-1)
    integrationids = [
    ]
    userids = [
      pingdom_contact.my.id,
    ]
}

Error: 400 Bad Request: Invalid parameter value: host

IanMoroney commented 3 years ago

@russellcardullo , any idea why this might be occurring?

bogdanbarna commented 3 years ago

I think host is not expecting a protocol.

This is working for me:

resource "pingdom_check" "my_website" {
    type = "http"
    name = "My Website Check"
    host = "www.example.com"
    url    = "/foo"
    resolution = 1
    sendnotificationwhendown = 2 # alert after 5 mins, with resolution 5*(2-1)
    integrationids = [
    ]
    userids = [
      pingdom_contact.my.id,
    ]
}