1. Packages
  2. Zenduty Provider
  3. API Docs
  4. Schedules
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty

zenduty.Schedules

Explore with Pulumi AI

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", {});
Copy
import pulumi
import pulumi_zenduty as zenduty

exampleteam = zenduty.Teams("exampleteam")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.NewTeams(ctx, "exampleteam", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var exampleteam = new Zenduty.Teams("exampleteam");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Teams;
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");

    }
}
Copy
resources:
  exampleteam:
    type: zenduty:Teams
Copy
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const exampleschedule = new zenduty.Schedules("exampleschedule", {
    teamId: zenduty_teams.exampleteam.id,
    timeZone: "",
});
Copy
import pulumi
import pulumi_zenduty as zenduty

exampleschedule = zenduty.Schedules("exampleschedule",
    team_id=zenduty_teams["exampleteam"]["id"],
    time_zone="")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/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{
			TeamId:   pulumi.Any(zenduty_teams.Exampleteam.Id),
			TimeZone: pulumi.String(""),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var exampleschedule = new Zenduty.Schedules("exampleschedule", new()
    {
        TeamId = zenduty_teams.Exampleteam.Id,
        TimeZone = "",
    });

});
Copy
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()
            .teamId(zenduty_teams.exampleteam().id())
            .timeZone("")
            .build());

    }
}
Copy
resources:
  exampleschedule:
    type: zenduty:Schedules
    properties:
      teamId: ${zenduty_teams.exampleteam.id}
      timeZone: ""
Copy

Layers and Daily Restrictions

import * as pulumi from "@pulumi/pulumi";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
Copy
{}
Copy

Layers and Weekly Restrictions

import * as pulumi from "@pulumi/pulumi";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
Copy
{}
Copy

Overrides

import * as pulumi from "@pulumi/pulumi";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
Copy
{}
Copy

Schedule Example

import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const demoSchedule = new zenduty.Schedules("demoSchedule", {
    teamId: zenduty_teams.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: "",
    }],
});
Copy
import pulumi
import pulumi_zenduty as zenduty

