Viewing docs for incident 7.0.0
published on Friday, Sep 11, 2026 by incident-io
published on Friday, Sep 11, 2026 by incident-io
Viewing docs for incident 7.0.0
published on Friday, Sep 11, 2026 by incident-io
published on Friday, Sep 11, 2026 by incident-io
Look up an existing schedule replica by schedule ID and replica ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as incident from "@pulumi/incident";
// Look up a schedule replica by schedule ID and replica ID.
const platformPagerduty = incident.getScheduleReplica({
scheduleId: platform.id,
id: "01MNO456PQR789STU012VWX",
});
import pulumi
import pulumi_incident as incident
# Look up a schedule replica by schedule ID and replica ID.
platform_pagerduty = incident.get_schedule_replica(schedule_id=platform["id"],
id="01MNO456PQR789STU012VWX")
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 {
// Look up a schedule replica by schedule ID and replica ID.
_, err := incident.LookupScheduleReplica(ctx, &incident.LookupScheduleReplicaArgs{
ScheduleId: platform.Id,
Id: "01MNO456PQR789STU012VWX",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Incident = Pulumi.Incident;
return await Deployment.RunAsync(() =>
{
// Look up a schedule replica by schedule ID and replica ID.
var platformPagerduty = Incident.GetScheduleReplica.Invoke(new()
{
ScheduleId = platform.Id,
Id = "01MNO456PQR789STU012VWX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incident.IncidentFunctions;
import com.pulumi.incident.inputs.GetScheduleReplicaArgs;
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) {
// Look up a schedule replica by schedule ID and replica ID.
final var platformPagerduty = IncidentFunctions.getScheduleReplica(GetScheduleReplicaArgs.builder()
.scheduleId(platform.id())
.id("01MNO456PQR789STU012VWX")
.build());
}
}
variables:
# Look up a schedule replica by schedule ID and replica ID.
platformPagerduty:
fn::invoke:
function: incident:getScheduleReplica
arguments:
scheduleId: ${platform.id}
id: 01MNO456PQR789STU012VWX
Example coming soon!
Using getScheduleReplica
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getScheduleReplica(args: GetScheduleReplicaArgs, opts?: InvokeOptions): Promise<GetScheduleReplicaResult>
function getScheduleReplicaOutput(args: GetScheduleReplicaOutputArgs, opts?: InvokeOutputOptions): Output<GetScheduleReplicaResult>def get_schedule_replica(id: Optional[str] = None,
schedule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduleReplicaResult
def get_schedule_replica_output(id: pulumi.Input[Optional[str]] = None,
schedule_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetScheduleReplicaResult]func LookupScheduleReplica(ctx *Context, args *LookupScheduleReplicaArgs, opts ...InvokeOption) (*LookupScheduleReplicaResult, error)
func LookupScheduleReplicaOutput(ctx *Context, args *LookupScheduleReplicaOutputArgs, opts ...InvokeOption) LookupScheduleReplicaResultOutput> Note: This function is named LookupScheduleReplica in the Go SDK.
public static class GetScheduleReplica
{
public static Task<GetScheduleReplicaResult> InvokeAsync(GetScheduleReplicaArgs args, InvokeOptions? opts = null)
public static Output<GetScheduleReplicaResult> Invoke(GetScheduleReplicaInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetScheduleReplicaResult> Invoke(GetScheduleReplicaInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetScheduleReplicaResult> getScheduleReplica(GetScheduleReplicaArgs args, InvokeOptions options)
public static Output<GetScheduleReplicaResult> getScheduleReplica(GetScheduleReplicaArgs args, InvokeOptions options)
public static Output<GetScheduleReplicaResult> getScheduleReplica(GetScheduleReplicaArgs args, InvokeOutputOptions options)
fn::invoke:
function: incident:index/getScheduleReplica:getScheduleReplica
arguments:
# arguments dictionarydata "incident_get_schedule_replica" "name" {
# arguments
}The following arguments are supported:
- Id string
- Unique identifier of the schedule replica
- Schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- Id string
- Unique identifier of the schedule replica
- Schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- id string
- Unique identifier of the schedule replica
- schedule_
id string - The ID of the incident.io schedule that this replica is syncing from
- id String
- Unique identifier of the schedule replica
- schedule
Id String - The ID of the incident.io schedule that this replica is syncing from
- id string
- Unique identifier of the schedule replica
- schedule
Id string - The ID of the incident.io schedule that this replica is syncing from
- id str
- Unique identifier of the schedule replica
- schedule_
id str - The ID of the incident.io schedule that this replica is syncing from
- id String
- Unique identifier of the schedule replica
- schedule
Id String - The ID of the incident.io schedule that this replica is syncing from
getScheduleReplica Result
The following output properties are available:
- Created
At string - When this schedule replica was first created
- Id string
- Unique identifier of the schedule replica
- 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<Get
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<GetSchedule Replica 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
- Unique identifier of the schedule replica
- 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
[]Get
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 []GetSchedule Replica 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
- Unique identifier of the schedule replica
- 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
- id String
- Unique identifier of the schedule replica
- 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<Get
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<GetSchedule Replica 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
- Unique identifier of the schedule replica
- 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
Get
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 GetSchedule Replica 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
- Unique identifier of the schedule replica
- 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[Get
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 str - When this schedule replica was last updated
- user_
statuses Sequence[GetSchedule Replica 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
- Unique identifier of the schedule replica
- 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
GetScheduleReplicaSource
- 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.
GetScheduleReplicaUserStatus
- 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.
Package Details
- Repository
- incident incident-io/terraform-provider-incident
- License
- Notes
- This Pulumi package is based on the
incidentTerraform Provider.
Viewing docs for incident 7.0.0
published on Friday, Sep 11, 2026 by incident-io
published on Friday, Sep 11, 2026 by incident-io