1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getTaskTemplates
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty

    zenduty.TaskTemplates lists the task templates of a team.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const teamTemplates = zenduty.getTaskTemplates({
        teamId: exampleteam.id,
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    team_templates = zenduty.get_task_templates(team_id=exampleteam["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.LookupTaskTemplates(ctx, &zenduty.LookupTaskTemplatesArgs{
    			TeamId: exampleteam.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 teamTemplates = Zenduty.GetTaskTemplates.Invoke(new()
        {
            TeamId = exampleteam.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.GetTaskTemplatesArgs;
    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 teamTemplates = ZendutyFunctions.getTaskTemplates(GetTaskTemplatesArgs.builder()
                .teamId(exampleteam.id())
                .build());
    
        }
    }
    
    variables:
      teamTemplates:
        fn::invoke:
          function: zenduty:getTaskTemplates
          arguments:
            teamId: ${exampleteam.id}
    
    Example coming soon!
    

    Using getTaskTemplates

    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 getTaskTemplates(args: GetTaskTemplatesArgs, opts?: InvokeOptions): Promise<GetTaskTemplatesResult>
    function getTaskTemplatesOutput(args: GetTaskTemplatesOutputArgs, opts?: InvokeOutputOptions): Output<GetTaskTemplatesResult>
    def get_task_templates(id: Optional[str] = None,
                           team_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetTaskTemplatesResult
    def get_task_templates_output(id: pulumi.Input[Optional[str]] = None,
                           team_id: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetTaskTemplatesResult]
    func LookupTaskTemplates(ctx *Context, args *LookupTaskTemplatesArgs, opts ...InvokeOption) (*LookupTaskTemplatesResult, error)
    func LookupTaskTemplatesOutput(ctx *Context, args *LookupTaskTemplatesOutputArgs, opts ...InvokeOption) LookupTaskTemplatesResultOutput

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

    public static class GetTaskTemplates 
    {
        public static Task<GetTaskTemplatesResult> InvokeAsync(GetTaskTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetTaskTemplatesResult> Invoke(GetTaskTemplatesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTaskTemplatesResult> Invoke(GetTaskTemplatesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTaskTemplatesResult> getTaskTemplates(GetTaskTemplatesArgs args, InvokeOptions options)
    public static Output<GetTaskTemplatesResult> getTaskTemplates(GetTaskTemplatesArgs args, InvokeOptions options)
    public static Output<GetTaskTemplatesResult> getTaskTemplates(GetTaskTemplatesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getTaskTemplates:getTaskTemplates
      arguments:
        # arguments dictionary
    data "zenduty_get_task_templates" "name" {
        # arguments
    }

    The following arguments are supported:

    TeamId string
    The unique_id of the team whose task templates to list.
    Id string
    TeamId string
    The unique_id of the team whose task templates to list.
    Id string
    team_id string
    The unique_id of the team whose task templates to list.
    id string
    teamId String
    The unique_id of the team whose task templates to list.
    id String
    teamId string
    The unique_id of the team whose task templates to list.
    id string
    team_id str
    The unique_id of the team whose task templates to list.
    id str
    teamId String
    The unique_id of the team whose task templates to list.
    id String

    getTaskTemplates Result

    The following output properties are available:

    Id string
    TaskTemplates List<GetTaskTemplatesTaskTemplate>
    The list of task templates, each with:
    TeamId string
    Id string
    TaskTemplates []GetTaskTemplatesTaskTemplate
    The list of task templates, each with:
    TeamId string
    id string
    task_templates list(object)
    The list of task templates, each with:
    team_id string
    id String
    taskTemplates List<GetTaskTemplatesTaskTemplate>
    The list of task templates, each with:
    teamId String
    id string
    taskTemplates GetTaskTemplatesTaskTemplate[]
    The list of task templates, each with:
    teamId string
    id str
    task_templates Sequence[GetTaskTemplatesTaskTemplate]
    The list of task templates, each with:
    team_id str
    id String
    taskTemplates List<Property Map>
    The list of task templates, each with:
    teamId String

    Supporting Types

    GetTaskTemplatesTaskTemplate

    CreationDate string
    When the task template was created.
    Name string
    The name of the task template.
    Summary string
    The summary of the task template.
    UniqueId string
    The unique_id of the task template.
    CreationDate string
    When the task template was created.
    Name string
    The name of the task template.
    Summary string
    The summary of the task template.
    UniqueId string
    The unique_id of the task template.
    creation_date string
    When the task template was created.
    name string
    The name of the task template.
    summary string
    The summary of the task template.
    unique_id string
    The unique_id of the task template.
    creationDate String
    When the task template was created.
    name String
    The name of the task template.
    summary String
    The summary of the task template.
    uniqueId String
    The unique_id of the task template.
    creationDate string
    When the task template was created.
    name string
    The name of the task template.
    summary string
    The summary of the task template.
    uniqueId string
    The unique_id of the task template.
    creation_date str
    When the task template was created.
    name str
    The name of the task template.
    summary str
    The summary of the task template.
    unique_id str
    The unique_id of the task template.
    creationDate String
    When the task template was created.
    name String
    The name of the task template.
    summary String
    The summary of the task template.
    uniqueId String
    The unique_id of the task template.

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    Viewing docs for zenduty 2.0.0
    published on Friday, Aug 14, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial