published on Friday, Aug 14, 2026 by zenduty
published on Friday, Aug 14, 2026 by zenduty
zenduty.Schedules is a resource to manage schedules in a team
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleteam = new zenduty.Teams("exampleteam", {name: "exmaple team"});
import pulumi
import pulumi_zenduty as zenduty
exampleteam = zenduty.Teams("exampleteam", name="exmaple team")
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.NewTeams(ctx, "exampleteam", &zenduty.TeamsArgs{
Name: pulumi.String("exmaple team"),
})
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 exampleteam = new Zenduty.Teams("exampleteam", new()
{
Name = "exmaple team",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Teams;
import com.pulumi.zenduty.TeamsArgs;
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) {
var exampleteam = new Teams("exampleteam", TeamsArgs.builder()
.name("exmaple team")
.build());
}
}
resources:
exampleteam:
type: zenduty:Teams
properties:
name: exmaple team
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleschedule = new zenduty.Schedules("exampleschedule", {
name: "exmaple schedule",
teamId: exampleteam.id,
timeZone: "",
});
import pulumi
import pulumi_zenduty as zenduty
exampleschedule = zenduty.Schedules("exampleschedule",
name="exmaple schedule",
team_id=exampleteam["id"],
time_zone="")
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.NewSchedules(ctx, "exampleschedule", &zenduty.SchedulesArgs{
Name: pulumi.String("exmaple schedule"),
TeamId: pulumi.Any(exampleteam.Id),
TimeZone: pulumi.String(""),
})
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 exampleschedule = new Zenduty.Schedules("exampleschedule", new()
{
Name = "exmaple schedule",
TeamId = exampleteam.Id,
TimeZone = "",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Schedules;
import com.pulumi.zenduty.SchedulesArgs;
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) {
var exampleschedule = new Schedules("exampleschedule", SchedulesArgs.builder()
.name("exmaple schedule")
.teamId(exampleteam.id())
.timeZone("")
.build());
}
}
resources:
exampleschedule:
type: zenduty:Schedules
properties:
name: exmaple schedule
teamId: ${exampleteam.id}
timeZone: ""
Example coming soon!
Schedule Example
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const demoSchedule = new zenduty.Schedules("demo_schedule", {
name: "Infra Schedule",
teamId: exampleteam.id,
timeZone: "Asia/Kolkata",
layers: [
{
name: "layer1",
rotationEndTime: "2021-03-01 11:36",
rotationStartTime: "2022-03-01 11:36",
shiftLength: 86400,
users: [
"user1",
"user2",
],
restrictionType: 2,
restrictions: [{
startTimeOfDay: "08:00:00",
startDayOfWeek: 1,
duration: 86400,
}],
},
{
name: "layer2",
rotationEndTime: "2023-02-09T16:21:00+05:30",
rotationStartTime: "2022-02-09T12:21:11+05:30",
shiftLength: 86400,
users: [
"user3",
"user4",
],
restrictionType: 1,
restrictions: [{
startTimeOfDay: "08:00:00",
startDayOfWeek: 7,
duration: 3600,
}],
},
],
overrides: [{
name: "example override",
startTime: "2021-03-01 11:36",
endTime: "2021-03-02 11:36",
user: "",
}],
});
import pulumi
import pulumi_zenduty as zenduty
demo_schedule = zenduty.Schedules("demo_schedule",
name="Infra Schedule",
team_id=exampleteam["id"],
time_zone="Asia/Kolkata",
layers=[
{
"name": "layer1",
"rotation_end_time": "2021-03-01 11:36",
"rotation_start_time": "2022-03-01 11:36",
"shift_length": 86400,
"users": [
"user1",
"user2",
],
"restriction_type": 2,
"restrictions": [{
"start_time_of_day": "08:00:00",
"start_day_of_week": 1,
"duration": 86400,
}],
},
{
"name": "layer2",
"rotation_end_time": "2023-02-09T16:21:00+05:30",
"rotation_start_time": "2022-02-09T12:21:11+05:30",
"shift_length": 86400,
"users": [
"user3",
"user4",
],
"restriction_type": 1,
"restrictions": [{
"start_time_of_day": "08:00:00",
"start_day_of_week": 7,
"duration": 3600,
}],
},
],
overrides=[{
"name": "example override",
"start_time": "2021-03-01 11:36",
"end_time": "2021-03-02 11:36",
"user": "",
}])
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.NewSchedules(ctx, "demo_schedule", &zenduty.SchedulesArgs{
Name: pulumi.String("Infra Schedule"),
TeamId: pulumi.Any(exampleteam.Id),
TimeZone: pulumi.String("Asia/Kolkata"),
Layers: zenduty.SchedulesLayerArray{
&zenduty.SchedulesLayerArgs{
Name: pulumi.String("layer1"),
RotationEndTime: pulumi.String("2021-03-01 11:36"),
RotationStartTime: pulumi.String("2022-03-01 11:36"),
ShiftLength: pulumi.Float64(86400),
Users: pulumi.StringArray{
pulumi.String("user1"),
pulumi.String("user2"),
},
RestrictionType: pulumi.Float64(2),
Restrictions: zenduty.SchedulesLayerRestrictionArray{
&zenduty.SchedulesLayerRestrictionArgs{
StartTimeOfDay: pulumi.String("08:00:00"),
StartDayOfWeek: pulumi.Float64(1),
Duration: pulumi.Float64(86400),
},
},
},
&zenduty.SchedulesLayerArgs{
Name: pulumi.String("layer2"),
RotationEndTime: pulumi.String("2023-02-09T16:21:00+05:30"),
RotationStartTime: pulumi.String("2022-02-09T12:21:11+05:30"),
ShiftLength: pulumi.Float64(86400),
Users: pulumi.StringArray{
pulumi.String("user3"),
pulumi.String("user4"),
},
RestrictionType: pulumi.Float64(1),
Restrictions: zenduty.SchedulesLayerRestrictionArray{
&zenduty.SchedulesLayerRestrictionArgs{
StartTimeOfDay: pulumi.String("08:00:00"),
StartDayOfWeek: pulumi.Float64(7),
Duration: pulumi.Float64(3600),
},
},
},
},
Overrides: zenduty.SchedulesOverrideArray{
&zenduty.SchedulesOverrideArgs{
Name: pulumi.String("example override"),
StartTime: pulumi.String("2021-03-01 11:36"),
EndTime: pulumi.String("2021-03-02 11:36"),
User: pulumi.String(""),
},
},
})
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 demoSchedule = new Zenduty.Schedules("demo_schedule", new()
{
Name = "Infra Schedule",
TeamId = exampleteam.Id,
TimeZone = "Asia/Kolkata",
Layers = new[]
{
new Zenduty.Inputs.SchedulesLayerArgs
{
Name = "layer1",
RotationEndTime = "2021-03-01 11:36",
RotationStartTime = "2022-03-01 11:36",
ShiftLength = 86400,
Users = new[]
{
"user1",
"user2",
},
RestrictionType = 2,
Restrictions = new[]
{
new Zenduty.Inputs.SchedulesLayerRestrictionArgs
{
StartTimeOfDay = "08:00:00",
StartDayOfWeek = 1,
Duration = 86400,
},
},
},
new Zenduty.Inputs.SchedulesLayerArgs
{
Name = "layer2",
RotationEndTime = "2023-02-09T16:21:00+05:30",
RotationStartTime = "2022-02-09T12:21:11+05:30",
ShiftLength = 86400,
Users = new[]
{
"user3",
"user4",
},
RestrictionType = 1,
Restrictions = new[]
{
new Zenduty.Inputs.SchedulesLayerRestrictionArgs
{
StartTimeOfDay = "08:00:00",
StartDayOfWeek = 7,
Duration = 3600,
},
},
},
},
Overrides = new[]
{
new Zenduty.Inputs.SchedulesOverrideArgs
{
Name = "example override",
StartTime = "2021-03-01 11:36",
EndTime = "2021-03-02 11:36",
User = "",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Schedules;
import com.pulumi.zenduty.SchedulesArgs;
import com.pulumi.zenduty.inputs.SchedulesLayerArgs;
import com.pulumi.zenduty.inputs.SchedulesOverrideArgs;
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) {
var demoSchedule = new Schedules("demoSchedule", SchedulesArgs.builder()
.name("Infra Schedule")
.teamId(exampleteam.id())
.timeZone("Asia/Kolkata")
.layers(
SchedulesLayerArgs.builder()
.name("layer1")
.rotationEndTime("2021-03-01 11:36")
.rotationStartTime("2022-03-01 11:36")
.shiftLength(86400.0)
.users(
"user1",
"user2")
.restrictionType(2.0)
.restrictions(SchedulesLayerRestrictionArgs.builder()
.startTimeOfDay("08:00:00")
.startDayOfWeek(1.0)
.duration(86400.0)
.build())
.build(),
SchedulesLayerArgs.builder()
.name("layer2")
.rotationEndTime("2023-02-09T16:21:00+05:30")
.rotationStartTime("2022-02-09T12:21:11+05:30")
.shiftLength(86400.0)
.users(
"user3",
"user4")
.restrictionType(1.0)
.restrictions(SchedulesLayerRestrictionArgs.builder()
.startTimeOfDay("08:00:00")
.startDayOfWeek(7.0)
.duration(3600.0)
.build())
.build())
.overrides(SchedulesOverrideArgs.builder()
.name("example override")
.startTime("2021-03-01 11:36")
.endTime("2021-03-02 11:36")
.user("")
.build())
.build());
}
}
resources:
demoSchedule:
type: zenduty:Schedules
name: demo_schedule
properties:
name: Infra Schedule
teamId: ${exampleteam.id}
timeZone: Asia/Kolkata
layers:
- name: layer1
rotationEndTime: 2021-03-01 11:36
rotationStartTime: 2022-03-01 11:36
shiftLength: 86400
users:
- user1
- user2
restrictionType: 2
restrictions:
- startTimeOfDay: 08:00:00
startDayOfWeek: 1
duration: 86400
- name: layer2
rotationEndTime: 2023-02-09T16:21:00+05:30
rotationStartTime: 2022-02-09T12:21:11+05:30
shiftLength: 86400
users:
- user3
- user4
restrictionType: 1
restrictions:
- startTimeOfDay: 08:00:00
startDayOfWeek: 7
duration: 3600
overrides:
- name: example override
startTime: 2021-03-01 11:36
endTime: 2021-03-02 11:36
user: ""
Example coming soon!
Create Schedules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Schedules(name: string, args: SchedulesArgs, opts?: CustomResourceOptions);@overload
def Schedules(resource_name: str,
args: SchedulesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Schedules(resource_name: str,
opts: Optional[ResourceOptions] = None,
team_id: Optional[str] = None,
time_zone: Optional[str] = None,
description: Optional[str] = None,
layers: Optional[Sequence[SchedulesLayerArgs]] = None,
name: Optional[str] = None,
overrides: Optional[Sequence[SchedulesOverrideArgs]] = None,
schedules_id: Optional[str] = None,
summary: Optional[str] = None)func NewSchedules(ctx *Context, name string, args SchedulesArgs, opts ...ResourceOption) (*Schedules, error)public Schedules(string name, SchedulesArgs args, CustomResourceOptions? opts = null)
public Schedules(String name, SchedulesArgs args)
public Schedules(String name, SchedulesArgs args, CustomResourceOptions options)
type: zenduty:Schedules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "zenduty_schedules" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SchedulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SchedulesArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SchedulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchedulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchedulesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var schedulesResource = new Zenduty.Schedules("schedulesResource", new()
{
TeamId = "string",
TimeZone = "string",
Description = "string",
Layers = new[]
{
new Zenduty.Inputs.SchedulesLayerArgs
{
RotationStartTime = "string",
ShiftLength = 0.0,
Users = new[]
{
"string",
},
Name = "string",
RestrictionType = 0.0,
Restrictions = new[]
{
new Zenduty.Inputs.SchedulesLayerRestrictionArgs
{
Duration = 0.0,
StartDayOfWeek = 0.0,
StartTimeOfDay = "string",
},
},
RotationEndTime = "string",
},
},
Name = "string",
Overrides = new[]
{
new Zenduty.Inputs.SchedulesOverrideArgs
{
EndTime = "string",
StartTime = "string",
User = "string",
Name = "string",
},
},
SchedulesId = "string",
Summary = "string",
});
example, err := zenduty.NewSchedules(ctx, "schedulesResource", &zenduty.SchedulesArgs{
TeamId: pulumi.String("string"),
TimeZone: pulumi.String("string"),
Description: pulumi.String("string"),
Layers: zenduty.SchedulesLayerArray{
&zenduty.SchedulesLayerArgs{
RotationStartTime: pulumi.String("string"),
ShiftLength: pulumi.Float64(0),
Users: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
RestrictionType: pulumi.Float64(0),
Restrictions: zenduty.SchedulesLayerRestrictionArray{
&zenduty.SchedulesLayerRestrictionArgs{
Duration: pulumi.Float64(0),
StartDayOfWeek: pulumi.Float64(0),
StartTimeOfDay: pulumi.String("string"),
},
},
RotationEndTime: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Overrides: zenduty.SchedulesOverrideArray{
&zenduty.SchedulesOverrideArgs{
EndTime: pulumi.String("string"),
StartTime: pulumi.String("string"),
User: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
SchedulesId: pulumi.String("string"),
Summary: pulumi.String("string"),
})
resource "zenduty_schedules" "schedulesResource" {
lifecycle {
create_before_destroy = true
}
team_id = "string"
time_zone = "string"
description = "string"
layers {
rotation_start_time = "string"
shift_length = 0
users = ["string"]
name = "string"
restriction_type = 0
restrictions {
duration = 0
start_day_of_week = 0
start_time_of_day = "string"
}
rotation_end_time = "string"
}
name = "string"
overrides {
end_time = "string"
start_time = "string"
user = "string"
name = "string"
}
schedules_id = "string"
summary = "string"
}
var schedulesResource = new Schedules("schedulesResource", SchedulesArgs.builder()
.teamId("string")
.timeZone("string")
.description("string")
.layers(SchedulesLayerArgs.builder()
.rotationStartTime("string")
.shiftLength(0.0)
.users("string")
.name("string")
.restrictionType(0.0)
.restrictions(SchedulesLayerRestrictionArgs.builder()
.duration(0.0)
.startDayOfWeek(0.0)
.startTimeOfDay("string")
.build())
.rotationEndTime("string")
.build())
.name("string")
.overrides(SchedulesOverrideArgs.builder()
.endTime("string")
.startTime("string")
.user("string")
.name("string")
.build())
.schedulesId("string")
.summary("string")
.build());
schedules_resource = zenduty.Schedules("schedulesResource",
team_id="string",
time_zone="string",
description="string",
layers=[{
"rotation_start_time": "string",
"shift_length": float(0),
"users": ["string"],
"name": "string",
"restriction_type": float(0),
"restrictions": [{
"duration": float(0),
"start_day_of_week": float(0),
"start_time_of_day": "string",
}],
"rotation_end_time": "string",
}],
name="string",
overrides=[{
"end_time": "string",
"start_time": "string",
"user": "string",
"name": "string",
}],
schedules_id="string",
summary="string")
const schedulesResource = new zenduty.Schedules("schedulesResource", {
teamId: "string",
timeZone: "string",
description: "string",
layers: [{
rotationStartTime: "string",
shiftLength: 0,
users: ["string"],
name: "string",
restrictionType: 0,
restrictions: [{
duration: 0,
startDayOfWeek: 0,
startTimeOfDay: "string",
}],
rotationEndTime: "string",
}],
name: "string",
overrides: [{
endTime: "string",
startTime: "string",
user: "string",
name: "string",
}],
schedulesId: "string",
summary: "string",
});
type: zenduty:Schedules
properties:
description: string
layers:
- name: string
restrictionType: 0
restrictions:
- duration: 0
startDayOfWeek: 0
startTimeOfDay: string
rotationEndTime: string
rotationStartTime: string
shiftLength: 0
users:
- string
name: string
overrides:
- endTime: string
name: string
startTime: string
user: string
schedulesId: string
summary: string
teamId: string
timeZone: string
Schedules Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Schedules resource accepts the following input properties:
- Team
Id string - The unique_id of the team to create the escalation policy in.
- Time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- Description string
- The description of the schedule.
- Layers
List<Schedules
Layer> - The layers of the schedule. (see below for nested schema)
- Name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- Overrides
List<Schedules
Override> - The overrides of the schedule. (see below for nested schema)
- Schedules
Id string - The ID of the Schedule.
- Summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- Team
Id string - The unique_id of the team to create the escalation policy in.
- Time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- Description string
- The description of the schedule.
- Layers
[]Schedules
Layer Args - The layers of the schedule. (see below for nested schema)
- Name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- Overrides
[]Schedules
Override Args - The overrides of the schedule. (see below for nested schema)
- Schedules
Id string - The ID of the Schedule.
- Summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team_
id string - The unique_id of the team to create the escalation policy in.
- time_
zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- description string
- The description of the schedule.
- layers list(object)
- The layers of the schedule. (see below for nested schema)
- name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides list(object)
- The overrides of the schedule. (see below for nested schema)
- schedules_
id string - The ID of the Schedule.
- summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id String - The unique_id of the team to create the escalation policy in.
- time
Zone String - The time_zone of the layer. ex: "Asia/Kolkata"
- description String
- The description of the schedule.
- layers
List<Schedules
Layer> - The layers of the schedule. (see below for nested schema)
- name String
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides
List<Schedules
Override> - The overrides of the schedule. (see below for nested schema)
- schedules
Id String - The ID of the Schedule.
- summary String
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id string - The unique_id of the team to create the escalation policy in.
- time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- description string
- The description of the schedule.
- layers
Schedules
Layer[] - The layers of the schedule. (see below for nested schema)
- name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides
Schedules
Override[] - The overrides of the schedule. (see below for nested schema)
- schedules
Id string - The ID of the Schedule.
- summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team_
id str - The unique_id of the team to create the escalation policy in.
- time_
zone str - The time_zone of the layer. ex: "Asia/Kolkata"
- description str
- The description of the schedule.
- layers
Sequence[Schedules
Layer Args] - The layers of the schedule. (see below for nested schema)
- name str
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides
Sequence[Schedules
Override Args] - The overrides of the schedule. (see below for nested schema)
- schedules_
id str - The ID of the Schedule.
- summary str
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
- team
Id String - The unique_id of the team to create the escalation policy in.
- time
Zone String - The time_zone of the layer. ex: "Asia/Kolkata"
- description String
- The description of the schedule.
- layers List<Property Map>
- The layers of the schedule. (see below for nested schema)
- name String
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides List<Property Map>
- The overrides of the schedule. (see below for nested schema)
- schedules
Id String - The ID of the Schedule.
- summary String
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com
Outputs
All input properties are implicitly available as output properties. Additionally, the Schedules resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Schedules Resource
Get an existing Schedules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SchedulesState, opts?: CustomResourceOptions): Schedules@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
layers: Optional[Sequence[SchedulesLayerArgs]] = None,
name: Optional[str] = None,
overrides: Optional[Sequence[SchedulesOverrideArgs]] = None,
schedules_id: Optional[str] = None,
summary: Optional[str] = None,
team_id: Optional[str] = None,
time_zone: Optional[str] = None) -> Schedulesfunc GetSchedules(ctx *Context, name string, id IDInput, state *SchedulesState, opts ...ResourceOption) (*Schedules, error)public static Schedules Get(string name, Input<string> id, SchedulesState? state, CustomResourceOptions? opts = null)public static Schedules get(String name, Output<String> id, SchedulesState state, CustomResourceOptions options)resources: _: type: zenduty:Schedules get: id: ${id}import {
to = zenduty_schedules.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- The description of the schedule.
- Layers
List<Schedules
Layer> - The layers of the schedule. (see below for nested schema)
- Name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- Overrides
List<Schedules
Override> - The overrides of the schedule. (see below for nested schema)
- Schedules
Id string - The ID of the Schedule.
- Summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com- Team
Id string - The unique_id of the team to create the escalation policy in.
- Time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- Description string
- The description of the schedule.
- Layers
[]Schedules
Layer Args - The layers of the schedule. (see below for nested schema)
- Name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- Overrides
[]Schedules
Override Args - The overrides of the schedule. (see below for nested schema)
- Schedules
Id string - The ID of the Schedule.
- Summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com- Team
Id string - The unique_id of the team to create the escalation policy in.
- Time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- description string
- The description of the schedule.
- layers list(object)
- The layers of the schedule. (see below for nested schema)
- name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides list(object)
- The overrides of the schedule. (see below for nested schema)
- schedules_
id string - The ID of the Schedule.
- summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com- team_
id string - The unique_id of the team to create the escalation policy in.
- time_
zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- description String
- The description of the schedule.
- layers
List<Schedules
Layer> - The layers of the schedule. (see below for nested schema)
- name String
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides
List<Schedules
Override> - The overrides of the schedule. (see below for nested schema)
- schedules
Id String - The ID of the Schedule.
- summary String
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com- team
Id String - The unique_id of the team to create the escalation policy in.
- time
Zone String - The time_zone of the layer. ex: "Asia/Kolkata"
- description string
- The description of the schedule.
- layers
Schedules
Layer[] - The layers of the schedule. (see below for nested schema)
- name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides
Schedules
Override[] - The overrides of the schedule. (see below for nested schema)
- schedules
Id string - The ID of the Schedule.
- summary string
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com- team
Id string - The unique_id of the team to create the escalation policy in.
- time
Zone string - The time_zone of the layer. ex: "Asia/Kolkata"
- description str
- The description of the schedule.
- layers
Sequence[Schedules
Layer Args] - The layers of the schedule. (see below for nested schema)
- name str
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides
Sequence[Schedules
Override Args] - The overrides of the schedule. (see below for nested schema)
- schedules_
id str - The ID of the Schedule.
- summary str
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com- team_
id str - The unique_id of the team to create the escalation policy in.
- time_
zone str - The time_zone of the layer. ex: "Asia/Kolkata"
- description String
- The description of the schedule.
- layers List<Property Map>
- The layers of the schedule. (see below for nested schema)
- name String
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- overrides List<Property Map>
- The overrides of the schedule. (see below for nested schema)
- schedules
Id String - The ID of the Schedule.
- summary String
The summary of the schedule.
import * as pulumi from "@pulumi/pulumi"; import * as zenduty from "@pulumi/zenduty";const user1 = zenduty.getUser({ email: "demouser@gmail.com", });
import pulumi import pulumi_zenduty as zenduty user1 = zenduty.get_user(email="demouser@gmail.com")using System.Collections.Generic; using System.Linq; using Pulumi; using Zenduty = Pulumi.Zenduty; return await Deployment.RunAsync(() => { var user1 = Zenduty.GetUser.Invoke(new() { Email = "demouser@gmail.com", }); });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.LookupUser(ctx, &zenduty.LookupUserArgs{ Email: "demouser@gmail.com", }, nil) if err != nil { return err } return nil }) }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.GetUserArgs; 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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder() .email("demouser@gmail.com") .build()); } }variables: user1: fn::invoke: function: zenduty:getUser arguments: email: demouser@gmail.com- team
Id String - The unique_id of the team to create the escalation policy in.
- time
Zone String - The time_zone of the layer. ex: "Asia/Kolkata"
Supporting Types
SchedulesLayer, SchedulesLayerArgs
- Rotation
Start stringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- Shift
Length double - The shift_length of the layer in seconds.
- Users List<string>
- Array of username of users. May be empty for a layer with no users.
- Name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- Restriction
Type double - The restriction_type of the layer. ex:
1for day,2for week ,0for default - Restrictions
List<Schedules
Layer Restriction> The restrictions of the layer. (see below for nested schema)
- Rotation
End stringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- Rotation
Start stringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- Shift
Length float64 - The shift_length of the layer in seconds.
- Users []string
- Array of username of users. May be empty for a layer with no users.
- Name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- Restriction
Type float64 - The restriction_type of the layer. ex:
1for day,2for week ,0for default - Restrictions
[]Schedules
Layer Restriction The restrictions of the layer. (see below for nested schema)
- Rotation
End stringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- rotation_
start_ stringtime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift_
length number - The shift_length of the layer in seconds.
- users list(string)
- Array of username of users. May be empty for a layer with no users.
- name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- restriction_
type number - The restriction_type of the layer. ex:
1for day,2for week ,0for default - restrictions list(object)
The restrictions of the layer. (see below for nested schema)
- rotation_
end_ stringtime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- rotation
Start StringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift
Length Double - The shift_length of the layer in seconds.
- users List<String>
- Array of username of users. May be empty for a layer with no users.
- name String
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- restriction
Type Double - The restriction_type of the layer. ex:
1for day,2for week ,0for default - restrictions
List<Schedules
Layer Restriction> The restrictions of the layer. (see below for nested schema)
- rotation
End StringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- rotation
Start stringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift
Length number - The shift_length of the layer in seconds.
- users string[]
- Array of username of users. May be empty for a layer with no users.
- name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- restriction
Type number - The restriction_type of the layer. ex:
1for day,2for week ,0for default - restrictions
Schedules
Layer Restriction[] The restrictions of the layer. (see below for nested schema)
- rotation
End stringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- rotation_
start_ strtime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift_
length float - The shift_length of the layer in seconds.
- users Sequence[str]
- Array of username of users. May be empty for a layer with no users.
- name str
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- restriction_
type float - The restriction_type of the layer. ex:
1for day,2for week ,0for default - restrictions
Sequence[Schedules
Layer Restriction] The restrictions of the layer. (see below for nested schema)
- rotation_
end_ strtime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
- rotation
Start StringTime - The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
- shift
Length Number - The shift_length of the layer in seconds.
- users List<String>
- Array of username of users. May be empty for a layer with no users.
- name String
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- restriction
Type Number - The restriction_type of the layer. ex:
1for day,2for week ,0for default - restrictions List<Property Map>
The restrictions of the layer. (see below for nested schema)
- rotation
End StringTime - The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
SchedulesLayerRestriction, SchedulesLayerRestrictionArgs
- Duration double
- The duration of the restriction in seconds. Must be less than 86400 (24 hours) for daily restrictions and less than 604800 (7 days) for weekly restrictions; this is checked at plan time.
- Start
Day doubleOf Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- Start
Time stringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format. Unpadded values such as
9:5:0are accepted and normalized to09:05:00.
- Duration float64
- The duration of the restriction in seconds. Must be less than 86400 (24 hours) for daily restrictions and less than 604800 (7 days) for weekly restrictions; this is checked at plan time.
- Start
Day float64Of Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- Start
Time stringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format. Unpadded values such as
9:5:0are accepted and normalized to09:05:00.
- duration number
- The duration of the restriction in seconds. Must be less than 86400 (24 hours) for daily restrictions and less than 604800 (7 days) for weekly restrictions; this is checked at plan time.
- start_
day_ numberof_ week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start_
time_ stringof_ day - The start_time_of_day of the restriction. time in HH:MM:SS format. Unpadded values such as
9:5:0are accepted and normalized to09:05:00.
- duration Double
- The duration of the restriction in seconds. Must be less than 86400 (24 hours) for daily restrictions and less than 604800 (7 days) for weekly restrictions; this is checked at plan time.
- start
Day DoubleOf Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start
Time StringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format. Unpadded values such as
9:5:0are accepted and normalized to09:05:00.
- duration number
- The duration of the restriction in seconds. Must be less than 86400 (24 hours) for daily restrictions and less than 604800 (7 days) for weekly restrictions; this is checked at plan time.
- start
Day numberOf Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start
Time stringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format. Unpadded values such as
9:5:0are accepted and normalized to09:05:00.
- duration float
- The duration of the restriction in seconds. Must be less than 86400 (24 hours) for daily restrictions and less than 604800 (7 days) for weekly restrictions; this is checked at plan time.
- start_
day_ floatof_ week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start_
time_ strof_ day - The start_time_of_day of the restriction. time in HH:MM:SS format. Unpadded values such as
9:5:0are accepted and normalized to09:05:00.
- duration Number
- The duration of the restriction in seconds. Must be less than 86400 (24 hours) for daily restrictions and less than 604800 (7 days) for weekly restrictions; this is checked at plan time.
- start
Day NumberOf Week - The start_day_of_week of the restriction. for daily restriction, it is 7. for weekly restriction, it is the day of the week.ie: 1 for monday, 2 for tuesday, 3 for wednesday, 4 for thursday, 5 for friday, 6 for saturday, 7 for sunday.
- start
Time StringOf Day - The start_time_of_day of the restriction. time in HH:MM:SS format. Unpadded values such as
9:5:0are accepted and normalized to09:05:00.
SchedulesOverride, SchedulesOverrideArgs
- end_
time string - The end_time of the override. time in YYYY-MM-DD HH:MM.
- start_
time string - The start_time of the override. time in YYYY-MM-DD HH:MM.
- user string
- The user of the override.
- name string
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
- end_
time str - The end_time of the override. time in YYYY-MM-DD HH:MM.
- start_
time str - The start_time of the override. time in YYYY-MM-DD HH:MM.
- user str
- The user of the override.
- name str
- The name of the override. Zenduty allows unnamed overrides, so this may be omitted or empty.
Import
Team Schedules can be imported using the team_id(ie. unique_id of the team) and schedule_id(ie. unique_id of the schedule), e.g.
hcl
resource “zenduty_schedules” “schedule1” {
}
$ pulumi import zenduty:index/schedules:Schedules schedule1 team_id/schedule_id`
$ terraform state show zenduty_schedules.schedule1
* copy the output data and paste inside zenduty_schedules.schedule1 resource block and remove the id attribute
$ pulumi preview to verify the import
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
published on Friday, Aug 14, 2026 by zenduty