1. Registry
  2. Packages
  3. Incident Provider
  4. API Docs
  5. getIncidentTimestamp
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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incident from "@pulumi/incident";
    
    // 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/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 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.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 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}
    
    Example coming soon!
    

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

    The following arguments are supported:

    Id string
    Unique ID of this incident timestamp
    Name string
    Unique name of this timestamp
    Id string
    Unique ID of this incident timestamp
    Name string
    Unique name of this timestamp
    id string
    Unique ID of this incident timestamp
    name string
    Unique name of this timestamp
    id String
    Unique ID of this incident timestamp
    name String
    Unique name of this timestamp
    id string
    Unique ID of this incident timestamp
    name string
    Unique name of this timestamp
    id str
    Unique ID of this incident timestamp
    name str
    Unique name of this timestamp
    id String
    Unique ID of this incident timestamp
    name String
    Unique name of this timestamp

    getIncidentTimestamp Result

    The following output properties are available:

    Id string
    Unique ID of this incident timestamp
    Name string
    Unique name of this timestamp
    Rank double
    Order in which this timestamp should be shown
    Id string
    Unique ID of this incident timestamp
    Name string
    Unique name of this timestamp
    Rank float64
    Order in which this timestamp should be shown
    id string
    Unique ID of this incident timestamp
    name string
    Unique name of this timestamp
    rank number
    Order in which this timestamp should be shown
    id String
    Unique ID of this incident timestamp
    name String
    Unique name of this timestamp
    rank Double
    Order in which this timestamp should be shown
    id string
    Unique ID of this incident timestamp
    name string
    Unique name of this timestamp
    rank number
    Order in which this timestamp should be shown
    id str
    Unique ID of this incident timestamp
    name str
    Unique name of this timestamp
    rank float
    Order in which this timestamp should be shown
    id String
    Unique ID of this incident timestamp
    name String
    Unique name of this timestamp
    rank Number
    Order in which this timestamp should be shown

    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