published on Thursday, May 7, 2026 by rootlyhq
published on Thursday, May 7, 2026 by rootlyhq
Example Usage
data "rootly_user" "john" {
email = "demo@rootly.com"
}
data "rootly_user" "jane" {
email = "demo1@rootly.com"
}
data "rootly_alert_urgency" "low" {
name = "Low"
}
resource "rootly_team" "sre" {
name = "SREs On-Call"
user_ids = [data.rootly_user.john.id, data.rootly_user.jane.id]
}
resource "rootly_schedule" "primary" {
name = "Primary On-Call Schedule"
owner_user_id = data.rootly_user.john.id
all_time_coverage = false
}
resource "rootly_schedule_rotation" "weekdays" {
schedule_id = rootly_schedule.primary.id
name = "weekdays"
active_all_week = false
active_days = [
"M",
"T",
"W",
"R",
"F",
]
active_time_type = "custom"
position = 1
schedule_rotationable_attributes = {
handoff_time = "10:00"
}
schedule_rotationable_type = "ScheduleDailyRotation"
time_zone = "America/Toronto"
}
# Define active days for the weekday rotation
# Monday
resource "rootly_schedule_rotation_active_day" "m1-weekday" {
schedule_rotation_id = rootly_schedule_rotation.weekdays.id
day_name = "M"
active_time_attributes {
start_time = "10:00"
end_time = "18:00"
}
}
# Tuesday
resource "rootly_schedule_rotation_active_day" "t1-weekday" {
schedule_rotation_id = rootly_schedule_rotation.weekdays.id
day_name = "T"
active_time_attributes {
start_time = "10:00"
end_time = "18:00"
}
}
# Wednesday
resource "rootly_schedule_rotation_active_day" "w1-weekday" {
schedule_rotation_id = rootly_schedule_rotation.weekdays.id
day_name = "W"
active_time_attributes {
start_time = "10:00"
end_time = "18:00"
}
}
# Thursday
resource "rootly_schedule_rotation_active_day" "th1-weekday" {
schedule_rotation_id = rootly_schedule_rotation.weekdays.id
day_name = "R"
active_time_attributes {
start_time = "10:00"
end_time = "18:00"
}
}
# Friday
resource "rootly_schedule_rotation_active_day" "f1-weekday" {
schedule_rotation_id = rootly_schedule_rotation.weekdays.id
day_name = "F"
active_time_attributes {
start_time = "10:00"
end_time = "18:00"
}
}
resource "rootly_schedule_rotation_user" "john" {
schedule_rotation_id = rootly_schedule_rotation.weekdays.id
position = 1
user_id = data.rootly_user.john.id
}
resource "rootly_schedule_rotation_user" "jane" {
schedule_rotation_id = rootly_schedule_rotation.weekdays.id
position = 2
user_id = data.rootly_user.jane.id
}
resource "rootly_escalation_policy" "primary" {
name = "Primary"
group_ids = [rootly_team.sre.id]
}
resource "rootly_escalation_path" "default" {
name = "Default"
default = true
escalation_policy_id = rootly_escalation_policy.primary.id
}
resource "rootly_escalation_path" "ignore" {
name = "Ignore"
default = false
escalation_policy_id = rootly_escalation_policy.primary.id
rules {
rule_type = "alert_urgency"
urgency_ids = [data.rootly_alert_urgency.low.id]
}
}
resource "rootly_escalation_level" "first" {
escalation_policy_path_id = rootly_escalation_path.default.id
escalation_policy_id = rootly_escalation_policy.primary.id
position = 1
notification_target_params {
team_members = "all"
type = "slack_channel"
id = "C06D4QHLAUE"
}
notification_target_params {
type = "schedule"
id = rootly_schedule.primary.id
team_members = "all"
}
}
# cycle-based round-robin everyone on the schedule
resource "rootly_escalation_level" "second" {
escalation_policy_path_id = rootly_escalation_path.default.id
escalation_policy_id = rootly_escalation_policy.primary.id
position = 2
delay = 5
paging_strategy_configuration_strategy = "cycle"
paging_strategy_configuration_schedule_strategy = "everyone"
notification_target_params {
type = "schedule"
id = rootly_schedule.primary.id
team_members = "all"
}
}
Create ScheduleRotationActiveDay Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScheduleRotationActiveDay(name: string, args: ScheduleRotationActiveDayArgs, opts?: CustomResourceOptions);@overload
def ScheduleRotationActiveDay(resource_name: str,
args: ScheduleRotationActiveDayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScheduleRotationActiveDay(resource_name: str,
opts: Optional[ResourceOptions] = None,
active_time_attributes: Optional[Sequence[ScheduleRotationActiveDayActiveTimeAttributeArgs]] = None,
day_name: Optional[str] = None,
schedule_rotation_id: Optional[str] = None)func NewScheduleRotationActiveDay(ctx *Context, name string, args ScheduleRotationActiveDayArgs, opts ...ResourceOption) (*ScheduleRotationActiveDay, error)public ScheduleRotationActiveDay(string name, ScheduleRotationActiveDayArgs args, CustomResourceOptions? opts = null)
public ScheduleRotationActiveDay(String name, ScheduleRotationActiveDayArgs args)
public ScheduleRotationActiveDay(String name, ScheduleRotationActiveDayArgs args, CustomResourceOptions options)
type: rootly:ScheduleRotationActiveDay
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ScheduleRotationActiveDayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ScheduleRotationActiveDayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ScheduleRotationActiveDayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduleRotationActiveDayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduleRotationActiveDayArgs
- 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 scheduleRotationActiveDayResource = new Rootly.ScheduleRotationActiveDay("scheduleRotationActiveDayResource", new()
{
ActiveTimeAttributes = new[]
{
new Rootly.Inputs.ScheduleRotationActiveDayActiveTimeAttributeArgs
{
EndTime = "string",
StartTime = "string",
},
},
DayName = "string",
ScheduleRotationId = "string",
});
example, err := rootly.NewScheduleRotationActiveDay(ctx, "scheduleRotationActiveDayResource", &rootly.ScheduleRotationActiveDayArgs{
ActiveTimeAttributes: rootly.ScheduleRotationActiveDayActiveTimeAttributeArray{
&rootly.ScheduleRotationActiveDayActiveTimeAttributeArgs{
EndTime: pulumi.String("string"),
StartTime: pulumi.String("string"),
},
},
DayName: pulumi.String("string"),
ScheduleRotationId: pulumi.String("string"),
})
var scheduleRotationActiveDayResource = new ScheduleRotationActiveDay("scheduleRotationActiveDayResource", ScheduleRotationActiveDayArgs.builder()
.activeTimeAttributes(ScheduleRotationActiveDayActiveTimeAttributeArgs.builder()
.endTime("string")
.startTime("string")
.build())
.dayName("string")
.scheduleRotationId("string")
.build());
schedule_rotation_active_day_resource = rootly.ScheduleRotationActiveDay("scheduleRotationActiveDayResource",
active_time_attributes=[{
"end_time": "string",
"start_time": "string",
}],
day_name="string",
schedule_rotation_id="string")
const scheduleRotationActiveDayResource = new rootly.ScheduleRotationActiveDay("scheduleRotationActiveDayResource", {
activeTimeAttributes: [{
endTime: "string",
startTime: "string",
}],
dayName: "string",
scheduleRotationId: "string",
});
type: rootly:ScheduleRotationActiveDay
properties:
activeTimeAttributes:
- endTime: string
startTime: string
dayName: string
scheduleRotationId: string
ScheduleRotationActiveDay 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 ScheduleRotationActiveDay resource accepts the following input properties:
- Active
Time List<ScheduleAttributes Rotation Active Day Active Time Attribute> - Schedule rotation active times per day
- Day
Name string - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - Schedule
Rotation stringId
- Active
Time []ScheduleAttributes Rotation Active Day Active Time Attribute Args - Schedule rotation active times per day
- Day
Name string - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - Schedule
Rotation stringId
- active
Time List<ScheduleAttributes Rotation Active Day Active Time Attribute> - Schedule rotation active times per day
- day
Name String - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - schedule
Rotation StringId
- active
Time ScheduleAttributes Rotation Active Day Active Time Attribute[] - Schedule rotation active times per day
- day
Name string - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - schedule
Rotation stringId
- active_
time_ Sequence[Scheduleattributes Rotation Active Day Active Time Attribute Args] - Schedule rotation active times per day
- day_
name str - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - schedule_
rotation_ strid
- active
Time List<Property Map>Attributes - Schedule rotation active times per day
- day
Name String - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - schedule
Rotation StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduleRotationActiveDay 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 ScheduleRotationActiveDay Resource
Get an existing ScheduleRotationActiveDay 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?: ScheduleRotationActiveDayState, opts?: CustomResourceOptions): ScheduleRotationActiveDay@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active_time_attributes: Optional[Sequence[ScheduleRotationActiveDayActiveTimeAttributeArgs]] = None,
day_name: Optional[str] = None,
schedule_rotation_id: Optional[str] = None) -> ScheduleRotationActiveDayfunc GetScheduleRotationActiveDay(ctx *Context, name string, id IDInput, state *ScheduleRotationActiveDayState, opts ...ResourceOption) (*ScheduleRotationActiveDay, error)public static ScheduleRotationActiveDay Get(string name, Input<string> id, ScheduleRotationActiveDayState? state, CustomResourceOptions? opts = null)public static ScheduleRotationActiveDay get(String name, Output<String> id, ScheduleRotationActiveDayState state, CustomResourceOptions options)resources: _: type: rootly:ScheduleRotationActiveDay get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active
Time List<ScheduleAttributes Rotation Active Day Active Time Attribute> - Schedule rotation active times per day
- Day
Name string - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - Schedule
Rotation stringId
- Active
Time []ScheduleAttributes Rotation Active Day Active Time Attribute Args - Schedule rotation active times per day
- Day
Name string - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - Schedule
Rotation stringId
- active
Time List<ScheduleAttributes Rotation Active Day Active Time Attribute> - Schedule rotation active times per day
- day
Name String - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - schedule
Rotation StringId
- active
Time ScheduleAttributes Rotation Active Day Active Time Attribute[] - Schedule rotation active times per day
- day
Name string - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - schedule
Rotation stringId
- active_
time_ Sequence[Scheduleattributes Rotation Active Day Active Time Attribute Args] - Schedule rotation active times per day
- day_
name str - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - schedule_
rotation_ strid
- active
Time List<Property Map>Attributes - Schedule rotation active times per day
- day
Name String - Schedule rotation day name for which active times to be created. Value must be one of
S,M,T,W,R,F,U. - schedule
Rotation StringId
Supporting Types
ScheduleRotationActiveDayActiveTimeAttribute, ScheduleRotationActiveDayActiveTimeAttributeArgs
- end_
time str - End time for schedule rotation active time
- start_
time str - Start time for schedule rotation active time
Import
rootly.ScheduleRotationActiveDay can be imported using the import command.
$ pulumi import rootly:index/scheduleRotationActiveDay:ScheduleRotationActiveDay primary a816421c-6ceb-481a-87c4-585e47451f24
Or using an import block.
Locate the resource id in the web app, or retrieve it by listing resources through the API if it’s not visible in the web app.
HCL can be generated from the import block using the -generate-config-out flag.
pulumi preview -generate-config-out=generated.tf
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootlyTerraform Provider.
published on Thursday, May 7, 2026 by rootlyhq
