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"



  • account_id (String) ID of the account, in the format acc-<RANDOM STRING>.
  • id (String) The webhook ID, in the format wh-<RANDOM STRING>.
  • name (String) Name of the webhook.


  • enabled (Boolean) Boolean indicates if the webhook is enabled.
  • endpoint_id (String, Deprecated) ID of the endpoint, in the format ep-<RANDOM STRING>.
  • environment_id (String, Deprecated) ID of the environment, in the format env-<RANDOM STRING>.
  • 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) Secret key to sign the webhook payload.
  • timeout (Number) Endpoint timeout (in seconds).
  • url (String) Endpoint URL.
  • workspace_id (String, Deprecated) ID of the workspace, in the format ws-<RANDOM STRING>.

Nested Schema for header


  • name (String)
  • value (String)