Destinations
DestinationsWebhooks
resource cloudflare_notification_policy_webhooks
required
optional
cloudflare_notification_policy_webhooks
resource "cloudflare_notification_policy_webhooks" "example_notification_policy_webhooks" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
name = "Slack Webhook"
url = "https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd"
secret = "secret"
}
data cloudflare_notification_policy_webhooks
computed
last_failure: Time
Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
last_success: Time
Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
name: String
The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
cloudflare_notification_policy_webhooks
data "cloudflare_notification_policy_webhooks" "example_notification_policy_webhooks" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
webhook_id = "b115d5ec15c641ee8b7692c449b5227b"
}
data cloudflare_notification_policy_webhooks_list
cloudflare_notification_policy_webhooks_list
data "cloudflare_notification_policy_webhooks_list" "example_notification_policy_webhooks_list" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}