scalr_webhook Data Source

This data source is used to retrieve details of a webhook.

Example Usage

data "scalr_webhook" "example" {
  id = "wh-xxxxxxxxxxx"
}

Argument Reference

  • id - (Required) The webhook ID, in the format wh-<RANDOM STRING>.

Attribute Reference

All arguments plus:

  • name - Name of the webhook.

  • enabled - Boolean indicates if the webhook is enabled.

  • endpoint_id - ID of the endpoint, in the format ep-<RANDOM STRING>.

  • workspace_id - ID of the workspace if applicable, in the format ws-<RANDOM STRING>.

  • environment_id - ID of the environment, in the format env-<RANDOM STRING>.

  • events - List of event IDs.

  • last_triggered_at - Date/time when webhook was last triggered.