1. Packages
  2. Rollbar Provider
  3. API Docs
  4. getTeam
rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar

rollbar.getTeam

Explore with Pulumi AI

rollbar logo
rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar

    rollbar.Team Data Source

    ==============================

    Use this data source to retrieve information about a Rollbar team.

    Example Usage


    To retrieve info about a team by name or ID:

    import * as pulumi from "@pulumi/pulumi";
    import * as rollbar from "@pulumi/rollbar";
    
    const foobar = rollbar.getTeam({
        name: "foobar",
    });
    const example = rollbar.getTeam({
        teamId: 123456,
    });
    
    import pulumi
    import pulumi_rollbar as rollbar
    
    foobar = rollbar.get_team(name="foobar")
    example = rollbar.get_team(team_id=123456)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/rollbar/rollbar"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rollbar.LookupTeam(ctx, &rollbar.LookupTeamArgs{
    			Name: pulumi.StringRef("foobar"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = rollbar.LookupTeam(ctx, &rollbar.LookupTeamArgs{
    			TeamId: pulumi.Float64Ref(123456),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rollbar = Pulumi.Rollbar;
    
    return await Deployment.RunAsync(() => 
    {
        var foobar = Rollbar.GetTeam.Invoke(new()
        {
            Name = "foobar",
        });
    
        var example = Rollbar.GetTeam.Invoke(new()
        {
            TeamId = 123456,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rollbar.RollbarFunctions;
    import com.pulumi.rollbar.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 foobar = RollbarFunctions.getTeam(GetTeamArgs.builder()
                .name("foobar")
                .build());
    
            final var example = RollbarFunctions.getTeam(GetTeamArgs.builder()
                .teamId(123456)
                .build());
    
        }
    }
    
    variables:
      foobar:
        fn::invoke:
          function: rollbar:getTeam
          arguments:
            name: foobar
      example:
        fn::invoke:
          function: rollbar:getTeam
          arguments:
            teamId: 123456
    

    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(id: Optional[str] = None,
                 name: Optional[str] = None,
                 team_id: Optional[float] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTeamResult
    def get_team_output(id: Optional[pulumi.Input[str]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 team_id: Optional[pulumi.Input[float]] = 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)
    public static Output<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
    
    fn::invoke:
      function: rollbar:index/getTeam:getTeam
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the team
    Name string

    Human readable name for the team. Conflicts with team_id.

    One of team_id or name must be specified.

    TeamId double
    Rollbar team ID.
    Id string
    ID of the team
    Name string

    Human readable name for the team. Conflicts with team_id.

    One of team_id or name must be specified.

    TeamId float64
    Rollbar team ID.
    id String
    ID of the team
    name String

    Human readable name for the team. Conflicts with team_id.

    One of team_id or name must be specified.

    teamId Double
    Rollbar team ID.
    id string
    ID of the team
    name string

    Human readable name for the team. Conflicts with team_id.

    One of team_id or name must be specified.

    teamId number
    Rollbar team ID.
    id str
    ID of the team
    name str

    Human readable name for the team. Conflicts with team_id.

    One of team_id or name must be specified.

    team_id float
    Rollbar team ID.
    id String
    ID of the team
    name String

    Human readable name for the team. Conflicts with team_id.

    One of team_id or name must be specified.

    teamId Number
    Rollbar team ID.

    getTeam Result

    The following output properties are available:

    AccessLevel string
    Team access level. Will be one of standard, light or view.
    AccountId double
    ID of account that owns the team
    Id string
    ID of the team
    Name string
    TeamId double
    AccessLevel string
    Team access level. Will be one of standard, light or view.
    AccountId float64
    ID of account that owns the team
    Id string
    ID of the team
    Name string
    TeamId float64
    accessLevel String
    Team access level. Will be one of standard, light or view.
    accountId Double
    ID of account that owns the team
    id String
    ID of the team
    name String
    teamId Double
    accessLevel string
    Team access level. Will be one of standard, light or view.
    accountId number
    ID of account that owns the team
    id string
    ID of the team
    name string
    teamId number
    access_level str
    Team access level. Will be one of standard, light or view.
    account_id float
    ID of account that owns the team
    id str
    ID of the team
    name str
    team_id float
    accessLevel String
    Team access level. Will be one of standard, light or view.
    accountId Number
    ID of account that owns the team
    id String
    ID of the team
    name String
    teamId Number

    Package Details

    Repository
    rollbar rollbar/terraform-provider-rollbar
    License
    Notes
    This Pulumi package is based on the rollbar Terraform Provider.
    rollbar logo
    rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar