scalr_webhook
Data Source scalr_webhook
scalr_webhook
Retrieves the details of a webhook.
Example Usage
data "scalr_webhook" "example" {
id = "wh-xxxxxxxxxxx"
}
data "scalr_webhook" "example" {
name = "webhook_name"
account_id = "<acc-id>"
}
data "scalr_webhook" "example" {
name = "webhook_name"
account_id = "<acc-id>"
}
Argument Reference
id
- (Optional) The webhook ID, in the formatwh-<RANDOM STRING>
.name
- (Optional) Name of the webhook.account_id
- (Optional) ID of the account, in the formatacc-<RANDOM STRING>
Arguments id
and name
are both optional, specify at least one of them to obtain scalr_webhook
.
Attribute Reference
All arguments plus:
enabled
- Boolean indicates if the webhook is enabled.endpoint_id
- ID of the endpoint, in the formatep-<RANDOM STRING>
.environment_id
- ID of the environment, in the formatenv-<RANDOM STRING>
.events
- List of event IDs.last_triggered_at
- Date/time when webhook was last triggered.
Updated 2 months ago