Show / Hide Table of Contents

Class GetExtensionSchema

Inheritance
System.Object
GetExtensionSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public static class GetExtensionSchema

Methods

View Source

InvokeAsync(GetExtensionSchemaArgs, InvokeOptions)

Use this data source to get information about a specific extension vendor that you can use for a service (e.g: Slack, Generic Webhook, ServiceNow).

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
public MyStack()
{
    var webhook = Output.Create(Pagerduty.GetExtensionSchema.InvokeAsync(new Pagerduty.GetExtensionSchemaArgs
    {
        Name = "Generic V2 Webhook",
    }));
    var exampleUser = new Pagerduty.User("exampleUser", new Pagerduty.UserArgs
    {
        Email = "howard.james@example.domain",
        Teams = 
        {
            pagerduty_team.Example.Id,
        },
    });
    var foo = new Pagerduty.EscalationPolicy("foo", new Pagerduty.EscalationPolicyArgs
    {
        NumLoops = 2,
        Rules = 
        {
            new Pagerduty.Inputs.EscalationPolicyRuleArgs
            {
                EscalationDelayInMinutes = 10,
                Target = 
                {

                    {
                        { "id", exampleUser.Id },
                        { "type", "user" },
                    },
                },
            },
        },
    });
    var exampleService = new Pagerduty.Service("exampleService", new Pagerduty.ServiceArgs
    {
        AcknowledgementTimeout = 600,
        AutoResolveTimeout = 14400,
        EscalationPolicy = pagerduty_escalation_policy.Example.Id,
    });
    var slack = new Pagerduty.Extension("slack", new Pagerduty.ExtensionArgs
    {
        EndpointUrl = "https://generic_webhook_url/XXXXXX/BBBBBB",
        ExtensionObjects = 
        {
            exampleService.Id,
        },
        ExtensionSchema = webhook.Apply(webhook => webhook.Id),
    });
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetExtensionSchemaResult> InvokeAsync(GetExtensionSchemaArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetExtensionSchemaArgs args
Pulumi.InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetExtensionSchemaResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.