Datadog v4.59.0 published on Wednesday, Oct 22, 2025 by Pulumi
datadog.getTeams
Use this data source to retrieve information about existing teams for use in other resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const example = datadog.getTeams({
filterKeyword: "team-member@company.com",
filterMe: true,
});
import pulumi
import pulumi_datadog as datadog
example = datadog.get_teams(filter_keyword="team-member@company.com",
filter_me=True)
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.GetTeams(ctx, &datadog.GetTeamsArgs{
FilterKeyword: pulumi.StringRef("team-member@company.com"),
FilterMe: pulumi.BoolRef(true),
}, 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 example = Datadog.GetTeams.Invoke(new()
{
FilterKeyword = "team-member@company.com",
FilterMe = true,
});
});
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.GetTeamsArgs;
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 example = DatadogFunctions.getTeams(GetTeamsArgs.builder()
.filterKeyword("team-member@company.com")
.filterMe(true)
.build());
}
}
variables:
example:
fn::invoke:
function: datadog:getTeams
arguments:
filterKeyword: team-member@company.com
filterMe: true
Using getTeams
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 getTeams(args: GetTeamsArgs, opts?: InvokeOptions): Promise<GetTeamsResult>
function getTeamsOutput(args: GetTeamsOutputArgs, opts?: InvokeOptions): Output<GetTeamsResult>def get_teams(filter_keyword: Optional[str] = None,
filter_me: Optional[bool] = None,
teams: Optional[Sequence[GetTeamsTeam]] = None,
opts: Optional[InvokeOptions] = None) -> GetTeamsResult
def get_teams_output(filter_keyword: Optional[pulumi.Input[str]] = None,
filter_me: Optional[pulumi.Input[bool]] = None,
teams: Optional[pulumi.Input[Sequence[pulumi.Input[GetTeamsTeamArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTeamsResult]func GetTeams(ctx *Context, args *GetTeamsArgs, opts ...InvokeOption) (*GetTeamsResult, error)
func GetTeamsOutput(ctx *Context, args *GetTeamsOutputArgs, opts ...InvokeOption) GetTeamsResultOutput> Note: This function is named GetTeams in the Go SDK.
public static class GetTeams
{
public static Task<GetTeamsResult> InvokeAsync(GetTeamsArgs args, InvokeOptions? opts = null)
public static Output<GetTeamsResult> Invoke(GetTeamsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTeamsResult> getTeams(GetTeamsArgs args, InvokeOptions options)
public static Output<GetTeamsResult> getTeams(GetTeamsArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getTeams:getTeams
arguments:
# arguments dictionaryThe following arguments are supported:
- Filter
Keyword string - Search query. Can be team name, team handle, or email of team member.
- Filter
Me bool - When true, only returns teams the current user belongs to.
- Teams
List<Get
Teams Team> - List of teams
- Filter
Keyword string - Search query. Can be team name, team handle, or email of team member.
- Filter
Me bool - When true, only returns teams the current user belongs to.
- Teams
[]Get
Teams Team - List of teams
- filter
Keyword String - Search query. Can be team name, team handle, or email of team member.
- filter
Me Boolean - When true, only returns teams the current user belongs to.
- teams
List<Get
Teams Team> - List of teams
- filter
Keyword string - Search query. Can be team name, team handle, or email of team member.
- filter
Me boolean - When true, only returns teams the current user belongs to.
- teams
Get
Teams Team[] - List of teams
- filter_
keyword str - Search query. Can be team name, team handle, or email of team member.
- filter_
me bool - When true, only returns teams the current user belongs to.
- teams
Sequence[Get
Teams Team] - List of teams
- filter
Keyword String - Search query. Can be team name, team handle, or email of team member.
- filter
Me Boolean - When true, only returns teams the current user belongs to.
- teams List<Property Map>
- List of teams
getTeams Result
The following output properties are available:
- Id string
- The ID of this resource.
- Filter
Keyword string - Search query. Can be team name, team handle, or email of team member.
- Filter
Me bool - When true, only returns teams the current user belongs to.
- Teams
List<Get
Teams Team> - List of teams
- Id string
- The ID of this resource.
- Filter
Keyword string - Search query. Can be team name, team handle, or email of team member.
- Filter
Me bool - When true, only returns teams the current user belongs to.
- Teams
[]Get
Teams Team - List of teams
- id String
- The ID of this resource.
- filter
Keyword String - Search query. Can be team name, team handle, or email of team member.
- filter
Me Boolean - When true, only returns teams the current user belongs to.
- teams
List<Get
Teams Team> - List of teams
- id string
- The ID of this resource.
- filter
Keyword string - Search query. Can be team name, team handle, or email of team member.
- filter
Me boolean - When true, only returns teams the current user belongs to.
- teams
Get
Teams Team[] - List of teams
- id str
- The ID of this resource.
- filter_
keyword str - Search query. Can be team name, team handle, or email of team member.
- filter_
me bool - When true, only returns teams the current user belongs to.
- teams
Sequence[Get
Teams Team] - List of teams
- id String
- The ID of this resource.
- filter
Keyword String - Search query. Can be team name, team handle, or email of team member.
- filter
Me Boolean - When true, only returns teams the current user belongs to.
- teams List<Property Map>
- List of teams
Supporting Types
GetTeamsTeam
- Description string
- Free-form markdown description/content for the team's homepage.
- Handle string
- The team's handle.
- Id string
- The team's identifier.
- Link
Count 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. - User
Count int - The number of users belonging to the team.
- Description string
- Free-form markdown description/content for the team's homepage.
- Handle string
- The team's handle.
- Id string
- The team's identifier.
- Link
Count 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. - User
Count int - The number of users belonging to the team.
- description String
- Free-form markdown description/content for the team's homepage.
- handle String
- The team's handle.
- id String
- The team's identifier.
- link
Count 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. - user
Count Integer - The number of users belonging to the team.
- description string
- Free-form markdown description/content for the team's homepage.
- handle string
- The team's handle.
- id string
- The team's identifier.
- link
Count 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. - user
Count number - The number of users belonging to the team.
- description str
- Free-form markdown description/content for the team's homepage.
- handle str
- The team's handle.
- id str
- The team's identifier.
- 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. - user_
count int - The number of users belonging to the team.
- description String
- Free-form markdown description/content for the team's homepage.
- handle String
- The team's handle.
- id String
- The team's identifier.
- link
Count 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. - user
Count Number - The number of users belonging to the team.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
