Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Use this data source to retrieve information about existing Datadog team memberships.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const foo = datadog.getTeamMemberships({
teamId: "e6723c40-edb1-11ed-b816-da7ad0900002",
filterKeyword: "foo@example.com",
});
import pulumi
import pulumi_datadog as datadog
foo = datadog.get_team_memberships(team_id="e6723c40-edb1-11ed-b816-da7ad0900002",
filter_keyword="foo@example.com")
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.GetTeamMemberships(ctx, &datadog.GetTeamMembershipsArgs{
TeamId: "e6723c40-edb1-11ed-b816-da7ad0900002",
FilterKeyword: pulumi.StringRef("foo@example.com"),
}, 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.GetTeamMemberships.Invoke(new()
{
TeamId = "e6723c40-edb1-11ed-b816-da7ad0900002",
FilterKeyword = "foo@example.com",
});
});
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.GetTeamMembershipsArgs;
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.getTeamMemberships(GetTeamMembershipsArgs.builder()
.teamId("e6723c40-edb1-11ed-b816-da7ad0900002")
.filterKeyword("foo@example.com")
.build());
}
}
variables:
foo:
fn::invoke:
function: datadog:getTeamMemberships
arguments:
teamId: e6723c40-edb1-11ed-b816-da7ad0900002
filterKeyword: foo@example.com
Using getTeamMemberships
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 getTeamMemberships(args: GetTeamMembershipsArgs, opts?: InvokeOptions): Promise<GetTeamMembershipsResult>
function getTeamMembershipsOutput(args: GetTeamMembershipsOutputArgs, opts?: InvokeOptions): Output<GetTeamMembershipsResult>def get_team_memberships(exact_match: Optional[bool] = None,
filter_keyword: Optional[str] = None,
team_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTeamMembershipsResult
def get_team_memberships_output(exact_match: Optional[pulumi.Input[bool]] = None,
filter_keyword: Optional[pulumi.Input[str]] = None,
team_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTeamMembershipsResult]func GetTeamMemberships(ctx *Context, args *GetTeamMembershipsArgs, opts ...InvokeOption) (*GetTeamMembershipsResult, error)
func GetTeamMembershipsOutput(ctx *Context, args *GetTeamMembershipsOutputArgs, opts ...InvokeOption) GetTeamMembershipsResultOutput> Note: This function is named GetTeamMemberships in the Go SDK.
public static class GetTeamMemberships
{
public static Task<GetTeamMembershipsResult> InvokeAsync(GetTeamMembershipsArgs args, InvokeOptions? opts = null)
public static Output<GetTeamMembershipsResult> Invoke(GetTeamMembershipsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTeamMembershipsResult> getTeamMemberships(GetTeamMembershipsArgs args, InvokeOptions options)
public static Output<GetTeamMembershipsResult> getTeamMemberships(GetTeamMembershipsArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getTeamMemberships:getTeamMemberships
arguments:
# arguments dictionaryThe following arguments are supported:
- Team
Id string - The team's identifier.
- Exact
Match bool - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - Filter
Keyword string - Search query, can be user email or name.
- Team
Id string - The team's identifier.
- Exact
Match bool - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - Filter
Keyword string - Search query, can be user email or name.
- team
Id String - The team's identifier.
- exact
Match Boolean - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - filter
Keyword String - Search query, can be user email or name.
- team
Id string - The team's identifier.
- exact
Match boolean - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - filter
Keyword string - Search query, can be user email or name.
- team_
id str - The team's identifier.
- exact_
match bool - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - filter_
keyword str - Search query, can be user email or name.
- team
Id String - The team's identifier.
- exact
Match Boolean - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - filter
Keyword String - Search query, can be user email or name.
getTeamMemberships Result
The following output properties are available:
- Id string
- The ID of this resource.
- Team
Id string - The team's identifier.
- Team
Memberships List<GetTeam Memberships Team Membership> - List of team memberships.
- Exact
Match bool - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - Filter
Keyword string - Search query, can be user email or name.
- Id string
- The ID of this resource.
- Team
Id string - The team's identifier.
- Team
Memberships []GetTeam Memberships Team Membership - List of team memberships.
- Exact
Match bool - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - Filter
Keyword string - Search query, can be user email or name.
- id String
- The ID of this resource.
- team
Id String - The team's identifier.
- team
Memberships List<GetTeam Memberships Team Membership> - List of team memberships.
- exact
Match Boolean - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - filter
Keyword String - Search query, can be user email or name.
- id string
- The ID of this resource.
- team
Id string - The team's identifier.
- team
Memberships GetTeam Memberships Team Membership[] - List of team memberships.
- exact
Match boolean - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - filter
Keyword string - Search query, can be user email or name.
- id str
- The ID of this resource.
- team_
id str - The team's identifier.
- team_
memberships Sequence[GetTeam Memberships Team Membership] - List of team memberships.
- exact_
match bool - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - filter_
keyword str - Search query, can be user email or name.
- id String
- The ID of this resource.
- team
Id String - The team's identifier.
- team
Memberships List<Property Map> - List of team memberships.
- exact
Match Boolean - When true,
filter_keywordstring is exact matched against the user'semail, followed byname. - filter
Keyword String - Search query, can be user email or name.
Supporting Types
GetTeamMembershipsTeamMembership
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
