published on Friday, Sep 11, 2026 by incident-io
published on Friday, Sep 11, 2026 by incident-io
Manage a schedule replica that mirrors an incident.io schedule into an external provider such as PagerDuty, Opsgenie, or Jira Service Management.
The API does not support updating a replica in place: changing any configuration forces a new resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as incident from "@pulumi/incident";
// Mirror a schedule into a PagerDuty schedule. The replica_provider_id is the
// PagerDuty schedule ID; replica_fallback_user_id is a PagerDuty user used when
// nobody is on-call in incident.io.
const platformPagerduty = new incident.ScheduleReplica("platform_pagerduty", {
scheduleId: platform.id,
replicaProvider: "pagerduty",
replicaProviderId: "PO8107X",
replicaFallbackUserId: "PA7AXXN",
mirrorWindowDays: 14,
sources: [{
rotationId: "primary",
layerId: "primary",
}],
});
import pulumi
import pulumi_incident as incident
# Mirror a schedule into a PagerDuty schedule. The replica_provider_id is the
# PagerDuty schedule ID; replica_fallback_user_id is a PagerDuty user used when
# nobody is on-call in incident.io.
platform_pagerduty = incident.ScheduleReplica("platform_pagerduty",
schedule_id=platform["id"],
replica_provider="pagerduty",
replica_provider_id="PO8107X",
replica_fallback_user_id="PA7AXXN",
mirror_window_days=14,
sources=[{
"rotation_id": "primary",
"layer_id": "primary",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/incident/v7/incident"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Mirror a schedule into a PagerDuty schedule. The replica_provider_id is the
// PagerDuty schedule ID; replica_fallback_user_id is a PagerDuty user used when
// nobody is on-call in incident.io.
_, err := incident.NewScheduleReplica(ctx, "platform_pagerduty", &incident.ScheduleReplicaArgs{
ScheduleId: pulumi.Any(platform.Id),
ReplicaProvider: pulumi.String("pagerduty"),
ReplicaProviderId: pulumi.String("PO8107X"),
ReplicaFallbackUserId: pulumi.String("PA7AXXN"),
MirrorWindowDays: pulumi.Float64(14),
Sources: incident.ScheduleReplicaSourceArray{
&incident.ScheduleReplicaSourceArgs{
RotationId: pulumi.String("primary"),
LayerId: pulumi.String("primary"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Incident = Pulumi.Incident;
return await Deployment.RunAsync(() =>
{
// Mirror a schedule into a PagerDuty schedule. The replica_provider_id is the
// PagerDuty schedule ID; replica_fallback_user_id is a PagerDuty user used when
// nobody is on-call in incident.io.
var platformPagerduty = new Incident.ScheduleReplica("platform_pagerduty", new()
{
ScheduleId = platform.Id,
ReplicaProvider = "pagerduty",
ReplicaProviderId = "PO8107X",
ReplicaFallbackUserId = "PA7AXXN",
MirrorWindowDays = 14,
Sources = new[]
{
new Incident.Inputs.ScheduleReplicaSourceArgs
{
RotationId = "primary",
LayerId = "primary",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incident.ScheduleReplica;
import com.pulumi.incident.ScheduleReplicaArgs;
import com.pulumi.incident.inputs.ScheduleReplicaSourceArgs;
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) {
// Mirror a schedule into a PagerDuty schedule. The replica_provider_id is the
// PagerDuty schedule ID; replica_fallback_user_id is a PagerDuty user used when
// nobody is on-call in incident.io.
var platformPagerduty = new ScheduleReplica("platformPagerduty", ScheduleReplicaArgs.builder()
.scheduleId(platform.id())
.replicaProvider("pagerduty")
.replicaProviderId("PO8107X")
.replicaFallbackUserId("PA7AXXN")
.mirrorWindowDays(14.0)
.sources(ScheduleReplicaSourceArgs.builder()
.rotationId("primary")
.layerId("primary")
.build())
.build());
}
}
resources:
# Mirror a schedule into a PagerDuty schedule. The replica_provider_id is the
# PagerDuty schedule ID; replica_fallback_user_id is a PagerDuty user used when
# nobody is on-call in incident.io.
platformPagerduty:
type: incident:ScheduleReplica
name: platform_pagerduty
properties:
scheduleId: ${platform.id}
replicaProvider: pagerduty
replicaProviderId: PO8107X
replicaFallbackUserId: PA7AXXN
mirrorWindowDays: 14
sources:
- rotationId: primary
layerId: primary
Example coming soon!
Create ScheduleReplica Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScheduleReplica(name: string, args: ScheduleReplicaArgs, opts?: CustomResourceOptions);@overload
def ScheduleReplica(resource_name: str,
args: ScheduleReplicaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScheduleReplica(resource_name: str,
opts: Optional[ResourceOptions] = None,
replica_fallback_user_id: Optional[str] = None,
replica_provider: Optional[str] = None,
replica_provider_id: Optional[str] = None,
schedule_id: Optional[str] = None,
sources: Optional[Sequence[ScheduleReplicaSourceArgs]] = None,
mirror_window_days: Optional[float] = None)func NewScheduleReplica(ctx *Context, name string, args ScheduleReplicaArgs, opts ...ResourceOption) (*ScheduleReplica, error)public ScheduleReplica(string name, ScheduleReplicaArgs args, CustomResourceOptions? opts = null)
public ScheduleReplica(String name, ScheduleReplicaArgs args)
public ScheduleReplica(String name, ScheduleReplicaArgs args, CustomResourceOptions options)
type: incident:ScheduleReplica
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "incident_schedule_replica" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ScheduleReplicaArgs
- 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 ScheduleReplicaArgs
- 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 ScheduleReplicaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduleReplicaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduleReplicaArgs
- 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 scheduleReplicaResource = new Incident.ScheduleReplica("scheduleReplicaResource", new()
{
ReplicaFallbackUserId = "string",
ReplicaProvider = "string",
ReplicaProviderId = "string",
ScheduleId = "string",
Sources = new[]
{
new Incident.Inputs.ScheduleReplicaSourceArgs
{
LayerId = "string",
RotationId = "string",
},
},
MirrorWindowDays = 0.0,
});
example, err := incident.NewScheduleReplica(ctx, "scheduleReplicaResource", &incident.ScheduleReplicaArgs{
ReplicaFallbackUserId: pulumi.String("string"),
ReplicaProvider: pulumi.String("string"),
ReplicaProviderId: pulumi.String("string"),
ScheduleId: pulumi.String("string"),
Sources: incident.ScheduleReplicaSourceArray{
&incident.ScheduleReplicaSourceArgs{
LayerId: pulumi.String("string"),
RotationId: pulumi.String("string"),
},
},
MirrorWindowDays: pulumi.Float64(0),
})
resource "incident_schedule_replica" "scheduleReplicaResource" {
lifecycle {
create_before_destroy = true
}
replica_fallback_user_id = "string"
replica_provider = "string"
replica_provider_id = "string"
schedule_id = "string"
sources {
layer_id = "string"
rotation_id = "string"
}
mirror_window_days = 0
}
var scheduleReplicaResource = new ScheduleReplica("scheduleReplicaResource", ScheduleReplicaArgs.builder()
.replicaFallbackUserId("string")
.replicaProvider("string")
.replicaProviderId("string")
.scheduleId("string")
.sources(ScheduleReplicaSourceArgs.builder()
.layerId("string")
.rotationId("string")
.build())
.mirrorWindowDays(0.0)
.build());
schedule_replica_resource = incident.ScheduleReplica("scheduleReplicaResource",
replica_fallback_user_id="string",
replica_provider="string",
replica_provider_id="string",
schedule_id="string",
sources=[{
"layer_id": "string",
"rotation_id": "string",
}],
mirror_window_days=float(0))
const scheduleReplicaResource = new incident.ScheduleReplica("scheduleReplicaResource", {
replicaFallbackUserId: "string",
replicaProvider: "string",
replicaProviderId: "string",
scheduleId: "string",
sources: [{
layerId: "string",
rotationId: "string",
}],
mirrorWindowDays: 0,
});
type: incident:ScheduleReplica
properties:
mirrorWindowDays: 0
replicaFallbackUserId: string
replicaProvider: string
replicaProviderId: string
scheduleId: string
sources:
- layerId: string
rotationId: string
ScheduleReplica 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 ScheduleReplica resource accepts the following input properties:
- Replica
Fallback stringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- Replica
Provider string - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - Replica
Provider stringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- Schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- Sources
List<Schedule
Replica Source> - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- Mirror
Window doubleDays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- Replica
Fallback stringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- Replica
Provider string - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - Replica
Provider stringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- Schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- Sources
[]Schedule
Replica Source Args - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- Mirror
Window float64Days - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica_
fallback_ stringuser_ id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica_
provider string - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica_
provider_ stringid - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule_
id string - The ID of the incident.io schedule that this replica is syncing from
- sources list(object)
- The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- mirror_
window_ numberdays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica
Fallback StringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica
Provider String - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica
Provider StringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule
Id String - The ID of the incident.io schedule that this replica is syncing from
- sources
List<Schedule
Replica Source> - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- mirror
Window DoubleDays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica
Fallback stringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica
Provider string - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica
Provider stringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- sources
Schedule
Replica Source[] - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- mirror
Window numberDays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica_
fallback_ struser_ id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica_
provider str - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica_
provider_ strid - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule_
id str - The ID of the incident.io schedule that this replica is syncing from
- sources
Sequence[Schedule
Replica Source Args] - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- mirror_
window_ floatdays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica
Fallback StringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica
Provider String - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica
Provider StringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule
Id String - The ID of the incident.io schedule that this replica is syncing from
- sources List<Property Map>
- The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- mirror
Window NumberDays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduleReplica resource produces the following output properties:
- Created
At string - When this schedule replica was first created
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Sync stringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- Last
Synced stringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- Updated
At string - When this schedule replica was last updated
- User
Statuses List<ScheduleReplica User Status> - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- Created
At string - When this schedule replica was first created
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Sync stringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- Last
Synced stringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- Updated
At string - When this schedule replica was last updated
- User
Statuses []ScheduleReplica User Status - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created_
at string - When this schedule replica was first created
- id string
- The provider-assigned unique ID for this managed resource.
- last_
sync_ stringerror - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last_
synced_ stringat - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- updated_
at string - When this schedule replica was last updated
- user_
statuses list(object) - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created
At String - When this schedule replica was first created
- id String
- The provider-assigned unique ID for this managed resource.
- last
Sync StringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last
Synced StringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- updated
At String - When this schedule replica was last updated
- user
Statuses List<ScheduleReplica User Status> - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created
At string - When this schedule replica was first created
- id string
- The provider-assigned unique ID for this managed resource.
- last
Sync stringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last
Synced stringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- updated
At string - When this schedule replica was last updated
- user
Statuses ScheduleReplica User Status[] - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created_
at str - When this schedule replica was first created
- id str
- The provider-assigned unique ID for this managed resource.
- last_
sync_ strerror - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last_
synced_ strat - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- updated_
at str - When this schedule replica was last updated
- user_
statuses Sequence[ScheduleReplica User Status] - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created
At String - When this schedule replica was first created
- id String
- The provider-assigned unique ID for this managed resource.
- last
Sync StringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last
Synced StringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- updated
At String - When this schedule replica was last updated
- user
Statuses List<Property Map> - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
Look up Existing ScheduleReplica Resource
Get an existing ScheduleReplica 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?: ScheduleReplicaState, opts?: CustomResourceOptions): ScheduleReplica@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
last_sync_error: Optional[str] = None,
last_synced_at: Optional[str] = None,
mirror_window_days: Optional[float] = None,
replica_fallback_user_id: Optional[str] = None,
replica_provider: Optional[str] = None,
replica_provider_id: Optional[str] = None,
schedule_id: Optional[str] = None,
sources: Optional[Sequence[ScheduleReplicaSourceArgs]] = None,
updated_at: Optional[str] = None,
user_statuses: Optional[Sequence[ScheduleReplicaUserStatusArgs]] = None) -> ScheduleReplicafunc GetScheduleReplica(ctx *Context, name string, id IDInput, state *ScheduleReplicaState, opts ...ResourceOption) (*ScheduleReplica, error)public static ScheduleReplica Get(string name, Input<string> id, ScheduleReplicaState? state, CustomResourceOptions? opts = null)public static ScheduleReplica get(String name, Output<String> id, ScheduleReplicaState state, CustomResourceOptions options)resources: _: type: incident:ScheduleReplica get: id: ${id}import {
to = incident_schedule_replica.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
At string - When this schedule replica was first created
- Last
Sync stringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- Last
Synced stringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- Mirror
Window doubleDays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- Replica
Fallback stringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- Replica
Provider string - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - Replica
Provider stringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- Schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- Sources
List<Schedule
Replica Source> - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- Updated
At string - When this schedule replica was last updated
- User
Statuses List<ScheduleReplica User Status> - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- Created
At string - When this schedule replica was first created
- Last
Sync stringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- Last
Synced stringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- Mirror
Window float64Days - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- Replica
Fallback stringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- Replica
Provider string - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - Replica
Provider stringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- Schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- Sources
[]Schedule
Replica Source Args - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- Updated
At string - When this schedule replica was last updated
- User
Statuses []ScheduleReplica User Status Args - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created_
at string - When this schedule replica was first created
- last_
sync_ stringerror - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last_
synced_ stringat - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- mirror_
window_ numberdays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica_
fallback_ stringuser_ id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica_
provider string - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica_
provider_ stringid - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule_
id string - The ID of the incident.io schedule that this replica is syncing from
- sources list(object)
- The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- updated_
at string - When this schedule replica was last updated
- user_
statuses list(object) - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created
At String - When this schedule replica was first created
- last
Sync StringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last
Synced StringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- mirror
Window DoubleDays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica
Fallback StringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica
Provider String - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica
Provider StringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule
Id String - The ID of the incident.io schedule that this replica is syncing from
- sources
List<Schedule
Replica Source> - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- updated
At String - When this schedule replica was last updated
- user
Statuses List<ScheduleReplica User Status> - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created
At string - When this schedule replica was first created
- last
Sync stringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last
Synced stringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- mirror
Window numberDays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica
Fallback stringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica
Provider string - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica
Provider stringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- sources
Schedule
Replica Source[] - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- updated
At string - When this schedule replica was last updated
- user
Statuses ScheduleReplica User Status[] - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created_
at str - When this schedule replica was first created
- last_
sync_ strerror - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last_
synced_ strat - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- mirror_
window_ floatdays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica_
fallback_ struser_ id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica_
provider str - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica_
provider_ strid - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule_
id str - The ID of the incident.io schedule that this replica is syncing from
- sources
Sequence[Schedule
Replica Source Args] - The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- updated_
at str - When this schedule replica was last updated
- user_
statuses Sequence[ScheduleReplica User Status Args] - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
- created
At String - When this schedule replica was first created
- last
Sync StringError - The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
- last
Synced StringAt - When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
- mirror
Window NumberDays - How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
- replica
Fallback StringUser Id - The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
- replica
Provider String - The external provider where this schedule is replicated to. Possible values are:
native,pagerduty,opsgenie,jsm. - replica
Provider StringId - The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
- schedule
Id String - The ID of the incident.io schedule that this replica is syncing from
- sources List<Property Map>
- The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
- updated
At String - When this schedule replica was last updated
- user
Statuses List<Property Map> - The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
Supporting Types
ScheduleReplicaSource, ScheduleReplicaSourceArgs
- Layer
Id string - The ID of the layer within the rotation to replicate. Rotations can have multiple layers that stack on top of each other, and you must specify which layer to replicate.
- Rotation
Id string - The ID of the rotation within the schedule to replicate. Each schedule can have multiple rotations, and you can choose which ones to include in the replica.
- Layer
Id string - The ID of the layer within the rotation to replicate. Rotations can have multiple layers that stack on top of each other, and you must specify which layer to replicate.
- Rotation
Id string - The ID of the rotation within the schedule to replicate. Each schedule can have multiple rotations, and you can choose which ones to include in the replica.
- layer_
id string - The ID of the layer within the rotation to replicate. Rotations can have multiple layers that stack on top of each other, and you must specify which layer to replicate.
- rotation_
id string - The ID of the rotation within the schedule to replicate. Each schedule can have multiple rotations, and you can choose which ones to include in the replica.
- layer
Id String - The ID of the layer within the rotation to replicate. Rotations can have multiple layers that stack on top of each other, and you must specify which layer to replicate.
- rotation
Id String - The ID of the rotation within the schedule to replicate. Each schedule can have multiple rotations, and you can choose which ones to include in the replica.
- layer
Id string - The ID of the layer within the rotation to replicate. Rotations can have multiple layers that stack on top of each other, and you must specify which layer to replicate.
- rotation
Id string - The ID of the rotation within the schedule to replicate. Each schedule can have multiple rotations, and you can choose which ones to include in the replica.
- layer_
id str - The ID of the layer within the rotation to replicate. Rotations can have multiple layers that stack on top of each other, and you must specify which layer to replicate.
- rotation_
id str - The ID of the rotation within the schedule to replicate. Each schedule can have multiple rotations, and you can choose which ones to include in the replica.
- layer
Id String - The ID of the layer within the rotation to replicate. Rotations can have multiple layers that stack on top of each other, and you must specify which layer to replicate.
- rotation
Id String - The ID of the rotation within the schedule to replicate. Each schedule can have multiple rotations, and you can choose which ones to include in the replica.
ScheduleReplicaUserStatus, ScheduleReplicaUserStatusArgs
- External
User stringId - The corresponding user ID in the external provider (e.g. a PagerDuty user ID). If set, the user has been successfully mapped to an external user and will be included in the replica. If null, the user could not be resolved and syncing may produce errors.
- User
Id string - The incident.io user ID for a user who appears in the schedule rotation.
- External
User stringId - The corresponding user ID in the external provider (e.g. a PagerDuty user ID). If set, the user has been successfully mapped to an external user and will be included in the replica. If null, the user could not be resolved and syncing may produce errors.
- User
Id string - The incident.io user ID for a user who appears in the schedule rotation.
- external_
user_ stringid - The corresponding user ID in the external provider (e.g. a PagerDuty user ID). If set, the user has been successfully mapped to an external user and will be included in the replica. If null, the user could not be resolved and syncing may produce errors.
- user_
id string - The incident.io user ID for a user who appears in the schedule rotation.
- external
User StringId - The corresponding user ID in the external provider (e.g. a PagerDuty user ID). If set, the user has been successfully mapped to an external user and will be included in the replica. If null, the user could not be resolved and syncing may produce errors.
- user
Id String - The incident.io user ID for a user who appears in the schedule rotation.
- external
User stringId - The corresponding user ID in the external provider (e.g. a PagerDuty user ID). If set, the user has been successfully mapped to an external user and will be included in the replica. If null, the user could not be resolved and syncing may produce errors.
- user
Id string - The incident.io user ID for a user who appears in the schedule rotation.
- external_
user_ strid - The corresponding user ID in the external provider (e.g. a PagerDuty user ID). If set, the user has been successfully mapped to an external user and will be included in the replica. If null, the user could not be resolved and syncing may produce errors.
- user_
id str - The incident.io user ID for a user who appears in the schedule rotation.
- external
User StringId - The corresponding user ID in the external provider (e.g. a PagerDuty user ID). If set, the user has been successfully mapped to an external user and will be included in the replica. If null, the user could not be resolved and syncing may produce errors.
- user
Id String - The incident.io user ID for a user who appears in the schedule rotation.
Import
Import is supported using an import block or the pulumi import command:
The import block can be used with the id attribute, for example:
terraform
Import a schedule replica using the format schedule_id:replica_id
Replicas belong to a schedule, so both IDs are required: use the
ListScheduleReplicas API endpoint for a schedule to find its replicas’ IDs
Replace the IDs with real IDs from your incident.io organization
import {
to = incident_schedule_replica.example
id = “01ABC123DEF456GHI789JKL:01MNO456PQR789STU012VWX”
}
The pulumi import command can be used, for example:
#!/bin/bash
Import a schedule replica using the format schedule_id:replica_id
Replicas belong to a schedule, so both IDs are required: use the
ListScheduleReplicas API endpoint for a schedule to find its replicas’ IDs
Replace the IDs with real IDs from your incident.io organization
$ pulumi import incident:index/scheduleReplica:ScheduleReplica example 01ABC123DEF456GHI789JKL:01MNO456PQR789STU012VWX
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- incident incident-io/terraform-provider-incident
- License
- Notes
- This Pulumi package is based on the
incidentTerraform Provider.
published on Friday, Sep 11, 2026 by incident-io