Webhook
generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "porkbun_webhook Resource - terraform-provider-porkbun" subcategory: "" description: |- Manages a webhook endpoint that receives signed POST requests for account events. Porkbun disables an endpoint after 20 consecutive failed deliveries; the next apply re-enables it while enabled is true.
porkbun_webhook (Resource)
Manages a webhook endpoint that receives signed POST requests for account events. Porkbun disables an endpoint after 20 consecutive failed deliveries; the next apply re-enables it while enabled is true.
Example Usage
resource "porkbun_webhook" "example" {
url = "https://example.com/porkbun/webhook"
events = ["domain.registered", "dns.*"]
}
Schema
Required
url(String) The HTTPS URL that receives the signed POST. Port 443 only, and the hostname must resolve to a public internet address.
Optional
enabled(Boolean) Whether deliveries are sent. Defaults totrue.events(Set of String) Event types to subscribe to, such asdomain.registered. Prefix wildcards likedns.*are allowed.*means all events. Defaults to["*"].
Read-Only
id(String) The webhook endpoint ID.secret(String, Sensitive) The signing secret (HMAC-SHA256 key) used to verify theX-Porkbun-Signatureheader.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import porkbun_webhook.example <webhook_id>
terraform import porkbun_webhook.example 42