published on Wednesday, Oct 21, 2026 by incident-io
published on Wednesday, Oct 21, 2026 by incident-io
View incident timestamps.
Each incident has a number of timestamps; some being defaults that we set on each incident for you, and other being configured for your organisation within settings.
Timestamps help to communicate when a given action was taken for a specific incident, for example when it was reported, closed or fixed.
Use this data source to look up an existing incident timestamp, either by id or by name. Timestamps can’t be created from Terraform, so this is how you get hold of the ID of one incident.io sets for you, such as Reported or Closed, or one configured in your settings.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as incident from "@incident-io/pulumi";
// Look up one of the timestamps incident.io sets on every incident, by name.
// This avoids pinning an ID that differs between workspaces.
const reported = incident.getIncidentTimestamp({
name: "Reported",
});
// Or by ID, for example one you've copied out of your organisation's settings.
const impactStarted = incident.getIncidentTimestamp({
id: "01FCNDV6P870EA6S7TK1DSYD5H",
});
export const reportedTimestampId = reported.then(reported => reported.id);
import pulumi
import pulumi_incident as incident
# Look up one of the timestamps incident.io sets on every incident, by name.
# This avoids pinning an ID that differs between workspaces.
reported = incident.get_incident_timestamp(name="Reported")
# Or by ID, for example one you've copied out of your organisation's settings.
impact_started = incident.get_incident_timestamp(id="01FCNDV6P870EA6S7TK1DSYD5H")
pulumi.export("reportedTimestampId", reported.id)
package main
import (
"github.com/incident-io/pulumi-incident/sdk/go/incident"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Look up one of the timestamps incident.io sets on every incident, by name.
// This avoids pinning an ID that differs between workspaces.
reported, err := incident.GetIncidentTimestamp(ctx, &incident.GetIncidentTimestampArgs{
Name: pulumi.StringRef("Reported"),
}, nil)
if err != nil {
return err
}
// Or by ID, for example one you've copied out of your organisation's settings.
_, err = incident.GetIncidentTimestamp(ctx, &incident.GetIncidentTimestampArgs{
Id: pulumi.StringRef("01FCNDV6P870EA6S7TK1DSYD5H"),
}, nil)
if err != nil {
return err
}
ctx.Export("reportedTimestampId", reported.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Incident = Pulumi.Incident;
return await Deployment.RunAsync(() =>
{
// Look up one of the timestamps incident.io sets on every incident, by name.
// This avoids pinning an ID that differs between workspaces.
var reported = Incident.GetIncidentTimestamp.Invoke(new()
{
Name = "Reported",
});
// Or by ID, for example one you've copied out of your organisation's settings.
var impactStarted = Incident.GetIncidentTimestamp.Invoke(new()
{
Id = "01FCNDV6P870EA6S7TK1DSYD5H",
});
return new Dictionary<string, object?>
{
["reportedTimestampId"] = reported.Apply(getIncidentTimestampResult => getIncidentTimestampResult.Id),
};
});
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.GetIncidentTimestampArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 one of the timestamps incident.io sets on every incident, by name.
// This avoids pinning an ID that differs between workspaces.
final var reported = IncidentFunctions.getIncidentTimestamp(GetIncidentTimestampArgs.builder()
.name("Reported")
.build());
// Or by ID, for example one you've copied out of your organisation's settings.
final var impactStarted = IncidentFunctions.getIncidentTimestamp(GetIncidentTimestampArgs.builder()
.id("01FCNDV6P870EA6S7TK1DSYD5H")
.build());
ctx.export("reportedTimestampId", reported.id());
}
}
variables:
# Look up one of the timestamps incident.io sets on every incident, by name.
# This avoids pinning an ID that differs between workspaces.
reported:
fn::invoke:
function: incident:getIncidentTimestamp
arguments:
name: Reported
# Or by ID, for example one you've copied out of your organisation's settings.
impactStarted:
fn::invoke:
function: incident:getIncidentTimestamp
arguments:
id: 01FCNDV6P870EA6S7TK1DSYD5H
outputs:
reportedTimestampId: ${reported.id}
pulumi {
required_providers {
incident = {
source = "pulumi/incident"
}
}
}
data "incident_getincidenttimestamp" "reported" {
name = "Reported"
}
data "incident_getincidenttimestamp" "impactStarted" {
id = "01FCNDV6P870EA6S7TK1DSYD5H"
}
# Look up one of the timestamps incident.io sets on every incident, by name.
# This avoids pinning an ID that differs between workspaces.
# Or by ID, for example one you've copied out of your organisation's settings.
output "reportedTimestampId" {
value = data.incident_getincidenttimestamp.reported.id
}
Using getIncidentTimestamp
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 getIncidentTimestamp(args: GetIncidentTimestampArgs, opts?: InvokeOptions): Promise<GetIncidentTimestampResult>
function getIncidentTimestampOutput(args: GetIncidentTimestampOutputArgs, opts?: InvokeOutputOptions): Output<GetIncidentTimestampResult>def get_incident_timestamp(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIncidentTimestampResult
def get_incident_timestamp_output(id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetIncidentTimestampResult]func GetIncidentTimestamp(ctx *Context, args *GetIncidentTimestampArgs, opts ...InvokeOption) (*GetIncidentTimestampResult, error)
func GetIncidentTimestampOutput(ctx *Context, args *GetIncidentTimestampOutputArgs, opts ...InvokeOption) GetIncidentTimestampResultOutput> Note: This function is named GetIncidentTimestamp in the Go SDK.
public static class GetIncidentTimestamp
{
public static Task<GetIncidentTimestampResult> InvokeAsync(GetIncidentTimestampArgs args, InvokeOptions? opts = null)
public static Output<GetIncidentTimestampResult> Invoke(GetIncidentTimestampInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetIncidentTimestampResult> Invoke(GetIncidentTimestampInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetIncidentTimestampResult> getIncidentTimestamp(GetIncidentTimestampArgs args, InvokeOptions options)
public static Output<GetIncidentTimestampResult> getIncidentTimestamp(GetIncidentTimestampArgs args, InvokeOptions options)
public static Output<GetIncidentTimestampResult> getIncidentTimestamp(GetIncidentTimestampArgs args, InvokeOutputOptions options)
fn::invoke:
function: incident:index/getIncidentTimestamp:getIncidentTimestamp
arguments:
# arguments dictionarydata "incident_get_incident_timestamp" "name" {
# arguments
}The following arguments are supported:
getIncidentTimestamp Result
The following output properties are available:
Package Details
- Repository
- incident incident-io/pulumi-incident
- License
- MIT
- Notes
- This Pulumi package is based on the
incidentTerraform Provider.
published on Wednesday, Oct 21, 2026 by incident-io