demo_schedule = zenduty.Schedules("demoSchedule",
    team_id=zenduty_teams["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": "",
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.NewSchedules(ctx, "demoSchedule", &zenduty.SchedulesArgs{
			TeamId:   pulumi.Any(zenduty_teams.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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var demoSchedule = new Zenduty.Schedules("demoSchedule", new()
    {
        TeamId = zenduty_teams.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 = "",
            },
        },
    });

});
Copy
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()
            .teamId(zenduty_teams.exampleteam().id())
            .timeZone("Asia/Kolkata")
            .layers(            
                SchedulesLayerArgs.builder()
                    .name("layer1")
                    .rotationEndTime("2021-03-01 11:36")
                    .rotationStartTime("2022-03-01 11:36")
                    .shiftLength(86400)
                    .users(                    
                        "user1",
                        "user2")
                    .restrictionType(2)
                    .restrictions(SchedulesLayerRestrictionArgs.builder()
                        .startTimeOfDay("08:00:00")
                        .startDayOfWeek(1)
                        .duration(86400)
                        .build())
                    .build(),
                SchedulesLayerArgs.builder()
                    .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(SchedulesLayerRestrictionArgs.builder()
                        .startTimeOfDay("08:00:00")
                        .startDayOfWeek(7)
                        .duration(3600)
                        .build())
                    .build())
            .overrides(SchedulesOverrideArgs.builder()
                .name("example override")
                .startTime("2021-03-01 11:36")
                .endTime("2021-03-02 11:36")
                .user("")
                .build())
            .build());

    }
}
Copy
resources:
  demoSchedule:
    type: zenduty:Schedules
    properties:
      teamId: ${zenduty_teams.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: ""
Copy

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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SchedulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SchedulesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SchedulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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
        {
            Name = "string",
            RotationStartTime = "string",
            ShiftLength = 0,
            Users = new[]
            {
                "string",
            },
            RestrictionType = 0,
            Restrictions = new[]
            {
                new Zenduty.Inputs.SchedulesLayerRestrictionArgs
                {
                    Duration = 0,
                    StartDayOfWeek = 0,
                    StartTimeOfDay = "string",
                },
            },
            RotationEndTime = "string",
        },
    },
    Name = "string",
    Overrides = new[]
    {
        new Zenduty.Inputs.SchedulesOverrideArgs
        {
            EndTime = "string",
            Name = "string",
            StartTime = "string",
            User = "string",
        },
    },
    SchedulesId = "string",
    Summary = "string",
});
Copy
example, err := zenduty.NewSchedules(ctx, "schedulesResource", &zenduty.SchedulesArgs{
TeamId: pulumi.String("string"),
TimeZone: pulumi.String("string"),
Description: pulumi.String("string"),
Layers: .SchedulesLayerArray{
&.SchedulesLayerArgs{
Name: pulumi.String("string"),
RotationStartTime: pulumi.String("string"),
ShiftLength: pulumi.Float64(0),
Users: pulumi.StringArray{
pulumi.String("string"),
},
RestrictionType: pulumi.Float64(0),
Restrictions: .SchedulesLayerRestrictionArray{
&.SchedulesLayerRestrictionArgs{
Duration: pulumi.Float64(0),
StartDayOfWeek: pulumi.Float64(0),
StartTimeOfDay: pulumi.String("string"),
},
},
RotationEndTime: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Overrides: .SchedulesOverrideArray{
&.SchedulesOverrideArgs{
EndTime: pulumi.String("string"),
Name: pulumi.String("string"),
StartTime: pulumi.String("string"),
User: pulumi.String("string"),
},
},
SchedulesId: pulumi.String("string"),
Summary: pulumi.String("string"),
})
Copy
var schedulesResource = new Schedules("schedulesResource", SchedulesArgs.builder()
    .teamId("string")
    .timeZone("string")
    .description("string")
    .layers(SchedulesLayerArgs.builder()
        .name("string")
        .rotationStartTime("string")
        .shiftLength(0)
        .users("string")
        .restrictionType(0)
        .restrictions(SchedulesLayerRestrictionArgs.builder()
            .duration(0)
            .startDayOfWeek(0)
            .startTimeOfDay("string")
            .build())
        .rotationEndTime("string")
        .build())
    .name("string")
    .overrides(SchedulesOverrideArgs.builder()
        .endTime("string")
        .name("string")
        .startTime("string")
        .user("string")
        .build())
    .schedulesId("string")
    .summary("string")
    .build());
Copy
schedules_resource = zenduty.Schedules("schedulesResource",
    team_id="string",
    time_zone="string",
    description="string",
    layers=[{
        "name": "string",
        "rotation_start_time": "string",
        "shift_length": 0,
        "users": ["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",
        "name": "string",
        "start_time": "string",
        "user": "string",
    }],
    schedules_id="string",
    summary="string")
Copy
const schedulesResource = new zenduty.Schedules("schedulesResource", {
    teamId: "string",
    timeZone: "string",
    description: "string",
    layers: [{
        name: "string",
        rotationStartTime: "string",
        shiftLength: 0,
        users: ["string"],
        restrictionType: 0,
        restrictions: [{
            duration: 0,
            startDayOfWeek: 0,
            startTimeOfDay: "string",
        }],
        rotationEndTime: "string",
    }],
    name: "string",
    overrides: [{
        endTime: "string",
        name: "string",
        startTime: "string",
        user: "string",
    }],
    schedulesId: "string",
    summary: "string",
});
Copy
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
Copy

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:

TeamId This property is required. string
The unique_id of the team to create the escalation policy in.
TimeZone This property is required. string
The time_zone of the layer. ex: "Asia/Kolkata"
Description string
The description of the schedule.
Layers List<SchedulesLayer>
The layers of the schedule. (see below for nested schema)
Name string
The name of the override.
Overrides List<SchedulesOverride>
The overrides of the schedule. (see below for nested schema)
SchedulesId 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/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
TeamId This property is required. string
The unique_id of the team to create the escalation policy in.
TimeZone This property is required. string
The time_zone of the layer. ex: "Asia/Kolkata"
Description string
The description of the schedule.
Layers []SchedulesLayerArgs
The layers of the schedule. (see below for nested schema)
Name string
The name of the override.
Overrides []SchedulesOverrideArgs
The overrides of the schedule. (see below for nested schema)
SchedulesId 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/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
teamId This property is required. String
The unique_id of the team to create the escalation policy in.
timeZone This property is required. String
The time_zone of the layer. ex: "Asia/Kolkata"
description String
The description of the schedule.
layers List<SchedulesLayer>
The layers of the schedule. (see below for nested schema)
name String
The name of the override.
overrides List<SchedulesOverride>
The overrides of the schedule. (see below for nested schema)
schedulesId 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/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
teamId This property is required. string
The unique_id of the team to create the escalation policy in.
timeZone This property is required. string
The time_zone of the layer. ex: "Asia/Kolkata"
description string
The description of the schedule.
layers SchedulesLayer[]
The layers of the schedule. (see below for nested schema)
name string
The name of the override.
overrides SchedulesOverride[]
The overrides of the schedule. (see below for nested schema)
schedulesId 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/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 This property is required. str
The unique_id of the team to create the escalation policy in.
time_zone This property is required. str
The time_zone of the layer. ex: "Asia/Kolkata"
description str
The description of the schedule.
layers Sequence[SchedulesLayerArgs]
The layers of the schedule. (see below for nested schema)
name str
The name of the override.
overrides Sequence[SchedulesOverrideArgs]
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/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
teamId This property is required. String
The unique_id of the team to create the escalation policy in.
timeZone This property is required. 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.
overrides List<Property Map>
The overrides of the schedule. (see below for nested schema)
schedulesId 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/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 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) -> Schedules
func 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}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Description string
The description of the schedule.
Layers List<SchedulesLayer>
The layers of the schedule. (see below for nested schema)
Name string
The name of the override.
Overrides List<SchedulesOverride>
The overrides of the schedule. (see below for nested schema)
SchedulesId 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/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
TeamId string
The unique_id of the team to create the escalation policy in.
TimeZone string
The time_zone of the layer. ex: "Asia/Kolkata"
Description string
The description of the schedule.
Layers []SchedulesLayerArgs
The layers of the schedule. (see below for nested schema)
Name string
The name of the override.
Overrides []SchedulesOverrideArgs
The overrides of the schedule. (see below for nested schema)
SchedulesId 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/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
TeamId string
The unique_id of the team to create the escalation policy in.
TimeZone string
The time_zone of the layer. ex: "Asia/Kolkata"
description String
The description of the schedule.
layers List<SchedulesLayer>
The layers of the schedule. (see below for nested schema)
name String
The name of the override.
overrides List<SchedulesOverride>
The overrides of the schedule. (see below for nested schema)
schedulesId 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/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
teamId String
The unique_id of the team to create the escalation policy in.
timeZone String
The time_zone of the layer. ex: "Asia/Kolkata"
description string
The description of the schedule.
layers SchedulesLayer[]
The layers of the schedule. (see below for nested schema)
name string
The name of the override.
overrides SchedulesOverride[]
The overrides of the schedule. (see below for nested schema)
schedulesId 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/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
teamId string
The unique_id of the team to create the escalation policy in.
timeZone string
The time_zone of the layer. ex: "Asia/Kolkata"
description str
The description of the schedule.
layers Sequence[SchedulesLayerArgs]
The layers of the schedule. (see below for nested schema)
name str
The name of the override.
overrides Sequence[SchedulesOverrideArgs]
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/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.
overrides List<Property Map>
The overrides of the schedule. (see below for nested schema)
schedulesId 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/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
teamId String
The unique_id of the team to create the escalation policy in.
timeZone String
The time_zone of the layer. ex: "Asia/Kolkata"

Supporting Types

SchedulesLayer
, SchedulesLayerArgs

Name This property is required. string
The name of the override.
RotationStartTime This property is required. string
The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
ShiftLength This property is required. double
The shift_length of the layer in seconds.
Users This property is required. List<string>
Array of username of users
RestrictionType double
The restriction_type of the layer. ex: 1 for day, 2 for week ,0 for default
Restrictions List<SchedulesLayerRestriction>

The restrictions of the layer. (see below for nested schema)

import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => { });

