Opsgenie

Pulumi Official
Package maintained by Pulumi
v1.1.5 published on Friday, Feb 18, 2022 by Pulumi

getTeam

Manages existing Team within Opsgenie.

Example Usage

using Pulumi;
using Opsgenie = Pulumi.Opsgenie;

class MyStack : Stack
{
    public MyStack()
    {
        var sre_team = Output.Create(Opsgenie.GetTeam.InvokeAsync(new Opsgenie.GetTeamArgs
        {
            Name = "sre-team",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opsgenie.LookupTeam(ctx, &GetTeamArgs{
			Name: "sre-team",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_opsgenie as opsgenie

sre_team = opsgenie.get_team(name="sre-team")
import * as pulumi from "@pulumi/pulumi";
import * as opsgenie from "@pulumi/opsgenie";

const sre_team = pulumi.output(opsgenie.getTeam({
    name: "sre-team",
}));

Coming soon!

Using getTeam

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getTeam(args: GetTeamArgs, opts?: InvokeOptions): Promise<GetTeamResult>
function getTeamOutput(args: GetTeamOutputArgs, opts?: InvokeOptions): Output<GetTeamResult>
def get_team(description: Optional[str] = None,
             members: Optional[Sequence[GetTeamMember]] = None,
             name: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetTeamResult
def get_team_output(description: Optional[pulumi.Input[str]] = None,
             members: Optional[pulumi.Input[Sequence[pulumi.Input[GetTeamMemberArgs]]]] = None,
             name: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetTeamResult]
func LookupTeam(ctx *Context, args *LookupTeamArgs, opts ...InvokeOption) (*LookupTeamResult, error)
func LookupTeamOutput(ctx *Context, args *LookupTeamOutputArgs, opts ...InvokeOption) LookupTeamResultOutput

> Note: This function is named LookupTeam in the Go SDK.

public static class GetTeam 
{
    public static Task<GetTeamResult> InvokeAsync(GetTeamArgs args, InvokeOptions? opts = null)
    public static Output<GetTeamResult> Invoke(GetTeamInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: opsgenie:index/getTeam:getTeam
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name associated with this team. Opsgenie defines that this must not be longer than 100 characters.

Description string

A description for this team.

Members List<GetTeamMember>

A Member block as documented below.

Name string

The name associated with this team. Opsgenie defines that this must not be longer than 100 characters.

Description string

A description for this team.

Members []GetTeamMember

A Member block as documented below.

name String

The name associated with this team. Opsgenie defines that this must not be longer than 100 characters.

description String

A description for this team.

members ListTeamMember>

A Member block as documented below.

name string

The name associated with this team. Opsgenie defines that this must not be longer than 100 characters.

description string

A description for this team.

members GetTeamMember[]

A Member block as documented below.

name str

The name associated with this team. Opsgenie defines that this must not be longer than 100 characters.

description str

A description for this team.

members Sequence[GetTeamMember]

A Member block as documented below.

name String

The name associated with this team. Opsgenie defines that this must not be longer than 100 characters.

description String

A description for this team.

members List

A Member block as documented below.

getTeam Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string
Description string
Members List<GetTeamMember>
Id string

The provider-assigned unique ID for this managed resource.

Name string
Description string
Members []GetTeamMember
id String

The provider-assigned unique ID for this managed resource.

name String
description String
members ListTeamMember>
id string

The provider-assigned unique ID for this managed resource.

name string
description string
members GetTeamMember[]
id str

The provider-assigned unique ID for this managed resource.

name str
description str
members Sequence[GetTeamMember]
id String

The provider-assigned unique ID for this managed resource.

name String
description String
members List

Supporting Types

GetTeamMember

Id string

The ID of the Opsgenie Team.

Role string
Id string

The ID of the Opsgenie Team.

Role string
id String

The ID of the Opsgenie Team.

role String
id string

The ID of the Opsgenie Team.

role string
id str

The ID of the Opsgenie Team.

role str
id String

The ID of the Opsgenie Team.

role String

Package Details

Repository
https://github.com/pulumi/pulumi-opsgenie
License
Apache-2.0
Notes

This Pulumi package is based on the opsgenie Terraform Provider.