honeycombio_recipients
data source provides recipient IDs of recipients matching a set of criteria.
data "honeycombio_recipients" "all" {}
data "honeycombio_recipients" "example-dot-com" {
type = "email"
detail_filter {
name = "address"
value_regex = ".*@example.com"
}
}
The following arguments are supported:
type
- (Optional) The type of recipient, allowed types are email
, pagerduty
, msteams
, slack
and webhook
.detail_filter
- (Optional) a block to further filter recipients as described below. name
must be set when providing a filter.To further filter the recipient results, a detail_filter
block can be provided which accepts the following arguments:
name
- (Required) The name of the detail field to filter by. Allowed values are address
, channel
, name
, integration_name
, and url
.value
- (Optional) The value of the detail field to match on.value_regex
- (Optional) A regular expression string to apply to the value of the detail field to match on.ids
- A list of all the recipient IDs found.