1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getServiceMaintenanceWindows
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.getServiceMaintenanceWindows lists the service-level maintenance windows of one service. Team-level windows are listed by zenduty.MaintenanceWindow.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const api = zenduty.getServiceMaintenanceWindows({
        teamId: ops.id,
        serviceId: apiZendutyServices.id,
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    api = zenduty.get_service_maintenance_windows(team_id=ops["id"],
        service_id=api_zenduty_services["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.GetServiceMaintenanceWindows(ctx, &zenduty.GetServiceMaintenanceWindowsArgs{
    			TeamId:    ops.Id,
    			ServiceId: apiZendutyServices.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 api = Zenduty.GetServiceMaintenanceWindows.Invoke(new()
        {
            TeamId = ops.Id,
            ServiceId = apiZendutyServices.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.GetServiceMaintenanceWindowsArgs;
    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 api = ZendutyFunctions.getServiceMaintenanceWindows(GetServiceMaintenanceWindowsArgs.builder()
                .teamId(ops.id())
                .serviceId(apiZendutyServices.id())
                .build());
    
        }
    }
    
    variables:
      api:
        fn::invoke:
          function: zenduty:getServiceMaintenanceWindows
          arguments:
            teamId: ${ops.id}
            serviceId: ${apiZendutyServices.id}
    
    Example coming soon!
    

    Using getServiceMaintenanceWindows

    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 getServiceMaintenanceWindows(args: GetServiceMaintenanceWindowsArgs, opts?: InvokeOptions): Promise<GetServiceMaintenanceWindowsResult>
    function getServiceMaintenanceWindowsOutput(args: GetServiceMaintenanceWindowsOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceMaintenanceWindowsResult>
    def get_service_maintenance_windows(id: Optional[str] = None,
                                        service_id: Optional[str] = None,
                                        team_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetServiceMaintenanceWindowsResult
    def get_service_maintenance_windows_output(id: pulumi.Input[Optional[str]] = None,
                                        service_id: pulumi.Input[Optional[str]] = None,
                                        team_id: pulumi.Input[Optional[str]] = None,
                                        opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceMaintenanceWindowsResult]
    func GetServiceMaintenanceWindows(ctx *Context, args *GetServiceMaintenanceWindowsArgs, opts ...InvokeOption) (*GetServiceMaintenanceWindowsResult, error)
    func GetServiceMaintenanceWindowsOutput(ctx *Context, args *GetServiceMaintenanceWindowsOutputArgs, opts ...InvokeOption) GetServiceMaintenanceWindowsResultOutput

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

    public static class GetServiceMaintenanceWindows 
    {
        public static Task<GetServiceMaintenanceWindowsResult> InvokeAsync(GetServiceMaintenanceWindowsArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceMaintenanceWindowsResult> Invoke(GetServiceMaintenanceWindowsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceMaintenanceWindowsResult> Invoke(GetServiceMaintenanceWindowsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceMaintenanceWindowsResult> getServiceMaintenanceWindows(GetServiceMaintenanceWindowsArgs args, InvokeOptions options)
    public static Output<GetServiceMaintenanceWindowsResult> getServiceMaintenanceWindows(GetServiceMaintenanceWindowsArgs args, InvokeOptions options)
    public static Output<GetServiceMaintenanceWindowsResult> getServiceMaintenanceWindows(GetServiceMaintenanceWindowsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getServiceMaintenanceWindows:getServiceMaintenanceWindows
      arguments:
        # arguments dictionary
    data "zenduty_get_service_maintenance_windows" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceId string
    The unique_id of the service.
    TeamId string
    The unique_id of the team.
    Id string
    ServiceId string
    The unique_id of the service.
    TeamId string
    The unique_id of the team.
    Id string
    service_id string
    The unique_id of the service.
    team_id string
    The unique_id of the team.
    id string
    serviceId String
    The unique_id of the service.
    teamId String
    The unique_id of the team.
    id String
    serviceId string
    The unique_id of the service.
    teamId string
    The unique_id of the team.
    id string
    service_id str
    The unique_id of the service.
    team_id str
    The unique_id of the team.
    id str
    serviceId String
    The unique_id of the service.
    teamId String
    The unique_id of the team.
    id String

    getServiceMaintenanceWindows Result

    The following output properties are available:

    id string
    maintenance_windows list(object)
    The list of windows, each with:
    service_id string
    team_id string
    id String
    maintenanceWindows List<Property Map>
    The list of windows, each with:
    serviceId String
    teamId String

    Supporting Types

    GetServiceMaintenanceWindowsMaintenanceWindow

    CreationDate string
    When the window was created.
    EndTime string
    Name string
    The name.
    RepeatInterval double
    The repeat interval, 0 when the window does not repeat.
    RepeatUntil string
    StartTime string
    , end_time, repeat_until - As YYYY-MM-DD HH:MM in timezone.
    Timezone string
    The IANA time zone of the window.
    UniqueId string
    The unique_id of the window.
    CreationDate string
    When the window was created.
    EndTime string
    Name string
    The name.
    RepeatInterval float64
    The repeat interval, 0 when the window does not repeat.
    RepeatUntil string
    StartTime string
    , end_time, repeat_until - As YYYY-MM-DD HH:MM in timezone.
    Timezone string
    The IANA time zone of the window.
    UniqueId string
    The unique_id of the window.
    creation_date string
    When the window was created.
    end_time string
    name string
    The name.
    repeat_interval number
    The repeat interval, 0 when the window does not repeat.
    repeat_until string
    start_time string
    , end_time, repeat_until - As YYYY-MM-DD HH:MM in timezone.
    timezone string
    The IANA time zone of the window.
    unique_id string
    The unique_id of the window.
    creationDate String
    When the window was created.
    endTime String
    name String
    The name.
    repeatInterval Double
    The repeat interval, 0 when the window does not repeat.
    repeatUntil String
    startTime String
    , end_time, repeat_until - As YYYY-MM-DD HH:MM in timezone.
    timezone String
    The IANA time zone of the window.
    uniqueId String
    The unique_id of the window.
    creationDate string
    When the window was created.
    endTime string
    name string
    The name.
    repeatInterval number
    The repeat interval, 0 when the window does not repeat.
    repeatUntil string
    startTime string
    , end_time, repeat_until - As YYYY-MM-DD HH:MM in timezone.
    timezone string
    The IANA time zone of the window.
    uniqueId string
    The unique_id of the window.
    creation_date str
    When the window was created.
    end_time str
    name str
    The name.
    repeat_interval float
    The repeat interval, 0 when the window does not repeat.
    repeat_until str
    start_time str
    , end_time, repeat_until - As YYYY-MM-DD HH:MM in timezone.
    timezone str
    The IANA time zone of the window.
    unique_id str
    The unique_id of the window.
    creationDate String
    When the window was created.
    endTime String
    name String
    The name.
    repeatInterval Number
    The repeat interval, 0 when the window does not repeat.
    repeatUntil String
    startTime String
    , end_time, repeat_until - As YYYY-MM-DD HH:MM in timezone.
    timezone String
    The IANA time zone of the window.
    uniqueId String
    The unique_id of the window.

    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