Provides a Datadog webhook resource. This can be used to create and manage Datadog webhooks.
# Create a new Datadog webhook
resource "datadog_webhook" "foo" {
name = "test-webhook"
url = "example.com"
encode_as = "json"
custom_headers = jsonencode({ "custom" : "header" })
payload = jsonencode({ "custom" : "payload" })
}
name
(String) The name of the webhook. It corresponds with <WEBHOOK_NAME>
.url
(String) The URL of the webhook.custom_headers
(String) The headers attached to the webhook.encode_as
(String) Encoding type. Valid values are json
, form
.payload
(String) The payload of the webhook.id
(String) The ID of this resource.Import is supported using the following syntax:
terraform import datadog_webhook.foo example-webhook