1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. WebhookSubscription
PagerDuty v4.22.1 published on Friday, Mar 21, 2025 by Pulumi

pagerduty.WebhookSubscription

Explore with Pulumi AI

A webhook subscription allow you to receive HTTP callbacks when incidents are created, updated and deleted. These are also known as V3 Webhooks.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const example = pagerduty.getService({
    name: "My Service",
});
const foo = new pagerduty.WebhookSubscription("foo", {
    deliveryMethods: [{
        type: "http_delivery_method",
        url: "https://example.com/receive_a_pagerduty_webhook",
        customHeaders: [
            {
                name: "X-Foo",
                value: "foo",
            },
            {
                name: "X-Bar",
                value: "bar",
            },
        ],
    }],
    description: "%s",
    events: [
        "incident.acknowledged",
        "incident.annotated",
        "incident.delegated",
        "incident.escalated",
        "incident.priority_updated",
        "incident.reassigned",
        "incident.reopened",
        "incident.resolved",
        "incident.responder.added",
        "incident.responder.replied",
        "incident.status_update_published",
        "incident.triggered",
        "incident.unacknowledged",
    ],
    active: true,
    filters: [{
        id: example.then(example => example.id),
        type: "service_reference",
    }],
    type: "webhook_subscription",
});
Copy
import pulumi
import pulumi_pagerduty as pagerduty

example = pagerduty.get_service(name="My Service")
foo = pagerduty.WebhookSubscription("foo",
    delivery_methods=[{
        "type": "http_delivery_method",
        "url": "https://example.com/receive_a_pagerduty_webhook",
        "custom_headers": [
            {
                "name": "X-Foo",
                "value": "foo",
            },
            {
                "name": "X-Bar",
                "value": "bar",
            },
        ],
    }],
    description="%s",
    events=[
        "incident.acknowledged",
        "incident.annotated",
        "incident.delegated",
        "incident.escalated",
        "incident.priority_updated",
        "incident.reassigned",
        "incident.reopened",
        "incident.resolved",
        "incident.responder.added",
        "incident.responder.replied",
        "incident.status_update_published",
        "incident.triggered",
        "incident.unacknowledged",
    ],
    active=True,
    filters=[{
        "id": example.id,
        "type": "service_reference",
    }],
    type="webhook_subscription")
Copy
package main

