resource "grafana_oncall_outgoing_webhook" "test-acc-outgoing_webhook" {
provider = grafana.oncall
name = "my outgoing webhook"
url = "https://example.com/"
}
name
(String) The name of the outgoing webhook.url
(String) The webhook URL.authorization_header
(String, Sensitive) The auth data of the webhook. Used in Authorization header instead of user/password auth.data
(String) The data of the webhook.forward_whole_payload
(Boolean) Toggle to send the entire webhook payload instead of using the values in the Data field.headers
(String) Headers to add to the outgoing webhook request.http_method
(String) The HTTP method used in the request made by the outgoing webhook. Defaults to POST
.integration_filter
(List of String) Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.is_webhook_enabled
(Boolean) Controls whether the outgoing webhook will trigger or is ignored. The default is true
.password
(String, Sensitive) The auth data of the webhook. Used for Basic authenticationteam_id
(String) The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana_oncall_team
datasource.trigger_template
(String) A template used to dynamically determine whether the webhook should execute based on the content of the payload.trigger_type
(String) The type of event that will cause this outgoing webhook to execute. The types of triggers are: escalation
, alert group created
, acknowledge
, resolve
, silence
, unsilence
, unresolve
, unacknowledge
. Defaults to escalation
.user
(String) Username to use when making the outgoing webhook request.id
(String) The ID of this resource.Import is supported using the following syntax:
terraform import grafana_oncall_outgoing_webhook.name "{{ id }}"