1. Packages
  2. Opsgenie
  3. API Docs
  4. getTeam
Opsgenie v1.3.10 published on Friday, Aug 2, 2024 by Pulumi

opsgenie.getTeam

Explore with Pulumi AI

opsgenie logo
Opsgenie v1.3.10 published on Friday, Aug 2, 2024 by Pulumi

    Manages existing Team within Opsgenie.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opsgenie from "@pulumi/opsgenie";
    
    const sre-team = opsgenie.getTeam({
        name: "sre-team",
    });
    
    import pulumi
    import pulumi_opsgenie as opsgenie
    
    sre_team = opsgenie.get_team(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, &opsgenie.LookupTeamArgs{
    			Name: "sre-team",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opsgenie = Pulumi.Opsgenie;
    
    return await Deployment.RunAsync(() => 
    {
        var sre_team = Opsgenie.GetTeam.Invoke(new()
        {
            Name = "sre-team",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opsgenie.OpsgenieFunctions;
    import com.pulumi.opsgenie.inputs.GetTeamArgs;
    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) {
            final var sre-team = OpsgenieFunctions.getTeam(GetTeamArgs.builder()
                .name("sre-team")
                .build());
    
        }
    }
    
    variables:
      sre-team:
        fn::invoke:
          Function: opsgenie:getTeam
          Arguments:
            name: sre-team
    

    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.

    The following attributes are exported:

    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.

    The following attributes are exported:

    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.

    The following attributes are exported:

    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.

    The following attributes are exported:

    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.

    The following attributes are exported:

    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.

    The following attributes are exported:

    description String
    A description for this team.
    members List<Property Map>
    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 List<GetTeamMember>
    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<Property Map>

    Supporting Types

    GetTeamMember

    Id string
    The ID of the Opsgenie Team.
    Role string
    Username string
    Id string
    The ID of the Opsgenie Team.
    Role string
    Username string
    id String
    The ID of the Opsgenie Team.
    role String
    username String
    id string
    The ID of the Opsgenie Team.
    role string
    username string
    id str
    The ID of the Opsgenie Team.
    role str
    username str
    id String
    The ID of the Opsgenie Team.
    role String
    username String

    Package Details

    Repository
    Opsgenie pulumi/pulumi-opsgenie
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the opsgenie Terraform Provider.
    opsgenie logo
    Opsgenie v1.3.10 published on Friday, Aug 2, 2024 by Pulumi