1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getMaintenanceTemplates
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty

    zenduty.getMaintenanceTemplates lists a team’s maintenance rule templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const ops = zenduty.getMaintenanceTemplates({
        teamId: opsZendutyTeams.id,
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    ops = zenduty.get_maintenance_templates(team_id=ops_zenduty_teams["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.GetMaintenanceTemplates(ctx, &zenduty.GetMaintenanceTemplatesArgs{
    			TeamId: opsZendutyTeams.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 ops = Zenduty.GetMaintenanceTemplates.Invoke(new()
        {
            TeamId = opsZendutyTeams.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.GetMaintenanceTemplatesArgs;
    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 ops = ZendutyFunctions.getMaintenanceTemplates(GetMaintenanceTemplatesArgs.builder()
                .teamId(opsZendutyTeams.id())
                .build());
    
        }
    }
    
    variables:
      ops:
        fn::invoke:
          function: zenduty:getMaintenanceTemplates
          arguments:
            teamId: ${opsZendutyTeams.id}
    
    Example coming soon!
    

    Using getMaintenanceTemplates

    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 getMaintenanceTemplates(args: GetMaintenanceTemplatesArgs, opts?: InvokeOptions): Promise<GetMaintenanceTemplatesResult>
    function getMaintenanceTemplatesOutput(args: GetMaintenanceTemplatesOutputArgs, opts?: InvokeOutputOptions): Output<GetMaintenanceTemplatesResult>
    def get_maintenance_templates(id: Optional[str] = None,
                                  team_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetMaintenanceTemplatesResult
    def get_maintenance_templates_output(id: pulumi.Input[Optional[str]] = None,
                                  team_id: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetMaintenanceTemplatesResult]
    func GetMaintenanceTemplates(ctx *Context, args *GetMaintenanceTemplatesArgs, opts ...InvokeOption) (*GetMaintenanceTemplatesResult, error)
    func GetMaintenanceTemplatesOutput(ctx *Context, args *GetMaintenanceTemplatesOutputArgs, opts ...InvokeOption) GetMaintenanceTemplatesResultOutput

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

    public static class GetMaintenanceTemplates 
    {
        public static Task<GetMaintenanceTemplatesResult> InvokeAsync(GetMaintenanceTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetMaintenanceTemplatesResult> Invoke(GetMaintenanceTemplatesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMaintenanceTemplatesResult> Invoke(GetMaintenanceTemplatesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMaintenanceTemplatesResult> getMaintenanceTemplates(GetMaintenanceTemplatesArgs args, InvokeOptions options)
    public static Output<GetMaintenanceTemplatesResult> getMaintenanceTemplates(GetMaintenanceTemplatesArgs args, InvokeOptions options)
    public static Output<GetMaintenanceTemplatesResult> getMaintenanceTemplates(GetMaintenanceTemplatesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getMaintenanceTemplates:getMaintenanceTemplates
      arguments:
        # arguments dictionary
    data "zenduty_get_maintenance_templates" "name" {
        # arguments
    }

    The following arguments are supported:

    TeamId string
    The unique_id of the team.
    Id string
    TeamId string
    The unique_id of the team.
    Id string
    team_id string
    The unique_id of the team.
    id string
    teamId String
    The unique_id of the team.
    id String
    teamId string
    The unique_id of the team.
    id string
    team_id str
    The unique_id of the team.
    id str
    teamId String
    The unique_id of the team.
    id String

    getMaintenanceTemplates Result

    The following output properties are available:

    Id string
    MaintenanceTemplates []GetMaintenanceTemplatesMaintenanceTemplate
    The list of templates, each with:
    TeamId string
    id string
    maintenance_templates list(object)
    The list of templates, each with:
    team_id string
    id string
    maintenanceTemplates GetMaintenanceTemplatesMaintenanceTemplate[]
    The list of templates, each with:
    teamId string
    id String
    maintenanceTemplates List<Property Map>
    The list of templates, each with:
    teamId String

    Supporting Types

    GetMaintenanceTemplatesMaintenanceTemplate

    IsEnabled bool
    Whether the template is active.
    Name string
    The name.
    RuleJson string
    The matching rule as JSON.
    UniqueId string
    The unique_id of the template.
    IsEnabled bool
    Whether the template is active.
    Name string
    The name.
    RuleJson string
    The matching rule as JSON.
    UniqueId string
    The unique_id of the template.
    is_enabled bool
    Whether the template is active.
    name string
    The name.
    rule_json string
    The matching rule as JSON.
    unique_id string
    The unique_id of the template.
    isEnabled Boolean
    Whether the template is active.
    name String
    The name.
    ruleJson String
    The matching rule as JSON.
    uniqueId String
    The unique_id of the template.
    isEnabled boolean
    Whether the template is active.
    name string
    The name.
    ruleJson string
    The matching rule as JSON.
    uniqueId string
    The unique_id of the template.
    is_enabled bool
    Whether the template is active.
    name str
    The name.
    rule_json str
    The matching rule as JSON.
    unique_id str
    The unique_id of the template.
    isEnabled Boolean
    Whether the template is active.
    name String
    The name.
    ruleJson String
    The matching rule as JSON.
    uniqueId String
    The unique_id of the template.

    Package Details

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

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial