Viewing docs for incident 6.0.0
published on Monday, Aug 3, 2026 by incident-io
published on Monday, Aug 3, 2026 by incident-io
Viewing docs for incident 6.0.0
published on Monday, Aug 3, 2026 by incident-io
published on Monday, Aug 3, 2026 by incident-io
Look up a schedule by id or name. Exactly one lookup field should be set.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as incident from "@pulumi/incident";
// Look up a schedule by name...
const platform = incident.getScheduleBeta({
name: "Platform on-call",
});
// ...or by ID, which is what you want if several schedules share a name.
const platformById = incident.getScheduleBeta({
id: "01ABC123DEF456GHI789JKL",
});
import pulumi
import pulumi_incident as incident
# Look up a schedule by name...
platform = incident.get_schedule_beta(name="Platform on-call")
# ...or by ID, which is what you want if several schedules share a name.
platform_by_id = incident.get_schedule_beta(id="01ABC123DEF456GHI789JKL")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/incident/v6/incident"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Look up a schedule by name...
_, err := incident.LookupScheduleBeta(ctx, &incident.LookupScheduleBetaArgs{
Name: pulumi.StringRef("Platform on-call"),
}, nil)
if err != nil {
return err
}
// ...or by ID, which is what you want if several schedules share a name.
_, err = incident.LookupScheduleBeta(ctx, &incident.LookupScheduleBetaArgs{
Id: pulumi.StringRef("01ABC123DEF456GHI789JKL"),
}, 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 by name...
var platform = Incident.GetScheduleBeta.Invoke(new()
{
Name = "Platform on-call",
});
// ...or by ID, which is what you want if several schedules share a name.
var platformById = Incident.GetScheduleBeta.Invoke(new()
{
Id = "01ABC123DEF456GHI789JKL",
});
});
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.GetScheduleBetaArgs;
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 by name...
final var platform = IncidentFunctions.getScheduleBeta(GetScheduleBetaArgs.builder()
.name("Platform on-call")
.build());
// ...or by ID, which is what you want if several schedules share a name.
final var platformById = IncidentFunctions.getScheduleBeta(GetScheduleBetaArgs.builder()
.id("01ABC123DEF456GHI789JKL")
.build());
}
}
variables:
# Look up a schedule by name...
platform:
fn::invoke:
function: incident:getScheduleBeta
arguments:
name: Platform on-call
# ...or by ID, which is what you want if several schedules share a name.
platformById:
fn::invoke:
function: incident:getScheduleBeta
arguments:
id: 01ABC123DEF456GHI789JKL
Example coming soon!
Using getScheduleBeta
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 getScheduleBeta(args: GetScheduleBetaArgs, opts?: InvokeOptions): Promise<GetScheduleBetaResult>
function getScheduleBetaOutput(args: GetScheduleBetaOutputArgs, opts?: InvokeOptions): Output<GetScheduleBetaResult>def get_schedule_beta(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduleBetaResult
def get_schedule_beta_output(id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetScheduleBetaResult]func LookupScheduleBeta(ctx *Context, args *LookupScheduleBetaArgs, opts ...InvokeOption) (*LookupScheduleBetaResult, error)
func LookupScheduleBetaOutput(ctx *Context, args *LookupScheduleBetaOutputArgs, opts ...InvokeOption) LookupScheduleBetaResultOutput> Note: This function is named LookupScheduleBeta in the Go SDK.
public static class GetScheduleBeta
{
public static Task<GetScheduleBetaResult> InvokeAsync(GetScheduleBetaArgs args, InvokeOptions? opts = null)
public static Output<GetScheduleBetaResult> Invoke(GetScheduleBetaInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetScheduleBetaResult> getScheduleBeta(GetScheduleBetaArgs args, InvokeOptions options)
public static Output<GetScheduleBetaResult> getScheduleBeta(GetScheduleBetaArgs args, InvokeOptions options)
fn::invoke:
function: incident:index/getScheduleBeta:getScheduleBeta
arguments:
# arguments dictionarydata "incident_get_schedule_beta" "name" {
# arguments
}The following arguments are supported:
getScheduleBeta Result
The following output properties are available:
Package Details
- Repository
- incident incident-io/terraform-provider-incident
- License
- Notes
- This Pulumi package is based on the
incidentTerraform Provider.
Viewing docs for incident 6.0.0
published on Monday, Aug 3, 2026 by incident-io
published on Monday, Aug 3, 2026 by incident-io