GetEscalationPolicy

Use this data source to get information about a specific escalation policy that you can use for other PagerDuty resources.

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
    public MyStack()
    {
        var testEscalationPolicy = Output.Create(Pagerduty.GetEscalationPolicy.InvokeAsync(new Pagerduty.GetEscalationPolicyArgs
        {
            Name = "Engineering Escalation Policy",
        }));
        var testService = new Pagerduty.Service("testService", new Pagerduty.ServiceArgs
        {
            AcknowledgementTimeout = 600,
            AutoResolveTimeout = 14400,
            EscalationPolicy = testEscalationPolicy.Apply(testEscalationPolicy => testEscalationPolicy.Id),
        });
    }

}

Coming soon!

import pulumi
import pulumi_pagerduty as pagerduty

test_escalation_policy = pagerduty.get_escalation_policy(name="Engineering Escalation Policy")
test_service = pagerduty.Service("testService",
    acknowledgement_timeout=600,
    auto_resolve_timeout=14400,
    escalation_policy=test_escalation_policy.id)
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const testEscalationPolicy = pulumi.output(pagerduty.getEscalationPolicy({
    name: "Engineering Escalation Policy",
}, { async: true }));
const testService = new pagerduty.Service("test", {
    acknowledgementTimeout: "600",
    autoResolveTimeout: "14400",
    escalationPolicy: testEscalationPolicy.id,
});

Using GetEscalationPolicy

function getEscalationPolicy(args: GetEscalationPolicyArgs, opts?: InvokeOptions): Promise<GetEscalationPolicyResult>
function  get_escalation_policy(name=None, opts=None)
func LookupEscalationPolicy(ctx *Context, args *LookupEscalationPolicyArgs, opts ...InvokeOption) (*LookupEscalationPolicyResult, error)

Note: This function is named LookupEscalationPolicy in the Go SDK.

public static class GetEscalationPolicy {
    public static Task<GetEscalationPolicyResult> InvokeAsync(GetEscalationPolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name to use to find an escalation policy in the PagerDuty API.

Name string

The name to use to find an escalation policy in the PagerDuty API.

name string

The name to use to find an escalation policy in the PagerDuty API.

name str

The name to use to find an escalation policy in the PagerDuty API.

GetEscalationPolicy Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The short name of the found escalation policy.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The short name of the found escalation policy.

id string

The provider-assigned unique ID for this managed resource.

name string

The short name of the found escalation policy.

id str

The provider-assigned unique ID for this managed resource.

name str

The short name of the found escalation policy.

Package Details

Repository
https://github.com/pulumi/pulumi-pagerduty
License
Apache-2.0
Notes
This Pulumi package is based on the pagerduty Terraform Provider.