package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
RotationEndTime string
The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
Name This property is required. string
The name of the override.
RotationStartTime This property is required. string
The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
ShiftLength This property is required. float64
The shift_length of the layer in seconds.
Users This property is required. []string
Array of username of users
RestrictionType float64
The restriction_type of the layer. ex: 1 for day, 2 for week ,0 for default
Restrictions []SchedulesLayerRestriction

The restrictions of the layer. (see below for nested schema)

import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => { });

package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
RotationEndTime string
The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
name This property is required. String
The name of the override.
rotationStartTime This property is required. String
The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
shiftLength This property is required. Double
The shift_length of the layer in seconds.
users This property is required. List<String>
Array of username of users
restrictionType Double
The restriction_type of the layer. ex: 1 for day, 2 for week ,0 for default
restrictions List<SchedulesLayerRestriction>

The restrictions of the layer. (see below for nested schema)

import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => { });

package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
rotationEndTime String
The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
name This property is required. string
The name of the override.
rotationStartTime This property is required. string
The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
shiftLength This property is required. number
The shift_length of the layer in seconds.
users This property is required. string[]
Array of username of users
restrictionType number
The restriction_type of the layer. ex: 1 for day, 2 for week ,0 for default
restrictions SchedulesLayerRestriction[]

The restrictions of the layer. (see below for nested schema)

