1. Packages
  2. Datadog Provider
  3. API Docs
  4. getIncidentNotificationTemplate
Datadog v4.56.0 published on Thursday, Sep 18, 2025 by Pulumi

datadog.getIncidentNotificationTemplate

Explore with Pulumi AI

datadog logo
Datadog v4.56.0 published on Thursday, Sep 18, 2025 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const example = datadog.getIncidentNotificationTemplate({
        id: "52600bb1-e83a-48a1-aa77-6889ddb269b2",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    example = datadog.get_incident_notification_template(id="52600bb1-e83a-48a1-aa77-6889ddb269b2")
    
    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.LookupIncidentNotificationTemplate(ctx, &datadog.LookupIncidentNotificationTemplateArgs{
    			Id: pulumi.StringRef("52600bb1-e83a-48a1-aa77-6889ddb269b2"),
    		}, 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.GetIncidentNotificationTemplate.Invoke(new()
        {
            Id = "52600bb1-e83a-48a1-aa77-6889ddb269b2",
        });
    
    });
    
    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.GetIncidentNotificationTemplateArgs;
    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.getIncidentNotificationTemplate(GetIncidentNotificationTemplateArgs.builder()
                .id("52600bb1-e83a-48a1-aa77-6889ddb269b2")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: datadog:getIncidentNotificationTemplate
          arguments:
            id: 52600bb1-e83a-48a1-aa77-6889ddb269b2
    

    Using getIncidentNotificationTemplate

    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 getIncidentNotificationTemplate(args: GetIncidentNotificationTemplateArgs, opts?: InvokeOptions): Promise<GetIncidentNotificationTemplateResult>
    function getIncidentNotificationTemplateOutput(args: GetIncidentNotificationTemplateOutputArgs, opts?: InvokeOptions): Output<GetIncidentNotificationTemplateResult>
    def get_incident_notification_template(id: Optional[str] = None,
                                           name: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetIncidentNotificationTemplateResult
    def get_incident_notification_template_output(id: Optional[pulumi.Input[str]] = None,
                                           name: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetIncidentNotificationTemplateResult]
    func LookupIncidentNotificationTemplate(ctx *Context, args *LookupIncidentNotificationTemplateArgs, opts ...InvokeOption) (*LookupIncidentNotificationTemplateResult, error)
    func LookupIncidentNotificationTemplateOutput(ctx *Context, args *LookupIncidentNotificationTemplateOutputArgs, opts ...InvokeOption) LookupIncidentNotificationTemplateResultOutput

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

    public static class GetIncidentNotificationTemplate 
    {
        public static Task<GetIncidentNotificationTemplateResult> InvokeAsync(GetIncidentNotificationTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetIncidentNotificationTemplateResult> Invoke(GetIncidentNotificationTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIncidentNotificationTemplateResult> getIncidentNotificationTemplate(GetIncidentNotificationTemplateArgs args, InvokeOptions options)
    public static Output<GetIncidentNotificationTemplateResult> getIncidentNotificationTemplate(GetIncidentNotificationTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getIncidentNotificationTemplate:getIncidentNotificationTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the incident notification template.
    Name string
    The name of the notification template.
    Id string
    The ID of the incident notification template.
    Name string
    The name of the notification template.
    id String
    The ID of the incident notification template.
    name String
    The name of the notification template.
    id string
    The ID of the incident notification template.
    name string
    The name of the notification template.
    id str
    The ID of the incident notification template.
    name str
    The name of the notification template.
    id String
    The ID of the incident notification template.
    name String
    The name of the notification template.

    getIncidentNotificationTemplate Result

    The following output properties are available:

    Category string
    The category of the notification template.
    Content string
    The content body of the notification template.
    Created string
    Timestamp when the notification template was created.
    Id string
    The ID of the incident notification template.
    IncidentType string
    The ID of the incident type this notification template is associated with.
    Modified string
    Timestamp when the notification template was last modified.
    Name string
    The name of the notification template.
    Subject string
    The subject line of the notification template.
    Category string
    The category of the notification template.
    Content string
    The content body of the notification template.
    Created string
    Timestamp when the notification template was created.
    Id string
    The ID of the incident notification template.
    IncidentType string
    The ID of the incident type this notification template is associated with.
    Modified string
    Timestamp when the notification template was last modified.
    Name string
    The name of the notification template.
    Subject string
    The subject line of the notification template.
    category String
    The category of the notification template.
    content String
    The content body of the notification template.
    created String
    Timestamp when the notification template was created.
    id String
    The ID of the incident notification template.
    incidentType String
    The ID of the incident type this notification template is associated with.
    modified String
    Timestamp when the notification template was last modified.
    name String
    The name of the notification template.
    subject String
    The subject line of the notification template.
    category string
    The category of the notification template.
    content string
    The content body of the notification template.
    created string
    Timestamp when the notification template was created.
    id string
    The ID of the incident notification template.
    incidentType string
    The ID of the incident type this notification template is associated with.
    modified string
    Timestamp when the notification template was last modified.
    name string
    The name of the notification template.
    subject string
    The subject line of the notification template.
    category str
    The category of the notification template.
    content str
    The content body of the notification template.
    created str
    Timestamp when the notification template was created.
    id str
    The ID of the incident notification template.
    incident_type str
    The ID of the incident type this notification template is associated with.
    modified str
    Timestamp when the notification template was last modified.
    name str
    The name of the notification template.
    subject str
    The subject line of the notification template.
    category String
    The category of the notification template.
    content String
    The content body of the notification template.
    created String
    Timestamp when the notification template was created.
    id String
    The ID of the incident notification template.
    incidentType String
    The ID of the incident type this notification template is associated with.
    modified String
    Timestamp when the notification template was last modified.
    name String
    The name of the notification template.
    subject String
    The subject line of the notification template.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.56.0 published on Thursday, Sep 18, 2025 by Pulumi