Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
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 dictionarydata "zenduty_get_service_maintenance_windows" "name" {
# arguments
}The following arguments are supported:
- service_
id string - The unique_id of the service.
- team_
id 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
getServiceMaintenanceWindows Result
The following output properties are available:
- Id string
- Maintenance
Windows List<GetService Maintenance Windows Maintenance Window> - The list of windows, each with:
- Service
Id string - Team
Id string
- Id string
- Maintenance
Windows []GetService Maintenance Windows Maintenance Window - The list of windows, each with:
- Service
Id string - Team
Id string
- id string
- maintenance_
windows list(object) - The list of windows, each with:
- service_
id string - team_
id string
- id String
- maintenance
Windows List<GetService Maintenance Windows Maintenance Window> - The list of windows, each with:
- service
Id String - team
Id String
- id string
- maintenance
Windows GetService Maintenance Windows Maintenance Window[] - The list of windows, each with:
- service
Id string - team
Id string
- id str
- maintenance_
windows Sequence[GetService Maintenance Windows Maintenance Window] - The list of windows, each with:
- service_
id str - team_
id str
- id String
- maintenance
Windows List<Property Map> - The list of windows, each with:
- service
Id String - team
Id String
Supporting Types
GetServiceMaintenanceWindowsMaintenanceWindow
- Creation
Date string - When the window was created.
- End
Time string - Name string
- The name.
- Repeat
Interval double - The repeat interval,
0when the window does not repeat. - Repeat
Until string - Start
Time string - ,
end_time,repeat_until- AsYYYY-MM-DD HH:MMintimezone. - Timezone string
- The IANA time zone of the window.
- Unique
Id string - The unique_id of the window.
- Creation
Date string - When the window was created.
- End
Time string - Name string
- The name.
- Repeat
Interval float64 - The repeat interval,
0when the window does not repeat. - Repeat
Until string - Start
Time string - ,
end_time,repeat_until- AsYYYY-MM-DD HH:MMintimezone. - Timezone string
- The IANA time zone of the window.
- Unique
Id 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,
0when the window does not repeat. - repeat_
until string - start_
time string - ,
end_time,repeat_until- AsYYYY-MM-DD HH:MMintimezone. - timezone string
- The IANA time zone of the window.
- unique_
id string - The unique_id of the window.
- creation
Date String - When the window was created.
- end
Time String - name String
- The name.
- repeat
Interval Double - The repeat interval,
0when the window does not repeat. - repeat
Until String - start
Time String - ,
end_time,repeat_until- AsYYYY-MM-DD HH:MMintimezone. - timezone String
- The IANA time zone of the window.
- unique
Id 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,
0when the window does not repeat. - repeat
Until string - start
Time string - ,
end_time,repeat_until- AsYYYY-MM-DD HH:MMintimezone. - timezone string
- The IANA time zone of the window.
- unique
Id 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,
0when the window does not repeat. - repeat_
until str - start_
time str - ,
end_time,repeat_until- AsYYYY-MM-DD HH:MMintimezone. - timezone str
- The IANA time zone of the window.
- unique_
id str - 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,
0when the window does not repeat. - repeat
Until String - start
Time String - ,
end_time,repeat_until- AsYYYY-MM-DD HH:MMintimezone. - timezone String
- The IANA time zone of the window.
- unique
Id String - The unique_id of the window.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty