1. Packages
  2. Packages
  3. Chronosphere
  4. API Docs
  5. PagerdutyExternalConnection
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere

    Workspace-scoped PagerDuty credentials that downstream notifiers and LogScale actions can reference. Holds either a PagerDuty Events integration key (for alert delivery) or a REST API token (for incident note polling); modern equivalent of the per-notifier credentials.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pulumi = Chronosphere.Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        var pagerduty = new Pulumi.PagerdutyExternalConnection("pagerduty", new()
        {
            Name = "PagerDuty",
            PagerdutyApiKey = "XXXXX",
            PagerdutyEventsVersion = "PAGERDUTY_EVENTS_VERSION_V2",
        });
    
    });
    
    package main
    
    import (
    	"github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := chronosphere.NewPagerdutyExternalConnection(ctx, "pagerduty", &chronosphere.PagerdutyExternalConnectionArgs{
    			Name:                   pulumi.String("PagerDuty"),
    			PagerdutyApiKey:        pulumi.String("XXXXX"),
    			PagerdutyEventsVersion: pulumi.String("PAGERDUTY_EVENTS_VERSION_V2"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.chronosphere.PagerdutyExternalConnection;
    import com.pulumi.chronosphere.PagerdutyExternalConnectionArgs;
    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 pagerduty = new PagerdutyExternalConnection("pagerduty", PagerdutyExternalConnectionArgs.builder()        
                .name("PagerDuty")
                .pagerdutyApiKey("XXXXX")
                .pagerdutyEventsVersion("PAGERDUTY_EVENTS_VERSION_V2")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
    
    const pagerduty = new chronosphere.PagerdutyExternalConnection("pagerduty", {
        name: "PagerDuty",
        pagerdutyApiKey: "XXXXX",
        pagerdutyEventsVersion: "PAGERDUTY_EVENTS_VERSION_V2",
    });
    
    import pulumi
    import pulumi_chronosphere as chronosphere
    
    pagerduty = chronosphere.PagerdutyExternalConnection("pagerduty",
        name="PagerDuty",
        pagerduty_api_key="XXXXX",
        pagerduty_events_version="PAGERDUTY_EVENTS_VERSION_V2")
    
    resources:
      pagerduty:
        type: chronosphere:PagerdutyExternalConnection
        properties:
          name: PagerDuty
          pagerdutyApiKey: XXXXX
          pagerdutyEventsVersion: PAGERDUTY_EVENTS_VERSION_V2
    

    Create PagerdutyExternalConnection Resource

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

    Constructor syntax

    new PagerdutyExternalConnection(name: string, args: PagerdutyExternalConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def PagerdutyExternalConnection(resource_name: str,
                                    args: PagerdutyExternalConnectionArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def PagerdutyExternalConnection(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    name: Optional[str] = None,
                                    pagerduty_api_key: Optional[str] = None,
                                    pagerduty_events_version: Optional[str] = None,
                                    pagerduty_rest_api_key: Optional[str] = None,
                                    slug: Optional[str] = None)
    func NewPagerdutyExternalConnection(ctx *Context, name string, args PagerdutyExternalConnectionArgs, opts ...ResourceOption) (*PagerdutyExternalConnection, error)
    public PagerdutyExternalConnection(string name, PagerdutyExternalConnectionArgs args, CustomResourceOptions? opts = null)
    public PagerdutyExternalConnection(String name, PagerdutyExternalConnectionArgs args)
    public PagerdutyExternalConnection(String name, PagerdutyExternalConnectionArgs args, CustomResourceOptions options)
    
    type: chronosphere:PagerdutyExternalConnection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "chronosphere_pagerdutyexternalconnection" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PagerdutyExternalConnectionArgs
    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 PagerdutyExternalConnectionArgs
    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 PagerdutyExternalConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PagerdutyExternalConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PagerdutyExternalConnectionArgs
    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 pagerdutyExternalConnectionResource = new Pulumi.PagerdutyExternalConnection("pagerdutyExternalConnectionResource", new()
    {
        Name = "string",
        PagerdutyApiKey = "string",
        PagerdutyEventsVersion = "string",
        PagerdutyRestApiKey = "string",
        Slug = "string",
    });
    
    example, err := chronosphere.NewPagerdutyExternalConnection(ctx, "pagerdutyExternalConnectionResource", &chronosphere.PagerdutyExternalConnectionArgs{
    	Name:                   pulumi.String("string"),
    	PagerdutyApiKey:        pulumi.String("string"),
    	PagerdutyEventsVersion: pulumi.String("string"),
    	PagerdutyRestApiKey:    pulumi.String("string"),
    	Slug:                   pulumi.String("string"),
    })
    
    resource "chronosphere_pagerdutyexternalconnection" "pagerdutyExternalConnectionResource" {
      name                     = "string"
      pagerduty_api_key        = "string"
      pagerduty_events_version = "string"
      pagerduty_rest_api_key   = "string"
      slug                     = "string"
    }
    
    var pagerdutyExternalConnectionResource = new PagerdutyExternalConnection("pagerdutyExternalConnectionResource", PagerdutyExternalConnectionArgs.builder()
        .name("string")
        .pagerdutyApiKey("string")
        .pagerdutyEventsVersion("string")
        .pagerdutyRestApiKey("string")
        .slug("string")
        .build());
    
    pagerduty_external_connection_resource = chronosphere.PagerdutyExternalConnection("pagerdutyExternalConnectionResource",
        name="string",
        pagerduty_api_key="string",
        pagerduty_events_version="string",
        pagerduty_rest_api_key="string",
        slug="string")
    
    const pagerdutyExternalConnectionResource = new chronosphere.PagerdutyExternalConnection("pagerdutyExternalConnectionResource", {
        name: "string",
        pagerdutyApiKey: "string",
        pagerdutyEventsVersion: "string",
        pagerdutyRestApiKey: "string",
        slug: "string",
    });
    
    type: chronosphere:PagerdutyExternalConnection
    properties:
        name: string
        pagerdutyApiKey: string
        pagerdutyEventsVersion: string
        pagerdutyRestApiKey: string
        slug: string
    

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

    Name string
    Display name of the external connection.
    PagerdutyApiKey string
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    PagerdutyEventsVersion string
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    PagerdutyRestApiKey string
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    Slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    Name string
    Display name of the external connection.
    PagerdutyApiKey string
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    PagerdutyEventsVersion string
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    PagerdutyRestApiKey string
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    Slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name string
    Display name of the external connection.
    pagerduty_api_key string
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerduty_events_version string
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerduty_rest_api_key string
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name String
    Display name of the external connection.
    pagerdutyApiKey String
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyEventsVersion String
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyRestApiKey String
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug String
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name string
    Display name of the external connection.
    pagerdutyApiKey string
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyEventsVersion string
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyRestApiKey string
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name str
    Display name of the external connection.
    pagerduty_api_key str
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerduty_events_version str
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerduty_rest_api_key str
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug str
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name String
    Display name of the external connection.
    pagerdutyApiKey String
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyEventsVersion String
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyRestApiKey String
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug String
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.

    Outputs

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

    Get an existing PagerdutyExternalConnection 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?: PagerdutyExternalConnectionState, opts?: CustomResourceOptions): PagerdutyExternalConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            pagerduty_api_key: Optional[str] = None,
            pagerduty_events_version: Optional[str] = None,
            pagerduty_rest_api_key: Optional[str] = None,
            slug: Optional[str] = None) -> PagerdutyExternalConnection
    func GetPagerdutyExternalConnection(ctx *Context, name string, id IDInput, state *PagerdutyExternalConnectionState, opts ...ResourceOption) (*PagerdutyExternalConnection, error)
    public static PagerdutyExternalConnection Get(string name, Input<string> id, PagerdutyExternalConnectionState? state, CustomResourceOptions? opts = null)
    public static PagerdutyExternalConnection get(String name, Output<String> id, PagerdutyExternalConnectionState state, CustomResourceOptions options)
    resources:  _:    type: chronosphere:PagerdutyExternalConnection    get:      id: ${id}
    import {
      to = chronosphere_pagerdutyexternalconnection.example
      id = "${id}"
    }
    
    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.
    The following state arguments are supported:
    Name string
    Display name of the external connection.
    PagerdutyApiKey string
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    PagerdutyEventsVersion string
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    PagerdutyRestApiKey string
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    Slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    Name string
    Display name of the external connection.
    PagerdutyApiKey string
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    PagerdutyEventsVersion string
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    PagerdutyRestApiKey string
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    Slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name string
    Display name of the external connection.
    pagerduty_api_key string
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerduty_events_version string
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerduty_rest_api_key string
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name String
    Display name of the external connection.
    pagerdutyApiKey String
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyEventsVersion String
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyRestApiKey String
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug String
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name string
    Display name of the external connection.
    pagerdutyApiKey string
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyEventsVersion string
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyRestApiKey string
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name str
    Display name of the external connection.
    pagerduty_api_key str
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerduty_events_version str
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerduty_rest_api_key str
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug str
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    name String
    Display name of the external connection.
    pagerdutyApiKey String
    PagerDuty Events API integration key used to authenticate alert delivery. Called the routing key in Events v2 and the service key in Events v1. Treat as a secret. Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyEventsVersion String
    PagerDuty Events API version used to deliver alerts: PAGERDUTY_EVENTS_VERSION_V1 (legacy) or PAGERDUTY_EVENTS_VERSION_V2 (default, recommended). Mutually exclusive with pagerduty_rest_api_key.
    pagerdutyRestApiKey String
    PagerDuty REST API token used to authenticate incident note polling. Treat as a secret. Mutually exclusive with pagerduty_api_key and pagerduty_events_version.
    slug String
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    Viewing docs for Chronosphere v0.9.16
    published on Friday, Jun 5, 2026 by Chronosphere

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial