Alerting
AlertingDestinationsWebhooks
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"
}
AlertingPolicies
resource cloudflare_notification_policy
required
optional
cloudflare_notification_policy
resource "cloudflare_notification_policy" "example_notification_policy" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
alert_type = "universal_ssl_event_type"
enabled = true
mechanisms = {
email = [{
id = "id"
}]
pagerduty = [{
id = "f174e90afafe4643bbbc4a0ed4fc8415"
}]
webhooks = [{
id = "f174e90afafe4643bbbc4a0ed4fc8415"
}]
}
name = "SSL Notification Event Policy"
alert_interval = "30m"
description = "Something describing the policy."
filters = {
actions = ["string"]
affected_asns = ["string"]
affected_components = ["string"]
affected_locations = ["string"]
airport_code = ["string"]
alert_trigger_preferences = ["string"]
alert_trigger_preferences_value = ["string"]
enabled = ["string"]
environment = ["string"]
event = ["string"]
event_source = ["string"]
event_type = ["string"]
group_by = ["string"]
health_check_id = ["string"]
incident_impact = ["INCIDENT_IMPACT_NONE"]
input_id = ["string"]
insight_class = ["string"]
limit = ["string"]
logo_tag = ["string"]
megabits_per_second = ["string"]
new_health = ["string"]
new_status = ["string"]
packets_per_second = ["string"]
pool_id = ["string"]
pop_names = ["string"]
product = ["string"]
project_id = ["string"]
protocol = ["string"]
query_tag = ["string"]
requests_per_second = ["string"]
selectors = ["string"]
services = ["string"]
slo = ["99.9"]
status = ["string"]
target_hostname = ["string"]
target_ip = ["string"]
target_zone_name = ["string"]
traffic_exclusions = ["security_events"]
tunnel_id = ["string"]
tunnel_name = ["string"]
type = ["string"]
where = ["string"]
zones = ["string"]
}
}
data cloudflare_notification_policy
required
computed
alert_interval: String
Optional specification of how often to re-alert from the same incident, not support on all alert types.
cloudflare_notification_policy
data "cloudflare_notification_policy" "example_notification_policy" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
policy_id = "0da2b59ef118439d8097bdfb215203c9"
}
data cloudflare_notification_policies
cloudflare_notification_policies
data "cloudflare_notification_policies" "example_notification_policies" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}