1. Packages
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. getIncidentType
Viewing docs for Datadog v5.10.0
published on Thursday, Jul 30, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.10.0
published on Thursday, Jul 30, 2026 by Pulumi

    Use this data source to retrieve information about an existing incident type.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const example = datadog.getIncidentType({
        id: "01234567-89ab-cdef-0123-456789abcdef",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    example = datadog.get_incident_type(id="01234567-89ab-cdef-0123-456789abcdef")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datadog.GetIncidentType(ctx, &datadog.LookupIncidentTypeArgs{
    			Id: "01234567-89ab-cdef-0123-456789abcdef",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Datadog.GetIncidentType.Invoke(new()
        {
            Id = "01234567-89ab-cdef-0123-456789abcdef",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.DatadogFunctions;
    import com.pulumi.datadog.inputs.GetIncidentTypeArgs;
    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) {
            final var example = DatadogFunctions.getIncidentType(GetIncidentTypeArgs.builder()
                .id("01234567-89ab-cdef-0123-456789abcdef")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: datadog:getIncidentType
          arguments:
            id: 01234567-89ab-cdef-0123-456789abcdef
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    data "datadog_getincidenttype" "example" {
      id = "01234567-89ab-cdef-0123-456789abcdef"
    }
    

    Using getIncidentType

    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 getIncidentType(args: GetIncidentTypeArgs, opts?: InvokeOptions): Promise<GetIncidentTypeResult>
    function getIncidentTypeOutput(args: GetIncidentTypeOutputArgs, opts?: InvokeOptions): Output<GetIncidentTypeResult>
    def get_incident_type(id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetIncidentTypeResult
    def get_incident_type_output(id: pulumi.Input[Optional[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetIncidentTypeResult]
    func LookupIncidentType(ctx *Context, args *LookupIncidentTypeArgs, opts ...InvokeOption) (*LookupIncidentTypeResult, error)
    func LookupIncidentTypeOutput(ctx *Context, args *LookupIncidentTypeOutputArgs, opts ...InvokeOption) LookupIncidentTypeResultOutput

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

    public static class GetIncidentType 
    {
        public static Task<GetIncidentTypeResult> InvokeAsync(GetIncidentTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetIncidentTypeResult> Invoke(GetIncidentTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIncidentTypeResult> getIncidentType(GetIncidentTypeArgs args, InvokeOptions options)
    public static Output<GetIncidentTypeResult> getIncidentType(GetIncidentTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getIncidentType:getIncidentType
      arguments:
        # arguments dictionary
    data "datadog_get_incident_type" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of the incident type.
    Id string
    The ID of the incident type.
    id string
    The ID of the incident type.
    id String
    The ID of the incident type.
    id string
    The ID of the incident type.
    id str
    The ID of the incident type.
    id String
    The ID of the incident type.

    getIncidentType Result

    The following output properties are available:

    Configuration GetIncidentTypeConfiguration
    The incident type's behavior settings.
    Description string
    Description of the incident type.
    Id string
    The ID of the incident type.
    IsDefault bool
    Whether this incident type is the default type.
    Name string
    Name of the incident type.
    Configuration GetIncidentTypeConfiguration
    The incident type's behavior settings.
    Description string
    Description of the incident type.
    Id string
    The ID of the incident type.
    IsDefault bool
    Whether this incident type is the default type.
    Name string
    Name of the incident type.
    configuration object
    The incident type's behavior settings.
    description string
    Description of the incident type.
    id string
    The ID of the incident type.
    is_default bool
    Whether this incident type is the default type.
    name string
    Name of the incident type.
    configuration GetIncidentTypeConfiguration
    The incident type's behavior settings.
    description String
    Description of the incident type.
    id String
    The ID of the incident type.
    isDefault Boolean
    Whether this incident type is the default type.
    name String
    Name of the incident type.
    configuration GetIncidentTypeConfiguration
    The incident type's behavior settings.
    description string
    Description of the incident type.
    id string
    The ID of the incident type.
    isDefault boolean
    Whether this incident type is the default type.
    name string
    Name of the incident type.
    configuration GetIncidentTypeConfiguration
    The incident type's behavior settings.
    description str
    Description of the incident type.
    id str
    The ID of the incident type.
    is_default bool
    Whether this incident type is the default type.
    name str
    Name of the incident type.
    configuration Property Map
    The incident type's behavior settings.
    description String
    Description of the incident type.
    id String
    The ID of the incident type.
    isDefault Boolean
    Whether this incident type is the default type.
    name String
    Name of the incident type.

    Supporting Types

    GetIncidentTypeConfiguration

    AllowIncidentDeletion bool
    Whether incidents of this type can be deleted.
    AllowWorkflows bool
    Whether users can manually run a workflow from an incident of this type.
    CreateMessage string
    An optional message shown to users when they declare an incident of this type.
    EditableTimestamps bool
    Whether responders can edit incident timestamps for incidents of this type.
    PrivateIncidents bool
    Whether responders can create private incidents of this type.
    PrivateIncidentsByDefault bool
    Whether the private toggle is enabled by default in the incident creation modal for this type.
    SlugSource string
    The source used to derive the incident slug. When set to servicenow, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed.
    TestIncidents bool
    Whether test incidents of this type can be created.
    AllowIncidentDeletion bool
    Whether incidents of this type can be deleted.
    AllowWorkflows bool
    Whether users can manually run a workflow from an incident of this type.
    CreateMessage string
    An optional message shown to users when they declare an incident of this type.
    EditableTimestamps bool
    Whether responders can edit incident timestamps for incidents of this type.
    PrivateIncidents bool
    Whether responders can create private incidents of this type.
    PrivateIncidentsByDefault bool
    Whether the private toggle is enabled by default in the incident creation modal for this type.
    SlugSource string
    The source used to derive the incident slug. When set to servicenow, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed.
    TestIncidents bool
    Whether test incidents of this type can be created.
    allow_incident_deletion bool
    Whether incidents of this type can be deleted.
    allow_workflows bool
    Whether users can manually run a workflow from an incident of this type.
    create_message string
    An optional message shown to users when they declare an incident of this type.
    editable_timestamps bool
    Whether responders can edit incident timestamps for incidents of this type.
    private_incidents bool
    Whether responders can create private incidents of this type.
    private_incidents_by_default bool
    Whether the private toggle is enabled by default in the incident creation modal for this type.
    slug_source string
    The source used to derive the incident slug. When set to servicenow, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed.
    test_incidents bool
    Whether test incidents of this type can be created.
    allowIncidentDeletion Boolean
    Whether incidents of this type can be deleted.
    allowWorkflows Boolean
    Whether users can manually run a workflow from an incident of this type.
    createMessage String
    An optional message shown to users when they declare an incident of this type.
    editableTimestamps Boolean
    Whether responders can edit incident timestamps for incidents of this type.
    privateIncidents Boolean
    Whether responders can create private incidents of this type.
    privateIncidentsByDefault Boolean
    Whether the private toggle is enabled by default in the incident creation modal for this type.
    slugSource String
    The source used to derive the incident slug. When set to servicenow, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed.
    testIncidents Boolean
    Whether test incidents of this type can be created.
    allowIncidentDeletion boolean
    Whether incidents of this type can be deleted.
    allowWorkflows boolean
    Whether users can manually run a workflow from an incident of this type.
    createMessage string
    An optional message shown to users when they declare an incident of this type.
    editableTimestamps boolean
    Whether responders can edit incident timestamps for incidents of this type.
    privateIncidents boolean
    Whether responders can create private incidents of this type.
    privateIncidentsByDefault boolean
    Whether the private toggle is enabled by default in the incident creation modal for this type.
    slugSource string
    The source used to derive the incident slug. When set to servicenow, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed.
    testIncidents boolean
    Whether test incidents of this type can be created.
    allow_incident_deletion bool
    Whether incidents of this type can be deleted.
    allow_workflows bool
    Whether users can manually run a workflow from an incident of this type.
    create_message str
    An optional message shown to users when they declare an incident of this type.
    editable_timestamps bool
    Whether responders can edit incident timestamps for incidents of this type.
    private_incidents bool
    Whether responders can create private incidents of this type.
    private_incidents_by_default bool
    Whether the private toggle is enabled by default in the incident creation modal for this type.
    slug_source str
    The source used to derive the incident slug. When set to servicenow, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed.
    test_incidents bool
    Whether test incidents of this type can be created.
    allowIncidentDeletion Boolean
    Whether incidents of this type can be deleted.
    allowWorkflows Boolean
    Whether users can manually run a workflow from an incident of this type.
    createMessage String
    An optional message shown to users when they declare an incident of this type.
    editableTimestamps Boolean
    Whether responders can edit incident timestamps for incidents of this type.
    privateIncidents Boolean
    Whether responders can create private incidents of this type.
    privateIncidentsByDefault Boolean
    Whether the private toggle is enabled by default in the incident creation modal for this type.
    slugSource String
    The source used to derive the incident slug. When set to servicenow, incidents display the ServiceNow record ID instead of the public ID. If no ServiceNow integration exists, the public ID is displayed.
    testIncidents Boolean
    Whether test incidents of this type can be created.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Viewing docs for Datadog v5.10.0
    published on Thursday, Jul 30, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial