1. Packages
  2. Incident Provider
  3. API Docs
  4. getIncidentTypes
incident 5.24.1 published on Wednesday, Dec 24, 2025 by incident-io
incident logo
incident 5.24.1 published on Wednesday, Dec 24, 2025 by incident-io

    This data source provides a list of incident types.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incident from "@pulumi/incident";
    
    // Example usage of the incident_incident_types data source
    // Get all incident types
    const all = incident.getIncidentTypes({});
    export const incidentTypes = all.then(all => all.incidentTypes);
    export const incidentTypeNames = all.then(all => .map(it => (it.name)));
    
    import pulumi
    import pulumi_incident as incident
    
    # Example usage of the incident_incident_types data source
    # Get all incident types
    all = incident.get_incident_types()
    pulumi.export("incidentTypes", all.incident_types)
    pulumi.export("incidentTypeNames", [it.name for it in all.incident_types])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Incident = Pulumi.Incident;
    
    return await Deployment.RunAsync(() => 
    {
        // Example usage of the incident_incident_types data source
        // Get all incident types
        var all = Incident.GetIncidentTypes.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["incidentTypes"] = all.Apply(getIncidentTypesResult => getIncidentTypesResult.IncidentTypes),
            ["incidentTypeNames"] = .Select(it => 
            {
                return it.Name;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    

    Using getIncidentTypes

    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 getIncidentTypes(opts?: InvokeOptions): Promise<GetIncidentTypesResult>
    function getIncidentTypesOutput(opts?: InvokeOptions): Output<GetIncidentTypesResult>
    def get_incident_types(opts: Optional[InvokeOptions] = None) -> GetIncidentTypesResult
    def get_incident_types_output(opts: Optional[InvokeOptions] = None) -> Output[GetIncidentTypesResult]
    func GetIncidentTypes(ctx *Context, opts ...InvokeOption) (*GetIncidentTypesResult, error)
    func GetIncidentTypesOutput(ctx *Context, opts ...InvokeOption) GetIncidentTypesResultOutput

    > Note: This function is named GetIncidentTypes in the Go SDK.

    public static class GetIncidentTypes 
    {
        public static Task<GetIncidentTypesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetIncidentTypesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIncidentTypesResult> getIncidentTypes(InvokeOptions options)
    public static Output<GetIncidentTypesResult> getIncidentTypes(InvokeOptions options)
    
    fn::invoke:
      function: incident:index/getIncidentTypes:getIncidentTypes
      arguments:
        # arguments dictionary

    getIncidentTypes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    IncidentTypes List<GetIncidentTypesIncidentType>
    List of incident types.
    Id string
    The provider-assigned unique ID for this managed resource.
    IncidentTypes []GetIncidentTypesIncidentType
    List of incident types.
    id String
    The provider-assigned unique ID for this managed resource.
    incidentTypes List<GetIncidentTypesIncidentType>
    List of incident types.
    id string
    The provider-assigned unique ID for this managed resource.
    incidentTypes GetIncidentTypesIncidentType[]
    List of incident types.
    id str
    The provider-assigned unique ID for this managed resource.
    incident_types Sequence[GetIncidentTypesIncidentType]
    List of incident types.
    id String
    The provider-assigned unique ID for this managed resource.
    incidentTypes List<Property Map>
    List of incident types.

    Supporting Types

    GetIncidentTypesIncidentType

    CreateInTriage string
    Whether incidents of this must always, or can optionally, be created in triage
    Description string
    What is this incident type for?
    Id string
    Unique identifier for this Incident Type
    IsDefault bool
    The default Incident Type is used when no other type is explicitly specified
    Name string
    The name of this Incident Type
    PrivateIncidentsOnly bool
    Should all incidents created with this Incident Type be private?
    CreateInTriage string
    Whether incidents of this must always, or can optionally, be created in triage
    Description string
    What is this incident type for?
    Id string
    Unique identifier for this Incident Type
    IsDefault bool
    The default Incident Type is used when no other type is explicitly specified
    Name string
    The name of this Incident Type
    PrivateIncidentsOnly bool
    Should all incidents created with this Incident Type be private?
    createInTriage String
    Whether incidents of this must always, or can optionally, be created in triage
    description String
    What is this incident type for?
    id String
    Unique identifier for this Incident Type
    isDefault Boolean
    The default Incident Type is used when no other type is explicitly specified
    name String
    The name of this Incident Type
    privateIncidentsOnly Boolean
    Should all incidents created with this Incident Type be private?
    createInTriage string
    Whether incidents of this must always, or can optionally, be created in triage
    description string
    What is this incident type for?
    id string
    Unique identifier for this Incident Type
    isDefault boolean
    The default Incident Type is used when no other type is explicitly specified
    name string
    The name of this Incident Type
    privateIncidentsOnly boolean
    Should all incidents created with this Incident Type be private?
    create_in_triage str
    Whether incidents of this must always, or can optionally, be created in triage
    description str
    What is this incident type for?
    id str
    Unique identifier for this Incident Type
    is_default bool
    The default Incident Type is used when no other type is explicitly specified
    name str
    The name of this Incident Type
    private_incidents_only bool
    Should all incidents created with this Incident Type be private?
    createInTriage String
    Whether incidents of this must always, or can optionally, be created in triage
    description String
    What is this incident type for?
    id String
    Unique identifier for this Incident Type
    isDefault Boolean
    The default Incident Type is used when no other type is explicitly specified
    name String
    The name of this Incident Type
    privateIncidentsOnly Boolean
    Should all incidents created with this Incident Type be private?

    Package Details

    Repository
    incident incident-io/terraform-provider-incident
    License
    Notes
    This Pulumi package is based on the incident Terraform Provider.
    incident logo
    incident 5.24.1 published on Wednesday, Dec 24, 2025 by incident-io
      Meet Neo: Your AI Platform Teammate