Show / Hide Table of Contents

Class GetTeam

Inheritance
System.Object
GetTeam
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 GetTeam

Methods

View Source

InvokeAsync(GetTeamArgs, InvokeOptions)

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

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
public MyStack()
{
    var me = Output.Create(Pagerduty.GetUser.InvokeAsync(new Pagerduty.GetUserArgs
    {
        Email = "me@example.com",
    }));
    var devops = Output.Create(Pagerduty.GetTeam.InvokeAsync(new Pagerduty.GetTeamArgs
    {
        Name = "devops",
    }));
    var foo = new Pagerduty.EscalationPolicy("foo", new Pagerduty.EscalationPolicyArgs
    {
        NumLoops = 2,
        Rules = 
        {
            new Pagerduty.Inputs.EscalationPolicyRuleArgs
            {
                EscalationDelayInMinutes = 10,
                Target = 
                {

                    {
                        { "id", me.Apply(me => me.Id) },
                        { "type", "user" },
                    },
                },
            },
        },
        Teams = 
        {
            devops.Apply(devops => devops.Id),
        },
    });
}

}

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

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