scalr_webhook
Data Source: scalr_webhook
Retrieves the details of a webhook.
Example Usage
data "scalr_webhook" "example1" {
id = "wh-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
}
data "scalr_webhook" "example2" {
name = "webhook_name"
account_id = "acc-xxxxxxxxxx"
}
Schema
Optional
account_id
(String) ID of the account, in the formatacc-<RANDOM STRING>
.id
(String) The webhook ID, in the formatwh-<RANDOM STRING>
.name
(String) Name of the webhook.
Read-Only
enabled
(Boolean) Boolean indicates if the webhook is enabled.environments
(Set of String) The list of environment identifiers that the webhook is shared to, or["*"]
if shared with all environments.events
(List of String) List of event IDs.header
(Set of Object) Additional headers to set in the webhook request. (see below for nested schema)last_triggered_at
(String) Date/time when webhook was last triggered.max_attempts
(Number) Max delivery attempts of the payload.secret_key
(String, Sensitive, Deprecated) Secret key to sign the webhook payload.timeout
(Number) Endpoint timeout (in seconds).url
(String) Endpoint URL.
Nested Schema for header
header
Read-Only:
name
(String)value
(String)
Updated 3 months ago