1. Packages
  2. Datadog Provider
  3. API Docs
  4. getTeam
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

datadog.getTeam

Explore with Pulumi AI

datadog logo
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

    Use this data source to retrieve information about an existing Datadog team.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const foo = datadog.getTeam({
        teamId: "e6723c40-edb1-11ed-b816-da7ad0900002",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    foo = datadog.get_team(team_id="e6723c40-edb1-11ed-b816-da7ad0900002")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datadog.LookupTeam(ctx, &datadog.LookupTeamArgs{
    			TeamId: pulumi.StringRef("e6723c40-edb1-11ed-b816-da7ad0900002"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Datadog.GetTeam.Invoke(new()
        {
            TeamId = "e6723c40-edb1-11ed-b816-da7ad0900002",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.DatadogFunctions;
    import com.pulumi.datadog.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 foo = DatadogFunctions.getTeam(GetTeamArgs.builder()
                .teamId("e6723c40-edb1-11ed-b816-da7ad0900002")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: datadog:getTeam
          Arguments:
            teamId: e6723c40-edb1-11ed-b816-da7ad0900002
    

    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(filter_keyword: Optional[str] = None,
                 team_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTeamResult
    def get_team_output(filter_keyword: Optional[pulumi.Input[str]] = None,
                 team_id: 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: datadog:index/getTeam:getTeam
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FilterKeyword string
    Search query. Can be team name, team handle, or email of team member.
    TeamId string
    The team's identifier.
    FilterKeyword string
    Search query. Can be team name, team handle, or email of team member.
    TeamId string
    The team's identifier.
    filterKeyword String
    Search query. Can be team name, team handle, or email of team member.
    teamId String
    The team's identifier.
    filterKeyword string
    Search query. Can be team name, team handle, or email of team member.
    teamId string
    The team's identifier.
    filter_keyword str
    Search query. Can be team name, team handle, or email of team member.
    team_id str
    The team's identifier.
    filterKeyword String
    Search query. Can be team name, team handle, or email of team member.
    teamId String
    The team's identifier.

    getTeam Result

    The following output properties are available:

    Description string
    Free-form markdown description/content for the team's homepage.
    Handle string
    The team's handle.
    Id string
    The ID of this resource.
    LinkCount int
    The number of links belonging to the team.
    Name string
    The name of the team.
    Summary string
    A brief summary of the team, derived from the description.
    TeamId string
    The team's identifier.
    UserCount int
    The number of users belonging to the team.
    FilterKeyword string
    Search query. Can be team name, team handle, or email of team member.
    Description string
    Free-form markdown description/content for the team's homepage.
    Handle string
    The team's handle.
    Id string
    The ID of this resource.
    LinkCount int
    The number of links belonging to the team.
    Name string
    The name of the team.
    Summary string
    A brief summary of the team, derived from the description.
    TeamId string
    The team's identifier.
    UserCount int
    The number of users belonging to the team.
    FilterKeyword string
    Search query. Can be team name, team handle, or email of team member.
    description String
    Free-form markdown description/content for the team's homepage.
    handle String
    The team's handle.
    id String
    The ID of this resource.
    linkCount Integer
    The number of links belonging to the team.
    name String
    The name of the team.
    summary String
    A brief summary of the team, derived from the description.
    teamId String
    The team's identifier.
    userCount Integer
    The number of users belonging to the team.
    filterKeyword String
    Search query. Can be team name, team handle, or email of team member.
    description string
    Free-form markdown description/content for the team's homepage.
    handle string
    The team's handle.
    id string
    The ID of this resource.
    linkCount number
    The number of links belonging to the team.
    name string
    The name of the team.
    summary string
    A brief summary of the team, derived from the description.
    teamId string
    The team's identifier.
    userCount number
    The number of users belonging to the team.
    filterKeyword string
    Search query. Can be team name, team handle, or email of team member.
    description str
    Free-form markdown description/content for the team's homepage.
    handle str
    The team's handle.
    id str
    The ID of this resource.
    link_count int
    The number of links belonging to the team.
    name str
    The name of the team.
    summary str
    A brief summary of the team, derived from the description.
    team_id str
    The team's identifier.
    user_count int
    The number of users belonging to the team.
    filter_keyword str
    Search query. Can be team name, team handle, or email of team member.
    description String
    Free-form markdown description/content for the team's homepage.
    handle String
    The team's handle.
    id String
    The ID of this resource.
    linkCount Number
    The number of links belonging to the team.
    name String
    The name of the team.
    summary String
    A brief summary of the team, derived from the description.
    teamId String
    The team's identifier.
    userCount Number
    The number of users belonging to the team.
    filterKeyword String
    Search query. Can be team name, team handle, or email of team member.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi