grafana.onCall.OutgoingWebhook
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const test_acc_outgoingWebhook = new grafana.oncall.OutgoingWebhook("test-acc-outgoing_webhook", {
name: "my outgoing webhook",
url: "https://example.com/",
});
import pulumi
import pulumiverse_grafana as grafana
test_acc_outgoing_webhook = grafana.on_call.OutgoingWebhook("test-acc-outgoing_webhook",
name="my outgoing webhook",
url="https://example.com/")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/onCall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := onCall.NewOutgoingWebhook(ctx, "test-acc-outgoing_webhook", &onCall.OutgoingWebhookArgs{
Name: pulumi.String("my outgoing webhook"),
Url: pulumi.String("https://example.com/"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var test_acc_outgoingWebhook = new Grafana.OnCall.OutgoingWebhook("test-acc-outgoing_webhook", new()
{
Name = "my outgoing webhook",
Url = "https://example.com/",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.onCall.OutgoingWebhook;
import com.pulumi.grafana.onCall.OutgoingWebhookArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test_acc_outgoingWebhook = new OutgoingWebhook("test-acc-outgoingWebhook", OutgoingWebhookArgs.builder()
.name("my outgoing webhook")
.url("https://example.com/")
.build());
}
}
resources:
test-acc-outgoingWebhook:
type: grafana:onCall:OutgoingWebhook
name: test-acc-outgoing_webhook
properties:
name: my outgoing webhook
url: https://example.com/
Create OutgoingWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OutgoingWebhook(name: string, args: OutgoingWebhookArgs, opts?: CustomResourceOptions);
@overload
def OutgoingWebhook(resource_name: str,
args: OutgoingWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OutgoingWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
url: Optional[str] = None,
is_webhook_enabled: Optional[bool] = None,
forward_whole_payload: Optional[bool] = None,
headers: Optional[str] = None,
http_method: Optional[str] = None,
integration_filters: Optional[Sequence[str]] = None,
authorization_header: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
team_id: Optional[str] = None,
trigger_template: Optional[str] = None,
trigger_type: Optional[str] = None,
data: Optional[str] = None,
user: Optional[str] = None)
func NewOutgoingWebhook(ctx *Context, name string, args OutgoingWebhookArgs, opts ...ResourceOption) (*OutgoingWebhook, error)
public OutgoingWebhook(string name, OutgoingWebhookArgs args, CustomResourceOptions? opts = null)
public OutgoingWebhook(String name, OutgoingWebhookArgs args)
public OutgoingWebhook(String name, OutgoingWebhookArgs args, CustomResourceOptions options)
type: grafana:onCall:OutgoingWebhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OutgoingWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OutgoingWebhookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OutgoingWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OutgoingWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OutgoingWebhookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var outgoingWebhookResource = new Grafana.OnCall.OutgoingWebhook("outgoingWebhookResource", new()
{
Url = "string",
IsWebhookEnabled = false,
ForwardWholePayload = false,
Headers = "string",
HttpMethod = "string",
IntegrationFilters = new[]
{
"string",
},
AuthorizationHeader = "string",
Name = "string",
Password = "string",
TeamId = "string",
TriggerTemplate = "string",
TriggerType = "string",
Data = "string",
User = "string",
});
example, err := onCall.NewOutgoingWebhook(ctx, "outgoingWebhookResource", &onCall.OutgoingWebhookArgs{
Url: pulumi.String("string"),
IsWebhookEnabled: pulumi.Bool(false),
ForwardWholePayload: pulumi.Bool(false),
Headers: pulumi.String("string"),
HttpMethod: pulumi.String("string"),
IntegrationFilters: pulumi.StringArray{
pulumi.String("string"),
},
AuthorizationHeader: pulumi.String("string"),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
TeamId: pulumi.String("string"),
TriggerTemplate: pulumi.String("string"),
TriggerType: pulumi.String("string"),
Data: pulumi.String("string"),
User: pulumi.String("string"),
})
var outgoingWebhookResource = new OutgoingWebhook("outgoingWebhookResource", OutgoingWebhookArgs.builder()
.url("string")
.isWebhookEnabled(false)
.forwardWholePayload(false)
.headers("string")
.httpMethod("string")
.integrationFilters("string")
.authorizationHeader("string")
.name("string")
.password("string")
.teamId("string")
.triggerTemplate("string")
.triggerType("string")
.data("string")
.user("string")
.build());
outgoing_webhook_resource = grafana.on_call.OutgoingWebhook("outgoingWebhookResource",
url="string",
is_webhook_enabled=False,
forward_whole_payload=False,
headers="string",
http_method="string",
integration_filters=["string"],
authorization_header="string",
name="string",
password="string",
team_id="string",
trigger_template="string",
trigger_type="string",
data="string",
user="string")
const outgoingWebhookResource = new grafana.oncall.OutgoingWebhook("outgoingWebhookResource", {
url: "string",
isWebhookEnabled: false,
forwardWholePayload: false,
headers: "string",
httpMethod: "string",
integrationFilters: ["string"],
authorizationHeader: "string",
name: "string",
password: "string",
teamId: "string",
triggerTemplate: "string",
triggerType: "string",
data: "string",
user: "string",
});
type: grafana:onCall:OutgoingWebhook
properties:
authorizationHeader: string
data: string
forwardWholePayload: false
headers: string
httpMethod: string
integrationFilters:
- string
isWebhookEnabled: false
name: string
password: string
teamId: string
triggerTemplate: string
triggerType: string
url: string
user: string
OutgoingWebhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OutgoingWebhook resource accepts the following input properties:
- Url string
- The webhook URL.
- string
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- Data string
- The data of the webhook.
- Forward
Whole boolPayload - 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
Filters List<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 boolEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - Name string
- The name of the outgoing webhook.
- Password string
- The auth data of the webhook. Used for Basic authentication
- Team
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.getTeam
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 toescalation
. - User string
- Username to use when making the outgoing webhook request.
- Url string
- The webhook URL.
- string
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- Data string
- The data of the webhook.
- Forward
Whole boolPayload - 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
Filters []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 boolEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - Name string
- The name of the outgoing webhook.
- Password string
- The auth data of the webhook. Used for Basic authentication
- Team
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.getTeam
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 toescalation
. - User string
- Username to use when making the outgoing webhook request.
- url String
- The webhook URL.
- String
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- data String
- The data of the webhook.
- forward
Whole BooleanPayload - 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
Filters List<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 BooleanEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - name String
- The name of the outgoing webhook.
- password String
- The auth data of the webhook. Used for Basic authentication
- team
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.getTeam
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 toescalation
. - user String
- Username to use when making the outgoing webhook request.
- url string
- The webhook URL.
- string
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- data string
- The data of the webhook.
- forward
Whole booleanPayload - 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
Filters 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 booleanEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - name string
- The name of the outgoing webhook.
- password string
- The auth data of the webhook. Used for Basic authentication
- team
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.getTeam
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 toescalation
. - user string
- Username to use when making the outgoing webhook request.
- url str
- The webhook URL.
- str
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- data str
- The data of the webhook.
- forward_
whole_ boolpayload - Toggle to send the entire webhook payload instead of using the values in the Data field.
- headers str
- Headers to add to the outgoing webhook request.
- http_
method str - The HTTP method used in the request made by the outgoing webhook. Defaults to
POST
. - integration_
filters Sequence[str] - 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_ boolenabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - name str
- The name of the outgoing webhook.
- password str
- The auth data of the webhook. Used for Basic authentication
- team_
id str - 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.getTeam
datasource. - trigger_
template str - A template used to dynamically determine whether the webhook should execute based on the content of the payload.
- trigger_
type str - 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 toescalation
. - user str
- Username to use when making the outgoing webhook request.
- url String
- The webhook URL.
- String
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- data String
- The data of the webhook.
- forward
Whole BooleanPayload - 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
Filters List<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 BooleanEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - name String
- The name of the outgoing webhook.
- password String
- The auth data of the webhook. Used for Basic authentication
- team
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.getTeam
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 toescalation
. - user String
- Username to use when making the outgoing webhook request.
Outputs
All input properties are implicitly available as output properties. Additionally, the OutgoingWebhook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OutgoingWebhook Resource
Get an existing OutgoingWebhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OutgoingWebhookState, opts?: CustomResourceOptions): OutgoingWebhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorization_header: Optional[str] = None,
data: Optional[str] = None,
forward_whole_payload: Optional[bool] = None,
headers: Optional[str] = None,
http_method: Optional[str] = None,
integration_filters: Optional[Sequence[str]] = None,
is_webhook_enabled: Optional[bool] = None,
name: Optional[str] = None,
password: Optional[str] = None,
team_id: Optional[str] = None,
trigger_template: Optional[str] = None,
trigger_type: Optional[str] = None,
url: Optional[str] = None,
user: Optional[str] = None) -> OutgoingWebhook
func GetOutgoingWebhook(ctx *Context, name string, id IDInput, state *OutgoingWebhookState, opts ...ResourceOption) (*OutgoingWebhook, error)
public static OutgoingWebhook Get(string name, Input<string> id, OutgoingWebhookState? state, CustomResourceOptions? opts = null)
public static OutgoingWebhook get(String name, Output<String> id, OutgoingWebhookState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- Data string
- The data of the webhook.
- Forward
Whole boolPayload - 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
Filters List<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 boolEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - Name string
- The name of the outgoing webhook.
- Password string
- The auth data of the webhook. Used for Basic authentication
- Team
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.getTeam
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 toescalation
. - Url string
- The webhook URL.
- User string
- Username to use when making the outgoing webhook request.
- string
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- Data string
- The data of the webhook.
- Forward
Whole boolPayload - 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
Filters []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 boolEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - Name string
- The name of the outgoing webhook.
- Password string
- The auth data of the webhook. Used for Basic authentication
- Team
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.getTeam
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 toescalation
. - Url string
- The webhook URL.
- User string
- Username to use when making the outgoing webhook request.
- String
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- data String
- The data of the webhook.
- forward
Whole BooleanPayload - 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
Filters List<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 BooleanEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - name String
- The name of the outgoing webhook.
- password String
- The auth data of the webhook. Used for Basic authentication
- team
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.getTeam
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 toescalation
. - url String
- The webhook URL.
- user String
- Username to use when making the outgoing webhook request.
- string
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- data string
- The data of the webhook.
- forward
Whole booleanPayload - 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
Filters 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 booleanEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - name string
- The name of the outgoing webhook.
- password string
- The auth data of the webhook. Used for Basic authentication
- team
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.getTeam
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 toescalation
. - url string
- The webhook URL.
- user string
- Username to use when making the outgoing webhook request.
- str
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- data str
- The data of the webhook.
- forward_
whole_ boolpayload - Toggle to send the entire webhook payload instead of using the values in the Data field.
- headers str
- Headers to add to the outgoing webhook request.
- http_
method str - The HTTP method used in the request made by the outgoing webhook. Defaults to
POST
. - integration_
filters Sequence[str] - 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_ boolenabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - name str
- The name of the outgoing webhook.
- password str
- The auth data of the webhook. Used for Basic authentication
- team_
id str - 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.getTeam
datasource. - trigger_
template str - A template used to dynamically determine whether the webhook should execute based on the content of the payload.
- trigger_
type str - 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 toescalation
. - url str
- The webhook URL.
- user str
- Username to use when making the outgoing webhook request.
- String
- The auth data of the webhook. Used in Authorization header instead of user/password auth.
- data String
- The data of the webhook.
- forward
Whole BooleanPayload - 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
Filters List<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 BooleanEnabled - Controls whether the outgoing webhook will trigger or is ignored. Defaults to
true
. - name String
- The name of the outgoing webhook.
- password String
- The auth data of the webhook. Used for Basic authentication
- team
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.getTeam
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 toescalation
. - url String
- The webhook URL.
- user String
- Username to use when making the outgoing webhook request.
Import
$ pulumi import grafana:onCall/outgoingWebhook:OutgoingWebhook name "{{ id }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.