1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getTaskTemplateTasks
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.TaskTemplateTasks lists the tasks of a task template.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const templateTasks = zenduty.getTaskTemplateTasks({
        teamId: exampleteam.id,
        taskTemplateId: exampleTemplate.id,
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    template_tasks = zenduty.get_task_template_tasks(team_id=exampleteam["id"],
        task_template_id=example_template["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.LookupTaskTemplateTasks(ctx, &zenduty.LookupTaskTemplateTasksArgs{
    			TeamId:         exampleteam.Id,
    			TaskTemplateId: exampleTemplate.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 templateTasks = Zenduty.GetTaskTemplateTasks.Invoke(new()
        {
            TeamId = exampleteam.Id,
            TaskTemplateId = exampleTemplate.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.GetTaskTemplateTasksArgs;
    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 templateTasks = ZendutyFunctions.getTaskTemplateTasks(GetTaskTemplateTasksArgs.builder()
                .teamId(exampleteam.id())
                .taskTemplateId(exampleTemplate.id())
                .build());
    
        }
    }
    
    variables:
      templateTasks:
        fn::invoke:
          function: zenduty:getTaskTemplateTasks
          arguments:
            teamId: ${exampleteam.id}
            taskTemplateId: ${exampleTemplate.id}
    
    Example coming soon!
    

    Using getTaskTemplateTasks

    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 getTaskTemplateTasks(args: GetTaskTemplateTasksArgs, opts?: InvokeOptions): Promise<GetTaskTemplateTasksResult>
    function getTaskTemplateTasksOutput(args: GetTaskTemplateTasksOutputArgs, opts?: InvokeOutputOptions): Output<GetTaskTemplateTasksResult>
    def get_task_template_tasks(id: Optional[str] = None,
                                task_template_id: Optional[str] = None,
                                team_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetTaskTemplateTasksResult
    def get_task_template_tasks_output(id: pulumi.Input[Optional[str]] = None,
                                task_template_id: pulumi.Input[Optional[str]] = None,
                                team_id: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetTaskTemplateTasksResult]
    func LookupTaskTemplateTasks(ctx *Context, args *LookupTaskTemplateTasksArgs, opts ...InvokeOption) (*LookupTaskTemplateTasksResult, error)
    func LookupTaskTemplateTasksOutput(ctx *Context, args *LookupTaskTemplateTasksOutputArgs, opts ...InvokeOption) LookupTaskTemplateTasksResultOutput

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

    public static class GetTaskTemplateTasks 
    {
        public static Task<GetTaskTemplateTasksResult> InvokeAsync(GetTaskTemplateTasksArgs args, InvokeOptions? opts = null)
        public static Output<GetTaskTemplateTasksResult> Invoke(GetTaskTemplateTasksInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTaskTemplateTasksResult> Invoke(GetTaskTemplateTasksInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTaskTemplateTasksResult> getTaskTemplateTasks(GetTaskTemplateTasksArgs args, InvokeOptions options)
    public static Output<GetTaskTemplateTasksResult> getTaskTemplateTasks(GetTaskTemplateTasksArgs args, InvokeOptions options)
    public static Output<GetTaskTemplateTasksResult> getTaskTemplateTasks(GetTaskTemplateTasksArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getTaskTemplateTasks:getTaskTemplateTasks
      arguments:
        # arguments dictionary
    data "zenduty_get_task_template_tasks" "name" {
        # arguments
    }

    The following arguments are supported:

    TaskTemplateId string
    The unique_id of the task template whose tasks to list.
    TeamId string
    The unique_id of the team.
    Id string
    TaskTemplateId string
    The unique_id of the task template whose tasks to list.
    TeamId string
    The unique_id of the team.
    Id string
    task_template_id string
    The unique_id of the task template whose tasks to list.
    team_id string
    The unique_id of the team.
    id string
    taskTemplateId String
    The unique_id of the task template whose tasks to list.
    teamId String
    The unique_id of the team.
    id String
    taskTemplateId string
    The unique_id of the task template whose tasks to list.
    teamId string
    The unique_id of the team.
    id string
    task_template_id str
    The unique_id of the task template whose tasks to list.
    team_id str
    The unique_id of the team.
    id str
    taskTemplateId String
    The unique_id of the task template whose tasks to list.
    teamId String
    The unique_id of the team.
    id String

    getTaskTemplateTasks Result

    The following output properties are available:

    Id string
    TaskTemplateId string
    Tasks List<GetTaskTemplateTasksTask>
    The list of tasks, each with:
    TeamId string
    Id string
    TaskTemplateId string
    Tasks []GetTaskTemplateTasksTask
    The list of tasks, each with:
    TeamId string
    id string
    task_template_id string
    tasks list(object)
    The list of tasks, each with:
    team_id string
    id String
    taskTemplateId String
    tasks List<GetTaskTemplateTasksTask>
    The list of tasks, each with:
    teamId String
    id string
    taskTemplateId string
    tasks GetTaskTemplateTasksTask[]
    The list of tasks, each with:
    teamId string
    id String
    taskTemplateId String
    tasks List<Property Map>
    The list of tasks, each with:
    teamId String

    Supporting Types

    GetTaskTemplateTasksTask

    CreationDate string
    When the task was created.
    Description string
    The description of the task.
    DueIn double
    Minutes until the task is due, or -1 for no due date.
    Position double
    The position of the task within the template.
    Role string
    The unique_id of the incident role the task is assigned to.
    Title string
    The title of the task.
    UniqueId string
    The unique_id of the task.
    CreationDate string
    When the task was created.
    Description string
    The description of the task.
    DueIn float64
    Minutes until the task is due, or -1 for no due date.
    Position float64
    The position of the task within the template.
    Role string
    The unique_id of the incident role the task is assigned to.
    Title string
    The title of the task.
    UniqueId string
    The unique_id of the task.
    creation_date string
    When the task was created.
    description string
    The description of the task.
    due_in number
    Minutes until the task is due, or -1 for no due date.
    position number
    The position of the task within the template.
    role string
    The unique_id of the incident role the task is assigned to.
    title string
    The title of the task.
    unique_id string
    The unique_id of the task.
    creationDate String
    When the task was created.
    description String
    The description of the task.
    dueIn Double
    Minutes until the task is due, or -1 for no due date.
    position Double
    The position of the task within the template.
    role String
    The unique_id of the incident role the task is assigned to.
    title String
    The title of the task.
    uniqueId String
    The unique_id of the task.
    creationDate string
    When the task was created.
    description string
    The description of the task.
    dueIn number
    Minutes until the task is due, or -1 for no due date.
    position number
    The position of the task within the template.
    role string
    The unique_id of the incident role the task is assigned to.
    title string
    The title of the task.
    uniqueId string
    The unique_id of the task.
    creation_date str
    When the task was created.
    description str
    The description of the task.
    due_in float
    Minutes until the task is due, or -1 for no due date.
    position float
    The position of the task within the template.
    role str
    The unique_id of the incident role the task is assigned to.
    title str
    The title of the task.
    unique_id str
    The unique_id of the task.
    creationDate String
    When the task was created.
    description String
    The description of the task.
    dueIn Number
    Minutes until the task is due, or -1 for no due date.
    position Number
    The position of the task within the template.
    role String
    The unique_id of the incident role the task is assigned to.
    title String
    The title of the task.
    uniqueId String
    The unique_id of the task.

    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