| page_title | dbtcloud_webhook Resource - dbtcloud |
|---|---|
| subcategory | |
| description | Webhook details |
Webhook details
resource "dbtcloud_webhook" "test_webhook" {
name = "test-webhook"
description = "Test webhook"
client_url = "http://localhost/nothing"
event_types = [
"job.run.started",
"job.run.completed"
]
job_ids = [
1234,
5678
]
}client_url(String) Webhooks Client URLevent_types(List of String) Webhooks Event Typesname(String) Webhooks Name
active(Boolean) Webhooks active flagdescription(String) Webhooks Descriptionjob_ids(List of Number) List of job IDs to trigger the webhook. When null or empty, the webhook will trigger on all jobs
account_identifier(String) Webhooks Account Identifierhmac_secret(String, Sensitive) Secret key for the webhook. Can be used to validate the authenticity of the webhook.http_status_code(String) Latest HTTP status of the webhookid(String) Webhook's ID
Import is supported using the following syntax:
# using import blocks (requires Terraform >= 1.5)
import {
to = dbtcloud_webhook.my_webhook
id = "webhook_id"
}
import {
to = dbtcloud_webhook.my_webhook
id = "wsu_abcdefg"
}
# using the older import command
terraform import dbtcloud_webhook.my_webhook "webhook_id"
terraform import dbtcloud_webhook.my_webhook wsu_abcdefg