import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => { });

package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
rotationEndTime string
The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
name This property is required. str
The name of the override.
rotation_start_time This property is required. str
The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
shift_length This property is required. float
The shift_length of the layer in seconds.
users This property is required. Sequence[str]
Array of username of users
restriction_type float
The restriction_type of the layer. ex: 1 for day, 2 for week ,0 for default
restrictions Sequence[SchedulesLayerRestriction]

The restrictions of the layer. (see below for nested schema)

import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => { });

package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
rotation_end_time str
The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.
name This property is required. String
The name of the override.
rotationStartTime This property is required. String
The rotation_start_time of the layer in format YYYY-MM-DD HH:MM.
shiftLength This property is required. Number
The shift_length of the layer in seconds.
users This property is required. List<String>
Array of username of users
restrictionType Number
The restriction_type of the layer. ex: 1 for day, 2 for week ,0 for default
restrictions List<Property Map>

The restrictions of the layer. (see below for nested schema)

import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => { });

package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
rotationEndTime String
The rotation_end_time of the layer in format YYYY-MM-DD HH:MM.

SchedulesLayerRestriction
, SchedulesLayerRestrictionArgs

Duration This property is required. double
The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
StartDayOfWeek This property is required. double
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.
StartTimeOfDay This property is required. string
The start_time_of_day of the restriction. time in HH:MM:SS format.
Duration This property is required. float64
The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
StartDayOfWeek This property is required. float64
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.
StartTimeOfDay This property is required. string
The start_time_of_day of the restriction. time in HH:MM:SS format.
duration This property is required. Double
The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
startDayOfWeek This property is required. Double
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.
startTimeOfDay This property is required. String
The start_time_of_day of the restriction. time in HH:MM:SS format.
duration This property is required. number
The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
startDayOfWeek This property is required. number
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.
startTimeOfDay This property is required. string
The start_time_of_day of the restriction. time in HH:MM:SS format.
duration This property is required. float
The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
start_day_of_week This property is required. float
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_of_day This property is required. str
The start_time_of_day of the restriction. time in HH:MM:SS format.
duration This property is required. Number
The duration of the restriction in seconds.for daily restriction, max value can be 86400(246060). for weekly restriction, it is 604800(72460*60).
startDayOfWeek This property is required. Number
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.
startTimeOfDay This property is required. String
The start_time_of_day of the restriction. time in HH:MM:SS format.

SchedulesOverride
, SchedulesOverrideArgs

EndTime This property is required. string
The end_time of the override. time in YYYY-MM-DD HH:MM.
Name This property is required. string
The name of the override.
StartTime This property is required. string
The start_time of the override. time in YYYY-MM-DD HH:MM.
User This property is required. string
The user of the override.
EndTime This property is required. string
The end_time of the override. time in YYYY-MM-DD HH:MM.
Name This property is required. string
The name of the override.
StartTime This property is required. string
The start_time of the override. time in YYYY-MM-DD HH:MM.
User This property is required. string
The user of the override.
endTime This property is required. String
The end_time of the override. time in YYYY-MM-DD HH:MM.
name This property is required. String
The name of the override.
startTime This property is required. String
The start_time of the override. time in YYYY-MM-DD HH:MM.
user This property is required. String
The user of the override.
endTime This property is required. string
The end_time of the override. time in YYYY-MM-DD HH:MM.
name This property is required. string
The name of the override.
startTime This property is required. string
The start_time of the override. time in YYYY-MM-DD HH:MM.
user This property is required. string
The user of the override.
end_time This property is required. str
The end_time of the override. time in YYYY-MM-DD HH:MM.
name This property is required. str
The name of the override.
start_time This property is required. str
The start_time of the override. time in YYYY-MM-DD HH:MM.
user This property is required. str
The user of the override.
endTime This property is required. String
The end_time of the override. time in YYYY-MM-DD HH:MM.
name This property is required. String
The name of the override.
startTime This property is required. String
The start_time of the override. time in YYYY-MM-DD HH:MM.
user This property is required. String
The user of the override.

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`
Copy

$ 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 zenduty Terraform Provider.