1. Packages
  2. Opsgenie Provider
  3. API Docs
  4. ScheduleRotation
Opsgenie v1.3.14 published on Wednesday, Feb 12, 2025 by Pulumi

opsgenie.ScheduleRotation

Explore with Pulumi AI

Manages a Schedule Rotation within Opsgenie.

Example Usage

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

const test = new opsgenie.ScheduleRotation("test", {
    scheduleId: testOpsgenieSchedule.id,
    name: "test",
    startDate: "2019-06-18T17:00:00Z",
    endDate: "2019-06-20T17:30:00Z",
    type: "hourly",
    length: 6,
    participants: [{
        type: "user",
        id: testOpsgenieUser.id,
    }],
    timeRestrictions: [{
        type: "time-of-day",
        restriction: [{
            startHour: 1,
            startMin: 1,
            endHour: 10,
            endMin: 1,
        }],
    }],
});
Copy
import pulumi
import pulumi_opsgenie as opsgenie

test = opsgenie.ScheduleRotation("test",
    schedule_id=test_opsgenie_schedule["id"],
    name="test",
    start_date="2019-06-18T17:00:00Z",
    end_date="2019-06-20T17:30:00Z",
    type="hourly",
    length=6,
    participants=[{
        "type": "user",
        "id": test_opsgenie_user["id"],
    }],
    time_restrictions=[{
        "type": "time-of-day",
        "restriction": [{
            "start_hour": 1,
            "start_min": 1,
            "end_hour": 10,
            "end_min": 1,
        }],
    }])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opsgenie.NewScheduleRotation(ctx, "test", &opsgenie.ScheduleRotationArgs{
			ScheduleId: pulumi.Any(testOpsgenieSchedule.Id),
			Name:       pulumi.String("test"),
			StartDate:  pulumi.String("2019-06-18T17:00:00Z"),
			EndDate:    pulumi.String("2019-06-20T17:30:00Z"),
			Type:       pulumi.String("hourly"),
			Length:     pulumi.Int(6),
			Participants: opsgenie.ScheduleRotationParticipantArray{
				&opsgenie.ScheduleRotationParticipantArgs{
					Type: pulumi.String("user"),
					Id:   pulumi.Any(testOpsgenieUser.Id),
				},
			},
			TimeRestrictions: opsgenie.ScheduleRotationTimeRestrictionArray{
				&opsgenie.ScheduleRotationTimeRestrictionArgs{
					Type: pulumi.String("time-of-day"),
					Restriction: opsgenie.ScheduleRotationTimeRestrictionRestrictionArray{
						&opsgenie.ScheduleRotationTimeRestrictionRestrictionArgs{
							StartHour: pulumi.Int(1),
							StartMin:  pulumi.Int(1),
							EndHour:   pulumi.Int(10),
							EndMin:    pulumi.Int(1),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opsgenie = Pulumi.Opsgenie;

return await Deployment.RunAsync(() => 
{
    var test = new Opsgenie.ScheduleRotation("test", new()
    {
        ScheduleId = testOpsgenieSchedule.Id,
        Name = "test",
        StartDate = "2019-06-18T17:00:00Z",
        EndDate = "2019-06-20T17:30:00Z",
        Type = "hourly",
        Length = 6,
        Participants = new[]
        {
            new Opsgenie.Inputs.ScheduleRotationParticipantArgs
            {
                Type = "user",
                Id = testOpsgenieUser.Id,
            },
        },
        TimeRestrictions = new[]
        {
            new Opsgenie.Inputs.ScheduleRotationTimeRestrictionArgs
            {
                Type = "time-of-day",
                Restriction = new[]
                {
                    new Opsgenie.Inputs.ScheduleRotationTimeRestrictionRestrictionArgs
                    {
                        StartHour = 1,
                        StartMin = 1,
                        EndHour = 10,
                        EndMin = 1,
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opsgenie.ScheduleRotation;
import com.pulumi.opsgenie.ScheduleRotationArgs;
import com.pulumi.opsgenie.inputs.ScheduleRotationParticipantArgs;
import com.pulumi.opsgenie.inputs.ScheduleRotationTimeRestrictionArgs;
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 test = new ScheduleRotation("test", ScheduleRotationArgs.builder()
            .scheduleId(testOpsgenieSchedule.id())
            .name("test")
            .startDate("2019-06-18T17:00:00Z")
            .endDate("2019-06-20T17:30:00Z")
            .type("hourly")
            .length(6)
            .participants(ScheduleRotationParticipantArgs.builder()
                .type("user")
                .id(testOpsgenieUser.id())
                .build())
            .timeRestrictions(ScheduleRotationTimeRestrictionArgs.builder()
                .type("time-of-day")
                .restriction(ScheduleRotationTimeRestrictionRestrictionArgs.builder()
                    .startHour(1)
                    .startMin(1)
                    .endHour(10)
                    .endMin(1)
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  test:
    type: opsgenie:ScheduleRotation
    properties:
      scheduleId: ${testOpsgenieSchedule.id}
      name: test
      startDate: 2019-06-18T17:00:00Z
      endDate: 2019-06-20T17:30:00Z
      type: hourly
      length: 6
      participants:
        - type: user
          id: ${testOpsgenieUser.id}
      timeRestrictions:
        - type: time-of-day
          restriction:
            - startHour: 1
              startMin: 1
              endHour: 10
              endMin: 1
Copy

Create ScheduleRotation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ScheduleRotation(name: string, args: ScheduleRotationArgs, opts?: CustomResourceOptions);
@overload
def ScheduleRotation(resource_name: str,
                     args: ScheduleRotationArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def ScheduleRotation(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     participants: Optional[Sequence[ScheduleRotationParticipantArgs]] = None,
                     schedule_id: Optional[str] = None,
                     start_date: Optional[str] = None,
                     type: Optional[str] = None,
                     end_date: Optional[str] = None,
                     length: Optional[int] = None,
                     name: Optional[str] = None,
                     time_restrictions: Optional[Sequence[ScheduleRotationTimeRestrictionArgs]] = None)
func NewScheduleRotation(ctx *Context, name string, args ScheduleRotationArgs, opts ...ResourceOption) (*ScheduleRotation, error)
public ScheduleRotation(string name, ScheduleRotationArgs args, CustomResourceOptions? opts = null)
public ScheduleRotation(String name, ScheduleRotationArgs args)
public ScheduleRotation(String name, ScheduleRotationArgs args, CustomResourceOptions options)
type: opsgenie:ScheduleRotation
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. ScheduleRotationArgs
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. ScheduleRotationArgs
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. ScheduleRotationArgs
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. ScheduleRotationArgs
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. ScheduleRotationArgs
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 scheduleRotationResource = new Opsgenie.ScheduleRotation("scheduleRotationResource", new()
{
    Participants = new[]
    {
        new Opsgenie.Inputs.ScheduleRotationParticipantArgs
        {
            Type = "string",
            Id = "string",
        },
    },
    ScheduleId = "string",
    StartDate = "string",
    Type = "string",
    EndDate = "string",
    Length = 0,
    Name = "string",
    TimeRestrictions = new[]
    {
        new Opsgenie.Inputs.ScheduleRotationTimeRestrictionArgs
        {
            Type = "string",
            Restriction = new[]
            {
                new Opsgenie.Inputs.ScheduleRotationTimeRestrictionRestrictionArgs
                {
                    EndHour = 0,
                    EndMin = 0,
                    StartHour = 0,
                    StartMin = 0,
                },
            },
            RestrictionList = new[]
            {
                new Opsgenie.Inputs.ScheduleRotationTimeRestrictionRestrictionListArgs
                {
                    EndDay = "string",
                    EndHour = 0,
                    EndMin = 0,
                    StartDay = "string",
                    StartHour = 0,
                    StartMin = 0,
                },
            },
        },
    },
});
Copy
example, err := opsgenie.NewScheduleRotation(ctx, "scheduleRotationResource", &opsgenie.ScheduleRotationArgs{
	Participants: opsgenie.ScheduleRotationParticipantArray{
		&opsgenie.ScheduleRotationParticipantArgs{
			Type: pulumi.String("string"),
			Id:   pulumi.String("string"),
		},
	},
	ScheduleId: pulumi.String("string"),
	StartDate:  pulumi.String("string"),
	Type:       pulumi.String("string"),
	EndDate:    pulumi.String("string"),
	Length:     pulumi.Int(0),
	Name:       pulumi.String("string"),
	TimeRestrictions: opsgenie.ScheduleRotationTimeRestrictionArray{
		&opsgenie.ScheduleRotationTimeRestrictionArgs{
			Type: pulumi.String("string"),
			Restriction: opsgenie.ScheduleRotationTimeRestrictionRestrictionArray{
				&opsgenie.ScheduleRotationTimeRestrictionRestrictionArgs{
					EndHour:   pulumi.Int(0),
					EndMin:    pulumi.Int(0),
					StartHour: pulumi.Int(0),
					StartMin:  pulumi.Int(0),
				},
			},
			RestrictionList: opsgenie.ScheduleRotationTimeRestrictionRestrictionListArray{
				&opsgenie.ScheduleRotationTimeRestrictionRestrictionListArgs{
					EndDay:    pulumi.String("string"),
					EndHour:   pulumi.Int(0),
					EndMin:    pulumi.Int(0),
					StartDay:  pulumi.String("string"),
					StartHour: pulumi.Int(0),
					StartMin:  pulumi.Int(0),
				},
			},
		},
	},
})
Copy
var scheduleRotationResource = new ScheduleRotation("scheduleRotationResource", ScheduleRotationArgs.builder()
    .participants(ScheduleRotationParticipantArgs.builder()
        .type("string")
        .id("string")
        .build())
    .scheduleId("string")
    .startDate("string")
    .type("string")
    .endDate("string")
    .length(0)
    .name("string")
    .timeRestrictions(ScheduleRotationTimeRestrictionArgs.builder()
        .type("string")
        .restriction(ScheduleRotationTimeRestrictionRestrictionArgs.builder()
            .endHour(0)
            .endMin(0)
            .startHour(0)
            .startMin(0)
            .build())
        .restrictionList(ScheduleRotationTimeRestrictionRestrictionListArgs.builder()
            .endDay("string")
            .endHour(0)
            .endMin(0)
            .startDay("string")
            .startHour(0)
            .startMin(0)
            .build())
        .build())
    .build());
Copy
schedule_rotation_resource = opsgenie.ScheduleRotation("scheduleRotationResource",
    participants=[{
        "type": "string",
        "id": "string",
    }],
    schedule_id="string",
    start_date="string",
    type="string",
    end_date="string",
    length=0,
    name="string",
    time_restrictions=[{
        "type": "string",
        "restriction": [{
            "end_hour": 0,
            "end_min": 0,
            "start_hour": 0,
            "start_min": 0,
        }],
        "restriction_list": [{
            "end_day": "string",
            "end_hour": 0,
            "end_min": 0,
            "start_day": "string",
            "start_hour": 0,
            "start_min": 0,
        }],
    }])
Copy
const scheduleRotationResource = new opsgenie.ScheduleRotation("scheduleRotationResource", {
    participants: [{
        type: "string",
        id: "string",
    }],
    scheduleId: "string",
    startDate: "string",
    type: "string",
    endDate: "string",
    length: 0,
    name: "string",
    timeRestrictions: [{
        type: "string",
        restriction: [{
            endHour: 0,
            endMin: 0,
            startHour: 0,
            startMin: 0,
        }],
        restrictionList: [{
            endDay: "string",
            endHour: 0,
            endMin: 0,
            startDay: "string",
            startHour: 0,
            startMin: 0,
        }],
    }],
});
Copy
type: opsgenie:ScheduleRotation
properties:
    endDate: string
    length: 0
    name: string
    participants:
        - id: string
          type: string
    scheduleId: string
    startDate: string
    timeRestrictions:
        - restriction:
            - endHour: 0
              endMin: 0
              startHour: 0
              startMin: 0
          restrictionList:
            - endDay: string
              endHour: 0
              endMin: 0
              startDay: string
              startHour: 0
              startMin: 0
          type: string
    type: string
Copy

ScheduleRotation 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 ScheduleRotation resource accepts the following input properties:

Participants This property is required. List<ScheduleRotationParticipant>
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
ScheduleId This property is required. string
Identifier of the schedule.
StartDate This property is required. string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
Type This property is required. string
Type of rotation. May be one of daily, weekly and hourly.
EndDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
Length int
Length of the rotation with default value 1.
Name string
Name of rotation.
TimeRestrictions List<ScheduleRotationTimeRestriction>
Participants This property is required. []ScheduleRotationParticipantArgs
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
ScheduleId This property is required. string
Identifier of the schedule.
StartDate This property is required. string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
Type This property is required. string
Type of rotation. May be one of daily, weekly and hourly.
EndDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
Length int
Length of the rotation with default value 1.
Name string
Name of rotation.
TimeRestrictions []ScheduleRotationTimeRestrictionArgs
participants This property is required. List<ScheduleRotationParticipant>
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
scheduleId This property is required. String
Identifier of the schedule.
startDate This property is required. String
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
type This property is required. String
Type of rotation. May be one of daily, weekly and hourly.
endDate String
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
length Integer
Length of the rotation with default value 1.
name String
Name of rotation.
timeRestrictions List<ScheduleRotationTimeRestriction>
participants This property is required. ScheduleRotationParticipant[]
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
scheduleId This property is required. string
Identifier of the schedule.
startDate This property is required. string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
type This property is required. string
Type of rotation. May be one of daily, weekly and hourly.
endDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
length number
Length of the rotation with default value 1.
name string
Name of rotation.
timeRestrictions ScheduleRotationTimeRestriction[]
participants This property is required. Sequence[ScheduleRotationParticipantArgs]
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
schedule_id This property is required. str
Identifier of the schedule.
start_date This property is required. str
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
type This property is required. str
Type of rotation. May be one of daily, weekly and hourly.
end_date str
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
length int
Length of the rotation with default value 1.
name str
Name of rotation.
time_restrictions Sequence[ScheduleRotationTimeRestrictionArgs]
participants This property is required. List<Property Map>
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
scheduleId This property is required. String
Identifier of the schedule.
startDate This property is required. String
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
type This property is required. String
Type of rotation. May be one of daily, weekly and hourly.
endDate String
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
length Number
Length of the rotation with default value 1.
name String
Name of rotation.
timeRestrictions List<Property Map>

Outputs

All input properties are implicitly available as output properties. Additionally, the ScheduleRotation 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 ScheduleRotation Resource

Get an existing ScheduleRotation 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?: ScheduleRotationState, opts?: CustomResourceOptions): ScheduleRotation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        end_date: Optional[str] = None,
        length: Optional[int] = None,
        name: Optional[str] = None,
        participants: Optional[Sequence[ScheduleRotationParticipantArgs]] = None,
        schedule_id: Optional[str] = None,
        start_date: Optional[str] = None,
        time_restrictions: Optional[Sequence[ScheduleRotationTimeRestrictionArgs]] = None,
        type: Optional[str] = None) -> ScheduleRotation
func GetScheduleRotation(ctx *Context, name string, id IDInput, state *ScheduleRotationState, opts ...ResourceOption) (*ScheduleRotation, error)
public static ScheduleRotation Get(string name, Input<string> id, ScheduleRotationState? state, CustomResourceOptions? opts = null)
public static ScheduleRotation get(String name, Output<String> id, ScheduleRotationState state, CustomResourceOptions options)
resources:  _:    type: opsgenie:ScheduleRotation    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:
EndDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
Length int
Length of the rotation with default value 1.
Name string
Name of rotation.
Participants List<ScheduleRotationParticipant>
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
ScheduleId string
Identifier of the schedule.
StartDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
TimeRestrictions List<ScheduleRotationTimeRestriction>
Type string
Type of rotation. May be one of daily, weekly and hourly.
EndDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
Length int
Length of the rotation with default value 1.
Name string
Name of rotation.
Participants []ScheduleRotationParticipantArgs
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
ScheduleId string
Identifier of the schedule.
StartDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
TimeRestrictions []ScheduleRotationTimeRestrictionArgs
Type string
Type of rotation. May be one of daily, weekly and hourly.
endDate String
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
length Integer
Length of the rotation with default value 1.
name String
Name of rotation.
participants List<ScheduleRotationParticipant>
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
scheduleId String
Identifier of the schedule.
startDate String
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
timeRestrictions List<ScheduleRotationTimeRestriction>
type String
Type of rotation. May be one of daily, weekly and hourly.
endDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
length number
Length of the rotation with default value 1.
name string
Name of rotation.
participants ScheduleRotationParticipant[]
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
scheduleId string
Identifier of the schedule.
startDate string
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
timeRestrictions ScheduleRotationTimeRestriction[]
type string
Type of rotation. May be one of daily, weekly and hourly.
end_date str
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
length int
Length of the rotation with default value 1.
name str
Name of rotation.
participants Sequence[ScheduleRotationParticipantArgs]
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
schedule_id str
Identifier of the schedule.
start_date str
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
time_restrictions Sequence[ScheduleRotationTimeRestrictionArgs]
type str
Type of rotation. May be one of daily, weekly and hourly.
endDate String
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
length Number
Length of the rotation with default value 1.
name String
Name of rotation.
participants List<Property Map>
List of escalations, teams, users or the reserved word none which will be used in schedule. Each of them can be used multiple times and will be rotated in the order they given. "user,escalation,team,none"
scheduleId String
Identifier of the schedule.
startDate String
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00). Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically
timeRestrictions List<Property Map>
type String
Type of rotation. May be one of daily, weekly and hourly.

Supporting Types

ScheduleRotationParticipant
, ScheduleRotationParticipantArgs

Type This property is required. string
The responder type.
Id string
The id of the responder.
Type This property is required. string
The responder type.
Id string
The id of the responder.
type This property is required. String
The responder type.
id String
The id of the responder.
type This property is required. string
The responder type.
id string
The id of the responder.
type This property is required. str
The responder type.
id str
The id of the responder.
type This property is required. String
The responder type.
id String
The id of the responder.

ScheduleRotationTimeRestriction
, ScheduleRotationTimeRestrictionArgs

Type This property is required. string
This parameter should be set to time-of-day or weekday-and-time-of-day.
Restriction List<ScheduleRotationTimeRestrictionRestriction>
It is a restriction object which is described below. In this case startDay/endDay fields are not supported. This can be used only if time restriction type is time-of-day.
RestrictionList List<ScheduleRotationTimeRestrictionRestrictionList>
It is a restriction object which is described below. This can be used only if time restriction type is weekday-and-time-of-day.
Type This property is required. string
This parameter should be set to time-of-day or weekday-and-time-of-day.
Restriction []ScheduleRotationTimeRestrictionRestriction
It is a restriction object which is described below. In this case startDay/endDay fields are not supported. This can be used only if time restriction type is time-of-day.
RestrictionList []ScheduleRotationTimeRestrictionRestrictionList
It is a restriction object which is described below. This can be used only if time restriction type is weekday-and-time-of-day.
type This property is required. String
This parameter should be set to time-of-day or weekday-and-time-of-day.
restriction List<ScheduleRotationTimeRestrictionRestriction>
It is a restriction object which is described below. In this case startDay/endDay fields are not supported. This can be used only if time restriction type is time-of-day.
restrictionList List<ScheduleRotationTimeRestrictionRestrictionList>
It is a restriction object which is described below. This can be used only if time restriction type is weekday-and-time-of-day.
type This property is required. string
This parameter should be set to time-of-day or weekday-and-time-of-day.
restriction ScheduleRotationTimeRestrictionRestriction[]
It is a restriction object which is described below. In this case startDay/endDay fields are not supported. This can be used only if time restriction type is time-of-day.
restrictionList ScheduleRotationTimeRestrictionRestrictionList[]
It is a restriction object which is described below. This can be used only if time restriction type is weekday-and-time-of-day.
type This property is required. str
This parameter should be set to time-of-day or weekday-and-time-of-day.
restriction Sequence[ScheduleRotationTimeRestrictionRestriction]
It is a restriction object which is described below. In this case startDay/endDay fields are not supported. This can be used only if time restriction type is time-of-day.
restriction_list Sequence[ScheduleRotationTimeRestrictionRestrictionList]
It is a restriction object which is described below. This can be used only if time restriction type is weekday-and-time-of-day.
type This property is required. String
This parameter should be set to time-of-day or weekday-and-time-of-day.
restriction List<Property Map>
It is a restriction object which is described below. In this case startDay/endDay fields are not supported. This can be used only if time restriction type is time-of-day.
restrictionList List<Property Map>
It is a restriction object which is described below. This can be used only if time restriction type is weekday-and-time-of-day.

ScheduleRotationTimeRestrictionRestriction
, ScheduleRotationTimeRestrictionRestrictionArgs

EndHour This property is required. int
Value of the hour that frame will end.
EndMin This property is required. int
Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
StartHour This property is required. int
Value of the hour that frame will start.
StartMin This property is required. int
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
EndHour This property is required. int
Value of the hour that frame will end.
EndMin This property is required. int
Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
StartHour This property is required. int
Value of the hour that frame will start.
StartMin This property is required. int
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
endHour This property is required. Integer
Value of the hour that frame will end.
endMin This property is required. Integer
Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
startHour This property is required. Integer
Value of the hour that frame will start.
startMin This property is required. Integer
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
endHour This property is required. number
Value of the hour that frame will end.
endMin This property is required. number
Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
startHour This property is required. number
Value of the hour that frame will start.
startMin This property is required. number
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
end_hour This property is required. int
Value of the hour that frame will end.
end_min This property is required. int
Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
start_hour This property is required. int
Value of the hour that frame will start.
start_min This property is required. int
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
endHour This property is required. Number
Value of the hour that frame will end.
endMin This property is required. Number
Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
startHour This property is required. Number
Value of the hour that frame will start.
startMin This property is required. Number
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.

ScheduleRotationTimeRestrictionRestrictionList
, ScheduleRotationTimeRestrictionRestrictionListArgs

EndDay This property is required. string
Value of the day that frame will end.
EndHour This property is required. int
Value of the hour that frame will end.
EndMin This property is required. int

Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.

Both start_day and end_day can assume only monday, tuesday, wednesday, thursday, friday, saturday, or sunday values.

StartDay This property is required. string
Value of the day that frame will start.
StartHour This property is required. int
Value of the hour that frame will start
StartMin This property is required. int
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
EndDay This property is required. string
Value of the day that frame will end.
EndHour This property is required. int
Value of the hour that frame will end.
EndMin This property is required. int

Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.

Both start_day and end_day can assume only monday, tuesday, wednesday, thursday, friday, saturday, or sunday values.

StartDay This property is required. string
Value of the day that frame will start.
StartHour This property is required. int
Value of the hour that frame will start
StartMin This property is required. int
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
endDay This property is required. String
Value of the day that frame will end.
endHour This property is required. Integer
Value of the hour that frame will end.
endMin This property is required. Integer

Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.

Both start_day and end_day can assume only monday, tuesday, wednesday, thursday, friday, saturday, or sunday values.

startDay This property is required. String
Value of the day that frame will start.
startHour This property is required. Integer
Value of the hour that frame will start
startMin This property is required. Integer
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
endDay This property is required. string
Value of the day that frame will end.
endHour This property is required. number
Value of the hour that frame will end.
endMin This property is required. number

Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.

Both start_day and end_day can assume only monday, tuesday, wednesday, thursday, friday, saturday, or sunday values.

startDay This property is required. string
Value of the day that frame will start.
startHour This property is required. number
Value of the hour that frame will start
startMin This property is required. number
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
end_day This property is required. str
Value of the day that frame will end.
end_hour This property is required. int
Value of the hour that frame will end.
end_min This property is required. int

Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.

Both start_day and end_day can assume only monday, tuesday, wednesday, thursday, friday, saturday, or sunday values.

start_day This property is required. str
Value of the day that frame will start.
start_hour This property is required. int
Value of the hour that frame will start
start_min This property is required. int
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
endDay This property is required. String
Value of the day that frame will end.
endHour This property is required. Number
Value of the hour that frame will end.
endMin This property is required. Number

Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.

Both start_day and end_day can assume only monday, tuesday, wednesday, thursday, friday, saturday, or sunday values.

startDay This property is required. String
Value of the day that frame will start.
startHour This property is required. Number
Value of the hour that frame will start
startMin This property is required. Number
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.

Import

Schedule Rotations can be imported using the schedule_id/rotation_id, e.g.

$ pulumi import opsgenie:index/scheduleRotation:ScheduleRotation * `opsgenie_schedule_rotation.test schedule_id/rotation_id`
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Opsgenie pulumi/pulumi-opsgenie
License
Apache-2.0
Notes
This Pulumi package is based on the opsgenie Terraform Provider.