import (
	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := pagerduty.LookupService(ctx, &pagerduty.LookupServiceArgs{
			Name: "My Service",
		}, nil)
		if err != nil {
			return err
		}
		_, err = pagerduty.NewWebhookSubscription(ctx, "foo", &pagerduty.WebhookSubscriptionArgs{
			DeliveryMethods: pagerduty.WebhookSubscriptionDeliveryMethodArray{
				&pagerduty.WebhookSubscriptionDeliveryMethodArgs{
					Type: pulumi.String("http_delivery_method"),
					Url:  pulumi.String("https://example.com/receive_a_pagerduty_webhook"),
					CustomHeaders: pagerduty.WebhookSubscriptionDeliveryMethodCustomHeaderArray{
						&pagerduty.WebhookSubscriptionDeliveryMethodCustomHeaderArgs{
							Name:  pulumi.String("X-Foo"),
							Value: pulumi.String("foo"),
						},
						&pagerduty.WebhookSubscriptionDeliveryMethodCustomHeaderArgs{
							Name:  pulumi.String("X-Bar"),
							Value: pulumi.String("bar"),
						},
					},
				},
			},
			Description: pulumi.String("%s"),
			Events: pulumi.StringArray{
				pulumi.String("incident.acknowledged"),
				pulumi.String("incident.annotated"),
				pulumi.String("incident.delegated"),
				pulumi.String("incident.escalated"),
				pulumi.String("incident.priority_updated"),
				pulumi.String("incident.reassigned"),
				pulumi.String("incident.reopened"),
				pulumi.String("incident.resolved"),
				pulumi.String("incident.responder.added"),
				pulumi.String("incident.responder.replied"),
				pulumi.String("incident.status_update_published"),
				pulumi.String("incident.triggered"),
				pulumi.String("incident.unacknowledged"),
			},
			Active: pulumi.Bool(true),
			Filters: pagerduty.WebhookSubscriptionFilterArray{
				&pagerduty.WebhookSubscriptionFilterArgs{
					Id:   pulumi.String(example.Id),
					Type: pulumi.String("service_reference"),
				},
			},
			Type: pulumi.String("webhook_subscription"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

return await Deployment.RunAsync(() => 
{
    var example = Pagerduty.GetService.Invoke(new()
    {
        Name = "My Service",
    });

    var foo = new Pagerduty.WebhookSubscription("foo", new()
    {
        DeliveryMethods = new[]
        {
            new Pagerduty.Inputs.WebhookSubscriptionDeliveryMethodArgs
            {
                Type = "http_delivery_method",
                Url = "https://example.com/receive_a_pagerduty_webhook",
                CustomHeaders = new[]
                {
                    new Pagerduty.Inputs.WebhookSubscriptionDeliveryMethodCustomHeaderArgs
                    {
                        Name = "X-Foo",
                        Value = "foo",
                    },
                    new Pagerduty.Inputs.WebhookSubscriptionDeliveryMethodCustomHeaderArgs
                    {
                        Name = "X-Bar",
                        Value = "bar",
                    },
                },
            },
        },
        Description = "%s",
        Events = new[]
        {
            "incident.acknowledged",
            "incident.annotated",
            "incident.delegated",
            "incident.escalated",
            "incident.priority_updated",
            "incident.reassigned",
            "incident.reopened",
            "incident.resolved",
            "incident.responder.added",
            "incident.responder.replied",
            "incident.status_update_published",
            "incident.triggered",
            "incident.unacknowledged",
        },
        Active = true,
        Filters = new[]
        {
            new Pagerduty.Inputs.WebhookSubscriptionFilterArgs
            {
                Id = example.Apply(getServiceResult => getServiceResult.Id),
                Type = "service_reference",
            },
        },
        Type = "webhook_subscription",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.PagerdutyFunctions;
import com.pulumi.pagerduty.inputs.GetServiceArgs;
import com.pulumi.pagerduty.WebhookSubscription;
import com.pulumi.pagerduty.WebhookSubscriptionArgs;
import com.pulumi.pagerduty.inputs.WebhookSubscriptionDeliveryMethodArgs;
import com.pulumi.pagerduty.inputs.WebhookSubscriptionFilterArgs;
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) {
        final var example = PagerdutyFunctions.getService(GetServiceArgs.builder()
            .name("My Service")
            .build());

        var foo = new WebhookSubscription("foo", WebhookSubscriptionArgs.builder()
            .deliveryMethods(WebhookSubscriptionDeliveryMethodArgs.builder()
                .type("http_delivery_method")
                .url("https://example.com/receive_a_pagerduty_webhook")
                .customHeaders(                
                    WebhookSubscriptionDeliveryMethodCustomHeaderArgs.builder()
                        .name("X-Foo")
                        .value("foo")
                        .build(),
                    WebhookSubscriptionDeliveryMethodCustomHeaderArgs.builder()
                        .name("X-Bar")
                        .value("bar")
                        .build())
                .build())
            .description("%s")
            .events(            
                "incident.acknowledged",
                "incident.annotated",
                "incident.delegated",
                "incident.escalated",
                "incident.priority_updated",
                "incident.reassigned",
                "incident.reopened",
                "incident.resolved",
                "incident.responder.added",
                "incident.responder.replied",
                "incident.status_update_published",
                "incident.triggered",
                "incident.unacknowledged")
            .active(true)
            .filters(WebhookSubscriptionFilterArgs.builder()
                .id(example.applyValue(getServiceResult -> getServiceResult.id()))
                .type("service_reference")
                .build())
            .type("webhook_subscription")
            .build());

    }
}
Copy
resources:
  foo:
    type: pagerduty:WebhookSubscription
    properties:
      deliveryMethods:
        - type: http_delivery_method
          url: https://example.com/receive_a_pagerduty_webhook
          customHeaders:
            - name: X-Foo
              value: foo
            - name: X-Bar
              value: bar
      description: '%s'
      events:
        - incident.acknowledged
        - incident.annotated
        - incident.delegated
        - incident.escalated
        - incident.priority_updated
        - incident.reassigned
        - incident.reopened
        - incident.resolved
        - incident.responder.added
        - incident.responder.replied
        - incident.status_update_published
        - incident.triggered
        - incident.unacknowledged
      active: true
      filters:
        - id: ${example.id}
          type: service_reference
      type: webhook_subscription
variables:
  example:
    fn::invoke:
      function: pagerduty:getService
      arguments:
        name: My Service
Copy

Create WebhookSubscription Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WebhookSubscription(name: string, args: WebhookSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def WebhookSubscription(resource_name: str,
                        args: WebhookSubscriptionArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def WebhookSubscription(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        delivery_methods: Optional[Sequence[WebhookSubscriptionDeliveryMethodArgs]] = None,
                        events: Optional[Sequence[str]] = None,
                        filters: Optional[Sequence[WebhookSubscriptionFilterArgs]] = None,
                        active: Optional[bool] = None,
                        description: Optional[str] = None,
                        type: Optional[str] = None)
func NewWebhookSubscription(ctx *Context, name string, args WebhookSubscriptionArgs, opts ...ResourceOption) (*WebhookSubscription, error)
public WebhookSubscription(string name, WebhookSubscriptionArgs args, CustomResourceOptions? opts = null)
public WebhookSubscription(String name, WebhookSubscriptionArgs args)
public WebhookSubscription(String name, WebhookSubscriptionArgs args, CustomResourceOptions options)
type: pagerduty:WebhookSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WebhookSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WebhookSubscriptionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WebhookSubscriptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WebhookSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WebhookSubscriptionArgs
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 webhookSubscriptionResource = new Pagerduty.WebhookSubscription("webhookSubscriptionResource", new()
{
    DeliveryMethods = new[]
    {
        new Pagerduty.Inputs.WebhookSubscriptionDeliveryMethodArgs
        {
            CustomHeaders = new[]
            {
                new Pagerduty.Inputs.WebhookSubscriptionDeliveryMethodCustomHeaderArgs
                {
                    Name = "string",
                    Value = "string",
                },
            },
            TemporarilyDisabled = false,
            Type = "string",
            Url = "string",
        },
    },
    Events = new[]
    {
        "string",
    },
    Filters = new[]
    {
        new Pagerduty.Inputs.WebhookSubscriptionFilterArgs
        {
            Type = "string",
            Id = "string",
        },
    },
    Active = false,
    Description = "string",
    Type = "string",
});
Copy
example, err := pagerduty.NewWebhookSubscription(ctx, "webhookSubscriptionResource", &pagerduty.WebhookSubscriptionArgs{
	DeliveryMethods: pagerduty.WebhookSubscriptionDeliveryMethodArray{
		&pagerduty.WebhookSubscriptionDeliveryMethodArgs{
			CustomHeaders: pagerduty.WebhookSubscriptionDeliveryMethodCustomHeaderArray{
				&pagerduty.WebhookSubscriptionDeliveryMethodCustomHeaderArgs{
					Name:  pulumi.String("string"),
					Value: pulumi.String("string"),
				},
			},
			TemporarilyDisabled: pulumi.Bool(false),
			Type:                pulumi.String("string"),
			Url:                 pulumi.String("string"),
		},
	},
	Events: pulumi.StringArray{
		pulumi.String("string"),
	},
	Filters: pagerduty.WebhookSubscriptionFilterArray{
		&pagerduty.WebhookSubscriptionFilterArgs{
			Type: pulumi.String("string"),
			Id:   pulumi.String("string"),
		},
	},
	Active:      pulumi.Bool(false),
	Description: pulumi.String("string"),
	Type:        pulumi.String("string"),
})
Copy
var webhookSubscriptionResource = new WebhookSubscription("webhookSubscriptionResource", WebhookSubscriptionArgs.builder()
    .deliveryMethods(WebhookSubscriptionDeliveryMethodArgs.builder()
        .customHeaders(WebhookSubscriptionDeliveryMethodCustomHeaderArgs.builder()
            .name("string")
            .value("string")
            .build())
        .temporarilyDisabled(false)
        .type("string")
        .url("string")
        .build())
    .events("string")
    .filters(WebhookSubscriptionFilterArgs.builder()
        .type("string")
        .id("string")
        .build())
    .active(false)
    .description("string")
    .type("string")
    .build());
Copy
webhook_subscription_resource = pagerduty.WebhookSubscription("webhookSubscriptionResource",
    delivery_methods=[{
        "custom_headers": [{
            "name": "string",
            "value": "string",
        }],
        "temporarily_disabled": False,
        "type": "string",
        "url": "string",
    }],
    events=["string"],
    filters=[{
        "type": "string",
        "id": "string",
    }],
    active=False,
    description="string",
    type="string")
Copy
const webhookSubscriptionResource = new pagerduty.WebhookSubscription("webhookSubscriptionResource", {
    deliveryMethods: [{
        customHeaders: [{
            name: "string",
            value: "string",
        }],
        temporarilyDisabled: false,
        type: "string",
        url: "string",
    }],
    events: ["string"],
    filters: [{
        type: "string",
        id: "string",
    }],
    active: false,
    description: "string",
    type: "string",
});
Copy
type: pagerduty:WebhookSubscription
properties:
    active: false
    deliveryMethods:
        - customHeaders:
            - name: string
              value: string
          temporarilyDisabled: false
          type: string
          url: string
    description: string
    events:
        - string
    filters:
        - id: string
          type: string
    type: string
Copy

WebhookSubscription 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 WebhookSubscription resource accepts the following input properties:

DeliveryMethods This property is required. List<WebhookSubscriptionDeliveryMethod>
The object describing where to send the webhooks.
Events This property is required. List<string>
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
Filters This property is required. List<WebhookSubscriptionFilter>
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
Active bool
Determines whether the subscription will produce webhook events.
Description string
A short description of the webhook subscription
Type string
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
DeliveryMethods This property is required. []WebhookSubscriptionDeliveryMethodArgs
The object describing where to send the webhooks.
Events This property is required. []string
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
Filters This property is required. []WebhookSubscriptionFilterArgs
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
Active bool
Determines whether the subscription will produce webhook events.
Description string
A short description of the webhook subscription
Type string
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
deliveryMethods This property is required. List<WebhookSubscriptionDeliveryMethod>
The object describing where to send the webhooks.
events This property is required. List<String>
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
filters This property is required. List<WebhookSubscriptionFilter>
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
active Boolean
Determines whether the subscription will produce webhook events.
description String
A short description of the webhook subscription
type String
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
deliveryMethods This property is required. WebhookSubscriptionDeliveryMethod[]
The object describing where to send the webhooks.
events This property is required. string[]
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
filters This property is required. WebhookSubscriptionFilter[]
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
active boolean
Determines whether the subscription will produce webhook events.
description string
A short description of the webhook subscription
type string
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
delivery_methods This property is required. Sequence[WebhookSubscriptionDeliveryMethodArgs]
The object describing where to send the webhooks.
events This property is required. Sequence[str]
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
filters This property is required. Sequence[WebhookSubscriptionFilterArgs]
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
active bool
Determines whether the subscription will produce webhook events.
description str
A short description of the webhook subscription
type str
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
deliveryMethods This property is required. List<Property Map>
The object describing where to send the webhooks.
events This property is required. List<String>
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
filters This property is required. List<Property Map>
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
active Boolean
Determines whether the subscription will produce webhook events.
description String
A short description of the webhook subscription
type String
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.

Outputs

All input properties are implicitly available as output properties. Additionally, the WebhookSubscription 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 WebhookSubscription Resource

Get an existing WebhookSubscription 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?: WebhookSubscriptionState, opts?: CustomResourceOptions): WebhookSubscription
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active: Optional[bool] = None,
        delivery_methods: Optional[Sequence[WebhookSubscriptionDeliveryMethodArgs]] = None,
        description: Optional[str] = None,
        events: Optional[Sequence[str]] = None,
        filters: Optional[Sequence[WebhookSubscriptionFilterArgs]] = None,
        type: Optional[str] = None) -> WebhookSubscription
func GetWebhookSubscription(ctx *Context, name string, id IDInput, state *WebhookSubscriptionState, opts ...ResourceOption) (*WebhookSubscription, error)
public static WebhookSubscription Get(string name, Input<string> id, WebhookSubscriptionState? state, CustomResourceOptions? opts = null)
public static WebhookSubscription get(String name, Output<String> id, WebhookSubscriptionState state, CustomResourceOptions options)
resources:  _:    type: pagerduty:WebhookSubscription    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Active bool
Determines whether the subscription will produce webhook events.
DeliveryMethods List<WebhookSubscriptionDeliveryMethod>
The object describing where to send the webhooks.
Description string
A short description of the webhook subscription
Events List<string>
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
Filters List<WebhookSubscriptionFilter>
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
Type string
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
Active bool
Determines whether the subscription will produce webhook events.
DeliveryMethods []WebhookSubscriptionDeliveryMethodArgs
The object describing where to send the webhooks.
Description string
A short description of the webhook subscription
Events []string
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
Filters []WebhookSubscriptionFilterArgs
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
Type string
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
active Boolean
Determines whether the subscription will produce webhook events.
deliveryMethods List<WebhookSubscriptionDeliveryMethod>
The object describing where to send the webhooks.
description String
A short description of the webhook subscription
events List<String>
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
filters List<WebhookSubscriptionFilter>
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
type String
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
active boolean
Determines whether the subscription will produce webhook events.
deliveryMethods WebhookSubscriptionDeliveryMethod[]
The object describing where to send the webhooks.
description string
A short description of the webhook subscription
events string[]
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
filters WebhookSubscriptionFilter[]
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
type string
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
active bool
Determines whether the subscription will produce webhook events.
delivery_methods Sequence[WebhookSubscriptionDeliveryMethodArgs]
The object describing where to send the webhooks.
description str
A short description of the webhook subscription
events Sequence[str]
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
filters Sequence[WebhookSubscriptionFilterArgs]
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
type str
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.
active Boolean
Determines whether the subscription will produce webhook events.
deliveryMethods List<Property Map>
The object describing where to send the webhooks.
description String
A short description of the webhook subscription
events List<String>
A set of outbound event types the webhook will receive. The follow event types are possible:

  • incident.acknowledged
  • incident.annotated
  • incident.delegated
  • incident.escalated
  • incident.priority_updated
  • incident.reassigned
  • incident.reopened
  • incident.resolved
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.triggered
  • incident.unacknowledged
filters List<Property Map>
determines which events will match and produce a webhook. There are currently three types of filters that can be applied to webhook subscriptions: service_reference, team_reference and account_reference.
type String
The type indicating the schema of the object. The provider sets this as webhook_subscription, which is currently the only acceptable value.

Supporting Types

WebhookSubscriptionDeliveryMethod
, WebhookSubscriptionDeliveryMethodArgs

CustomHeaders List<WebhookSubscriptionDeliveryMethodCustomHeader>
The custom_header of a webhook subscription define any optional headers that will be passed along with the payload to the destination URL.
TemporarilyDisabled bool
Whether this webhook subscription is temporarily disabled. Becomes true if the delivery method URL is repeatedly rejected by the server.
Type string
Indicates the type of the delivery method. Allowed and default value: http_delivery_method.
Url string
The destination URL for webhook delivery.
CustomHeaders []WebhookSubscriptionDeliveryMethodCustomHeader
The custom_header of a webhook subscription define any optional headers that will be passed along with the payload to the destination URL.
TemporarilyDisabled bool
Whether this webhook subscription is temporarily disabled. Becomes true if the delivery method URL is repeatedly rejected by the server.
Type string
Indicates the type of the delivery method. Allowed and default value: http_delivery_method.
Url string
The destination URL for webhook delivery.
customHeaders List<WebhookSubscriptionDeliveryMethodCustomHeader>
The custom_header of a webhook subscription define any optional headers that will be passed along with the payload to the destination URL.
temporarilyDisabled Boolean
Whether this webhook subscription is temporarily disabled. Becomes true if the delivery method URL is repeatedly rejected by the server.
type String
Indicates the type of the delivery method. Allowed and default value: http_delivery_method.
url String
The destination URL for webhook delivery.
customHeaders WebhookSubscriptionDeliveryMethodCustomHeader[]
The custom_header of a webhook subscription define any optional headers that will be passed along with the payload to the destination URL.
temporarilyDisabled boolean
Whether this webhook subscription is temporarily disabled. Becomes true if the delivery method URL is repeatedly rejected by the server.
type string
Indicates the type of the delivery method. Allowed and default value: http_delivery_method.
url string
The destination URL for webhook delivery.
custom_headers Sequence[WebhookSubscriptionDeliveryMethodCustomHeader]
The custom_header of a webhook subscription define any optional headers that will be passed along with the payload to the destination URL.
temporarily_disabled bool
Whether this webhook subscription is temporarily disabled. Becomes true if the delivery method URL is repeatedly rejected by the server.
type str
Indicates the type of the delivery method. Allowed and default value: http_delivery_method.
url str
The destination URL for webhook delivery.
customHeaders List<Property Map>
The custom_header of a webhook subscription define any optional headers that will be passed along with the payload to the destination URL.
temporarilyDisabled Boolean
Whether this webhook subscription is temporarily disabled. Becomes true if the delivery method URL is repeatedly rejected by the server.
type String
Indicates the type of the delivery method. Allowed and default value: http_delivery_method.
url String
The destination URL for webhook delivery.

WebhookSubscriptionDeliveryMethodCustomHeader
, WebhookSubscriptionDeliveryMethodCustomHeaderArgs

Name This property is required. string
Value
This property is required.
Changes to this property will trigger replacement.
string
Name This property is required. string
Value
This property is required.
Changes to this property will trigger replacement.
string
name This property is required. String
value
This property is required.
Changes to this property will trigger replacement.
String
name This property is required. string
value
This property is required.
Changes to this property will trigger replacement.
string
name This property is required. str
value
This property is required.
Changes to this property will trigger replacement.
str
name This property is required. String
value
This property is required.
Changes to this property will trigger replacement.
String

WebhookSubscriptionFilter
, WebhookSubscriptionFilterArgs

Type This property is required. string
The type of object being used as the filter. Allowed values are account_reference, service_reference, and team_reference.
Id string
The id of the object being used as the filter. This field is required for all filter types except account_reference.
Type This property is required. string
The type of object being used as the filter. Allowed values are account_reference, service_reference, and team_reference.
Id string
The id of the object being used as the filter. This field is required for all filter types except account_reference.
type This property is required. String
The type of object being used as the filter. Allowed values are account_reference, service_reference, and team_reference.
id String
The id of the object being used as the filter. This field is required for all filter types except account_reference.
type This property is required. string
The type of object being used as the filter. Allowed values are account_reference, service_reference, and team_reference.
id string
The id of the object being used as the filter. This field is required for all filter types except account_reference.
type This property is required. str
The type of object being used as the filter. Allowed values are account_reference, service_reference, and team_reference.
id str
The id of the object being used as the filter. This field is required for all filter types except account_reference.
type This property is required. String
The type of object being used as the filter. Allowed values are account_reference, service_reference, and team_reference.
id String
The id of the object being used as the filter. This field is required for all filter types except account_reference.

Import

Webhook Subscriptions can be imported using the id, e.g.

$ pulumi import pagerduty:index/webhookSubscription:WebhookSubscription main PUABCDL
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
PagerDuty pulumi/pulumi-pagerduty
License
Apache-2.0
Notes
This Pulumi package is based on the pagerduty Terraform Provider.