1. Packages
  2. Datadog
  3. API Docs
  4. getTeamMemberships
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

datadog.getTeamMemberships

Explore with Pulumi AI

datadog logo
Datadog v4.28.1 published on Monday, Jun 24, 2024 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: datadog:index/getTeamMemberships:getTeamMemberships
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TeamId string
    The team's identifier.
    ExactMatch bool
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    FilterKeyword string
    Search query, can be user email or name.
    TeamId string
    The team's identifier.
    ExactMatch bool
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    FilterKeyword string
    Search query, can be user email or name.
    teamId String
    The team's identifier.
    exactMatch Boolean
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    filterKeyword String
    Search query, can be user email or name.
    teamId string
    The team's identifier.
    exactMatch boolean
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    filterKeyword string
    Search query, can be user email or name.
    team_id str
    The team's identifier.
    exact_match bool
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    filter_keyword str
    Search query, can be user email or name.
    teamId String
    The team's identifier.
    exactMatch Boolean
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    filterKeyword String
    Search query, can be user email or name.

    getTeamMemberships Result

    The following output properties are available:

    Id string
    The ID of this resource.
    TeamId string
    The team's identifier.
    TeamMemberships List<GetTeamMembershipsTeamMembership>
    List of team memberships.
    ExactMatch bool
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    FilterKeyword string
    Search query, can be user email or name.
    Id string
    The ID of this resource.
    TeamId string
    The team's identifier.
    TeamMemberships []GetTeamMembershipsTeamMembership
    List of team memberships.
    ExactMatch bool
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    FilterKeyword string
    Search query, can be user email or name.
    id String
    The ID of this resource.
    teamId String
    The team's identifier.
    teamMemberships List<GetTeamMembershipsTeamMembership>
    List of team memberships.
    exactMatch Boolean
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    filterKeyword String
    Search query, can be user email or name.
    id string
    The ID of this resource.
    teamId string
    The team's identifier.
    teamMemberships GetTeamMembershipsTeamMembership[]
    List of team memberships.
    exactMatch boolean
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    filterKeyword 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[GetTeamMembershipsTeamMembership]
    List of team memberships.
    exact_match bool
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    filter_keyword str
    Search query, can be user email or name.
    id String
    The ID of this resource.
    teamId String
    The team's identifier.
    teamMemberships List<Property Map>
    List of team memberships.
    exactMatch Boolean
    When true, filter_keyword string is exact matched against the user's email, followed by name.
    filterKeyword String
    Search query, can be user email or name.

    Supporting Types

    GetTeamMembershipsTeamMembership

    Id string
    Role string
    TeamId string
    UserId string
    Id string
    Role string
    TeamId string
    UserId string
    id String
    role String
    teamId String
    userId String
    id string
    role string
    teamId string
    userId string
    id str
    role str
    team_id str
    user_id str
    id String
    role String
    teamId String
    userId String

    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.28.1 published on Monday, Jun 24, 2024 by Pulumi