Terraform resource: opsgenie api integration

From wikieduonline
Revision as of 09:48, 25 October 2024 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
resource "opsgenie_api_integration" "example-api-integration" {
  name = "api-based-int"
  type = "API"

  responders {
    type = "user"
    id   = "${opsgenie_user.user.id}"
  }

  responders {
    type = "user"
    id   = "${opsgenie_user.fahri.id}"
  }
}

resource "opsgenie_api_integration" "example-api-integration" {
  name = "api-based-int-2"
  type = "Prometheus"

  responders {
    type = "user"
    id   = "${opsgenie_user.user.id}"
  }

  enabled                        = false
  allow_write_access             = false
  ignore_responders_from_payload = true
  suppress_notifications         = true
  owner_team_id                  = "${opsgenie_team.team.id}"
}

resource "opsgenie_api_integration" "test3" {
  name  = "webhook-int"
  type  = "Webhook"

  responders {
    type = "user"
    id   = "${opsgenie_user.user.id}"
  }
  enabled                 = false
  allow_write_access      = false
  suppress_notifications  = true
  webhook_url             = "https://api.example.com/v1"
  headers = {
    header1 = value1
  }
}


See also

Advertising: