Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 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/v4/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datadog.LookupIncidentType(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.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) {
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
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: Optional[pulumi.Input[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 dictionaryThe 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 str
- The ID of the incident type.
- id String
- The ID of the incident type.
getIncidentType Result
The following output properties are available:
- 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.
- 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.
- description String
- Description of the incident type.
- id String
- The ID of the incident type.
- is
Default Boolean - Whether this incident type is the default type.
- name String
- Name of the incident type.
- description string
- Description of the incident type.
- id string
- The ID of the incident type.
- is
Default boolean - Whether this incident type is the default type.
- name string
- Name of the incident type.
- 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.
- description String
- Description of the incident type.
- id String
- The ID of the incident type.
- is
Default Boolean - Whether this incident type is the default type.
- name String
- Name of the incident type.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
