Provides a resource, that manages a webhook destination. These destinations can be tied to the notification policies created for Cloudflare's products.
resource "cloudflare_notification_policy_webhooks" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
name = "Webhooks destination"
url = "https://example.com"
secret = "my-secret"
}
account_id
(String) The account identifier to target for the resource.name
(String) The name of the webhook destination.secret
(String) An optional secret can be provided that will be passed in the cf-webhook-auth
header when dispatching a webhook notification. Secrets are not returned in any API response body. Refer to the documentation for more details.url
(String) The URL of the webhook destinations. Modifying this attribute will force creation of a new resource.created_at
(String) Timestamp of when the notification webhook was created.id
(String) The ID of this resource.last_failure
(String) Timestamp of when the notification webhook last faiuled.last_success
(String) Timestamp of when the notification webhook was last successful.type
(String)Import is supported using the following syntax:
$ terraform import cloudflare_notification_policy_webhooks.example <account_id>/<notification_webhook_id>