1. Packages
  2. Zenduty Provider
  3. API Docs
  4. getMembers
zenduty 1.0.6 published on Wednesday, Sep 3, 2025 by zenduty

zenduty.getMembers

Explore with Pulumi AI

zenduty logo
zenduty 1.0.6 published on Wednesday, Sep 3, 2025 by zenduty
    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const exampleMember = zenduty.getMembers({
        memberId: "member_unique_id",
        teamId: "team_unique_id",
    });
    const teamMembers = zenduty.getMembers({
        teamId: "team_unique_id",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    example_member = zenduty.get_members(member_id="member_unique_id",
        team_id="team_unique_id")
    team_members = zenduty.get_members(team_id="team_unique_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.GetMembers(ctx, &zenduty.GetMembersArgs{
    			MemberId: pulumi.StringRef("member_unique_id"),
    			TeamId:   "team_unique_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zenduty.GetMembers(ctx, &zenduty.GetMembersArgs{
    			TeamId: "team_unique_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleMember = Zenduty.GetMembers.Invoke(new()
        {
            MemberId = "member_unique_id",
            TeamId = "team_unique_id",
        });
    
        var teamMembers = Zenduty.GetMembers.Invoke(new()
        {
            TeamId = "team_unique_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.ZendutyFunctions;
    import com.pulumi.zenduty.inputs.GetMembersArgs;
    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 exampleMember = ZendutyFunctions.getMembers(GetMembersArgs.builder()
                .memberId("member_unique_id")
                .teamId("team_unique_id")
                .build());
    
            final var teamMembers = ZendutyFunctions.getMembers(GetMembersArgs.builder()
                .teamId("team_unique_id")
                .build());
    
        }
    }
    
    variables:
      exampleMember:
        fn::invoke:
          function: zenduty:getMembers
          arguments:
            memberId: member_unique_id
            teamId: team_unique_id
      teamMembers:
        fn::invoke:
          function: zenduty:getMembers
          arguments:
            teamId: team_unique_id
    
    import * as pulumi from "@pulumi/pulumi";
    
    export const members = data.zenduty_members.example_member.members;
    
    import pulumi
    
    pulumi.export("members", data["zenduty_members"]["example_member"]["members"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ctx.Export("members", data.Zenduty_members.Example_member.Members)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        return new Dictionary<string, object?>
        {
            ["members"] = data.Zenduty_members.Example_member.Members,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
            ctx.export("members", data.zenduty_members().example_member().members());
        }
    }
    
    outputs:
      members: ${data.zenduty_members.example_member.members}
    

    Using getMembers

    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 getMembers(args: GetMembersArgs, opts?: InvokeOptions): Promise<GetMembersResult>
    function getMembersOutput(args: GetMembersOutputArgs, opts?: InvokeOptions): Output<GetMembersResult>
    def get_members(id: Optional[str] = None,
                    member_id: Optional[str] = None,
                    team_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetMembersResult
    def get_members_output(id: Optional[pulumi.Input[str]] = None,
                    member_id: Optional[pulumi.Input[str]] = None,
                    team_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetMembersResult]
    func GetMembers(ctx *Context, args *GetMembersArgs, opts ...InvokeOption) (*GetMembersResult, error)
    func GetMembersOutput(ctx *Context, args *GetMembersOutputArgs, opts ...InvokeOption) GetMembersResultOutput

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

    public static class GetMembers 
    {
        public static Task<GetMembersResult> InvokeAsync(GetMembersArgs args, InvokeOptions? opts = null)
        public static Output<GetMembersResult> Invoke(GetMembersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMembersResult> getMembers(GetMembersArgs args, InvokeOptions options)
    public static Output<GetMembersResult> getMembers(GetMembersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zenduty:index/getMembers:getMembers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TeamId string
    The UniqueID of the team to query members for.
    Id string
    MemberId string
    The UniqueID of the specific team member to query. If not provided, all team members for the specified team will be returned.
    TeamId string
    The UniqueID of the team to query members for.
    Id string
    MemberId string
    The UniqueID of the specific team member to query. If not provided, all team members for the specified team will be returned.
    teamId String
    The UniqueID of the team to query members for.
    id String
    memberId String
    The UniqueID of the specific team member to query. If not provided, all team members for the specified team will be returned.
    teamId string
    The UniqueID of the team to query members for.
    id string
    memberId string
    The UniqueID of the specific team member to query. If not provided, all team members for the specified team will be returned.
    team_id str
    The UniqueID of the team to query members for.
    id str
    member_id str
    The UniqueID of the specific team member to query. If not provided, all team members for the specified team will be returned.
    teamId String
    The UniqueID of the team to query members for.
    id String
    memberId String
    The UniqueID of the specific team member to query. If not provided, all team members for the specified team will be returned.

    getMembers Result

    The following output properties are available:

    Supporting Types

    GetMembersMember

    Role double
    The role of the member in the team.
    Team string
    The UniqueID of the team.
    UniqueId string
    The UniqueID of the team member.
    User Dictionary<string, string>
    The user details. The following attributes are exported as map:
    Role float64
    The role of the member in the team.
    Team string
    The UniqueID of the team.
    UniqueId string
    The UniqueID of the team member.
    User map[string]string
    The user details. The following attributes are exported as map:
    role Double
    The role of the member in the team.
    team String
    The UniqueID of the team.
    uniqueId String
    The UniqueID of the team member.
    user Map<String,String>
    The user details. The following attributes are exported as map:
    role number
    The role of the member in the team.
    team string
    The UniqueID of the team.
    uniqueId string
    The UniqueID of the team member.
    user {[key: string]: string}
    The user details. The following attributes are exported as map:
    role float
    The role of the member in the team.
    team str
    The UniqueID of the team.
    unique_id str
    The UniqueID of the team member.
    user Mapping[str, str]
    The user details. The following attributes are exported as map:
    role Number
    The role of the member in the team.
    team String
    The UniqueID of the team.
    uniqueId String
    The UniqueID of the team member.
    user Map<String>
    The user details. The following attributes are exported as map:

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    zenduty logo
    zenduty 1.0.6 published on Wednesday, Sep 3, 2025 by zenduty