1. Registry
  2. Packages
  3. Incident Provider
  4. API Docs
  5. getScheduleReplica
Viewing docs for incident 7.0.0
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

    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 dictionary
    data "incident_get_schedule_replica" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Unique identifier of the schedule replica
    ScheduleId string
    The ID of the incident.io schedule that this replica is syncing from
    Id string
    Unique identifier of the schedule replica
    ScheduleId 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
    scheduleId String
    The ID of the incident.io schedule that this replica is syncing from
    id string
    Unique identifier of the schedule replica
    scheduleId 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
    scheduleId String
    The ID of the incident.io schedule that this replica is syncing from

    getScheduleReplica Result

    The following output properties are available:

    CreatedAt string
    When this schedule replica was first created
    Id string
    Unique identifier of the schedule replica
    LastSyncError string
    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.
    LastSyncedAt string
    When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
    MirrorWindowDays double
    How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
    ReplicaFallbackUserId string
    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.
    ReplicaProvider string
    The external provider where this schedule is replicated to. Possible values are: native, pagerduty, opsgenie, jsm.
    ReplicaProviderId string
    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.
    ScheduleId string
    The ID of the incident.io schedule that this replica is syncing from
    Sources List<GetScheduleReplicaSource>
    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.
    UpdatedAt string
    When this schedule replica was last updated
    UserStatuses List<GetScheduleReplicaUserStatus>
    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.
    CreatedAt string
    When this schedule replica was first created
    Id string
    Unique identifier of the schedule replica
    LastSyncError string
    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.
    LastSyncedAt string
    When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
    MirrorWindowDays float64
    How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
    ReplicaFallbackUserId string
    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.
    ReplicaProvider string
    The external provider where this schedule is replicated to. Possible values are: native, pagerduty, opsgenie, jsm.
    ReplicaProviderId string
    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.
    ScheduleId string
    The ID of the incident.io schedule that this replica is syncing from
    Sources []GetScheduleReplicaSource
    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.
    UpdatedAt string
    When this schedule replica was last updated
    UserStatuses []GetScheduleReplicaUserStatus
    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_error string
    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_at string
    When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
    mirror_window_days number
    How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
    replica_fallback_user_id string
    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_id string
    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.
    createdAt String
    When this schedule replica was first created
    id String
    Unique identifier of the schedule replica
    lastSyncError String
    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.
    lastSyncedAt String
    When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
    mirrorWindowDays Double
    How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
    replicaFallbackUserId String
    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.
    replicaProvider String
    The external provider where this schedule is replicated to. Possible values are: native, pagerduty, opsgenie, jsm.
    replicaProviderId String
    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.
    scheduleId String
    The ID of the incident.io schedule that this replica is syncing from
    sources List<GetScheduleReplicaSource>
    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.
    updatedAt String
    When this schedule replica was last updated
    userStatuses List<GetScheduleReplicaUserStatus>
    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.
    createdAt string
    When this schedule replica was first created
    id string
    Unique identifier of the schedule replica
    lastSyncError string
    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.
    lastSyncedAt string
    When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
    mirrorWindowDays number
    How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
    replicaFallbackUserId string
    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.
    replicaProvider string
    The external provider where this schedule is replicated to. Possible values are: native, pagerduty, opsgenie, jsm.
    replicaProviderId string
    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.
    scheduleId string
    The ID of the incident.io schedule that this replica is syncing from
    sources GetScheduleReplicaSource[]
    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.
    updatedAt string
    When this schedule replica was last updated
    userStatuses GetScheduleReplicaUserStatus[]
    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_error str
    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_at str
    When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
    mirror_window_days float
    How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
    replica_fallback_user_id str
    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_id str
    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[GetScheduleReplicaSource]
    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[GetScheduleReplicaUserStatus]
    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.
    createdAt String
    When this schedule replica was first created
    id String
    Unique identifier of the schedule replica
    lastSyncError String
    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.
    lastSyncedAt String
    When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
    mirrorWindowDays Number
    How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
    replicaFallbackUserId String
    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.
    replicaProvider String
    The external provider where this schedule is replicated to. Possible values are: native, pagerduty, opsgenie, jsm.
    replicaProviderId String
    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.
    scheduleId 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.
    updatedAt String
    When this schedule replica was last updated
    userStatuses 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

    LayerId 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.
    RotationId 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.
    LayerId 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.
    RotationId 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.
    layerId 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.
    rotationId 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.
    layerId 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.
    rotationId 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.
    layerId 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.
    rotationId 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

    ExternalUserId string
    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.
    UserId string
    The incident.io user ID for a user who appears in the schedule rotation.
    ExternalUserId string
    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.
    UserId string
    The incident.io user ID for a user who appears in the schedule rotation.
    external_user_id string
    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.
    externalUserId String
    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.
    userId String
    The incident.io user ID for a user who appears in the schedule rotation.
    externalUserId string
    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.
    userId string
    The incident.io user ID for a user who appears in the schedule rotation.
    external_user_id str
    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.
    externalUserId String
    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.
    userId 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 incident Terraform Provider.
    Viewing docs for incident 7.0.0
    published on Friday, Sep 11, 2026 by incident-io

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial