1. Packages
  2. Fivetran Provider
  3. API Docs
  4. getTeamGroupMemberships
fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran

fivetran.getTeamGroupMemberships

Explore with Pulumi AI

fivetran logo
fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran

    This data source returns a list of group memberships within team object.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fivetran from "@pulumi/fivetran";
    
    const teamGroupMemberships = fivetran.getTeamGroupMemberships({
        teamId: "team_id",
    });
    
    import pulumi
    import pulumi_fivetran as fivetran
    
    team_group_memberships = fivetran.get_team_group_memberships(team_id="team_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fivetran/fivetran"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fivetran.GetTeamGroupMemberships(ctx, &fivetran.GetTeamGroupMembershipsArgs{
    			TeamId: "team_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fivetran = Pulumi.Fivetran;
    
    return await Deployment.RunAsync(() => 
    {
        var teamGroupMemberships = Fivetran.GetTeamGroupMemberships.Invoke(new()
        {
            TeamId = "team_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fivetran.FivetranFunctions;
    import com.pulumi.fivetran.inputs.GetTeamGroupMembershipsArgs;
    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 teamGroupMemberships = FivetranFunctions.getTeamGroupMemberships(GetTeamGroupMembershipsArgs.builder()
                .teamId("team_id")
                .build());
    
        }
    }
    
    variables:
      teamGroupMemberships:
        fn::invoke:
          function: fivetran:getTeamGroupMemberships
          arguments:
            teamId: team_id
    

    Using getTeamGroupMemberships

    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 getTeamGroupMemberships(args: GetTeamGroupMembershipsArgs, opts?: InvokeOptions): Promise<GetTeamGroupMembershipsResult>
    function getTeamGroupMembershipsOutput(args: GetTeamGroupMembershipsOutputArgs, opts?: InvokeOptions): Output<GetTeamGroupMembershipsResult>
    def get_team_group_memberships(groups: Optional[Sequence[GetTeamGroupMembershipsGroup]] = None,
                                   team_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetTeamGroupMembershipsResult
    def get_team_group_memberships_output(groups: Optional[pulumi.Input[Sequence[pulumi.Input[GetTeamGroupMembershipsGroupArgs]]]] = None,
                                   team_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetTeamGroupMembershipsResult]
    func GetTeamGroupMemberships(ctx *Context, args *GetTeamGroupMembershipsArgs, opts ...InvokeOption) (*GetTeamGroupMembershipsResult, error)
    func GetTeamGroupMembershipsOutput(ctx *Context, args *GetTeamGroupMembershipsOutputArgs, opts ...InvokeOption) GetTeamGroupMembershipsResultOutput

    > Note: This function is named GetTeamGroupMemberships in the Go SDK.

    public static class GetTeamGroupMemberships 
    {
        public static Task<GetTeamGroupMembershipsResult> InvokeAsync(GetTeamGroupMembershipsArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamGroupMembershipsResult> Invoke(GetTeamGroupMembershipsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeamGroupMembershipsResult> getTeamGroupMemberships(GetTeamGroupMembershipsArgs args, InvokeOptions options)
    public static Output<GetTeamGroupMembershipsResult> getTeamGroupMemberships(GetTeamGroupMembershipsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: fivetran:index/getTeamGroupMemberships:getTeamGroupMemberships
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TeamId string
    The unique identifier for the team within your account.
    Groups List<GetTeamGroupMembershipsGroup>
    TeamId string
    The unique identifier for the team within your account.
    Groups []GetTeamGroupMembershipsGroup
    teamId String
    The unique identifier for the team within your account.
    groups List<GetTeamGroupMembershipsGroup>
    teamId string
    The unique identifier for the team within your account.
    groups GetTeamGroupMembershipsGroup[]
    team_id str
    The unique identifier for the team within your account.
    groups Sequence[GetTeamGroupMembershipsGroup]
    teamId String
    The unique identifier for the team within your account.
    groups List<Property Map>

    getTeamGroupMemberships Result

    The following output properties are available:

    Id string
    The unique identifier for resource.
    TeamId string
    The unique identifier for the team within your account.
    Groups List<GetTeamGroupMembershipsGroup>
    Id string
    The unique identifier for resource.
    TeamId string
    The unique identifier for the team within your account.
    Groups []GetTeamGroupMembershipsGroup
    id String
    The unique identifier for resource.
    teamId String
    The unique identifier for the team within your account.
    groups List<GetTeamGroupMembershipsGroup>
    id string
    The unique identifier for resource.
    teamId string
    The unique identifier for the team within your account.
    groups GetTeamGroupMembershipsGroup[]
    id str
    The unique identifier for resource.
    team_id str
    The unique identifier for the team within your account.
    groups Sequence[GetTeamGroupMembershipsGroup]
    id String
    The unique identifier for resource.
    teamId String
    The unique identifier for the team within your account.
    groups List<Property Map>

    Supporting Types

    GetTeamGroupMembershipsGroup

    CreatedAt string
    The date and time the membership was created
    GroupId string
    The group unique identifier
    Role string
    The team's role that links the team and the group
    CreatedAt string
    The date and time the membership was created
    GroupId string
    The group unique identifier
    Role string
    The team's role that links the team and the group
    createdAt String
    The date and time the membership was created
    groupId String
    The group unique identifier
    role String
    The team's role that links the team and the group
    createdAt string
    The date and time the membership was created
    groupId string
    The group unique identifier
    role string
    The team's role that links the team and the group
    created_at str
    The date and time the membership was created
    group_id str
    The group unique identifier
    role str
    The team's role that links the team and the group
    createdAt String
    The date and time the membership was created
    groupId String
    The group unique identifier
    role String
    The team's role that links the team and the group

    Package Details

    Repository
    fivetran fivetran/terraform-provider-fivetran
    License
    Notes
    This Pulumi package is based on the fivetran Terraform Provider.
    fivetran logo
    fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran