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

datadog.getIncidentNotificationRule

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 rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const example = datadog.getIncidentNotificationRule({
        id: "00000000-0000-0000-0000-000000000000",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    example = datadog.get_incident_notification_rule(id="00000000-0000-0000-0000-000000000000")
    
    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.LookupIncidentNotificationRule(ctx, &datadog.LookupIncidentNotificationRuleArgs{
    			Id: "00000000-0000-0000-0000-000000000000",
    		}, 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.GetIncidentNotificationRule.Invoke(new()
        {
            Id = "00000000-0000-0000-0000-000000000000",
        });
    
    });
    
    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.GetIncidentNotificationRuleArgs;
    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.getIncidentNotificationRule(GetIncidentNotificationRuleArgs.builder()
                .id("00000000-0000-0000-0000-000000000000")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: datadog:getIncidentNotificationRule
          arguments:
            id: 00000000-0000-0000-0000-000000000000
    

    Using getIncidentNotificationRule

    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 getIncidentNotificationRule(args: GetIncidentNotificationRuleArgs, opts?: InvokeOptions): Promise<GetIncidentNotificationRuleResult>
    function getIncidentNotificationRuleOutput(args: GetIncidentNotificationRuleOutputArgs, opts?: InvokeOptions): Output<GetIncidentNotificationRuleResult>
    def get_incident_notification_rule(conditions: Optional[Sequence[GetIncidentNotificationRuleCondition]] = None,
                                       id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetIncidentNotificationRuleResult
    def get_incident_notification_rule_output(conditions: Optional[pulumi.Input[Sequence[pulumi.Input[GetIncidentNotificationRuleConditionArgs]]]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetIncidentNotificationRuleResult]
    func LookupIncidentNotificationRule(ctx *Context, args *LookupIncidentNotificationRuleArgs, opts ...InvokeOption) (*LookupIncidentNotificationRuleResult, error)
    func LookupIncidentNotificationRuleOutput(ctx *Context, args *LookupIncidentNotificationRuleOutputArgs, opts ...InvokeOption) LookupIncidentNotificationRuleResultOutput

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

    public static class GetIncidentNotificationRule 
    {
        public static Task<GetIncidentNotificationRuleResult> InvokeAsync(GetIncidentNotificationRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetIncidentNotificationRuleResult> Invoke(GetIncidentNotificationRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIncidentNotificationRuleResult> getIncidentNotificationRule(GetIncidentNotificationRuleArgs args, InvokeOptions options)
    public static Output<GetIncidentNotificationRuleResult> getIncidentNotificationRule(GetIncidentNotificationRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getIncidentNotificationRule:getIncidentNotificationRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the incident notification rule.
    Conditions List<GetIncidentNotificationRuleCondition>
    The conditions that trigger this notification rule.
    Id string
    The ID of the incident notification rule.
    Conditions []GetIncidentNotificationRuleCondition
    The conditions that trigger this notification rule.
    id String
    The ID of the incident notification rule.
    conditions List<GetIncidentNotificationRuleCondition>
    The conditions that trigger this notification rule.
    id string
    The ID of the incident notification rule.
    conditions GetIncidentNotificationRuleCondition[]
    The conditions that trigger this notification rule.
    id str
    The ID of the incident notification rule.
    conditions Sequence[GetIncidentNotificationRuleCondition]
    The conditions that trigger this notification rule.
    id String
    The ID of the incident notification rule.
    conditions List<Property Map>
    The conditions that trigger this notification rule.

    getIncidentNotificationRule Result

    The following output properties are available:

    Created string
    Timestamp when the notification rule was created.
    Enabled bool
    Whether the notification rule is enabled.
    Handles List<string>
    The notification handles (targets) for this rule.
    Id string
    The ID of the incident notification rule.
    IncidentType string
    The ID of the incident type this notification rule is associated with.
    Modified string
    Timestamp when the notification rule was last modified.
    NotificationTemplate string
    The ID of the notification template used by this rule.
    RenotifyOns List<string>
    List of incident fields that trigger re-notification when changed.
    Trigger string
    The trigger event for this notification rule.
    Visibility string
    The visibility of the notification rule. Valid values are: all, organization, private.
    Conditions List<GetIncidentNotificationRuleCondition>
    The conditions that trigger this notification rule.
    Created string
    Timestamp when the notification rule was created.
    Enabled bool
    Whether the notification rule is enabled.
    Handles []string
    The notification handles (targets) for this rule.
    Id string
    The ID of the incident notification rule.
    IncidentType string
    The ID of the incident type this notification rule is associated with.
    Modified string
    Timestamp when the notification rule was last modified.
    NotificationTemplate string
    The ID of the notification template used by this rule.
    RenotifyOns []string
    List of incident fields that trigger re-notification when changed.
    Trigger string
    The trigger event for this notification rule.
    Visibility string
    The visibility of the notification rule. Valid values are: all, organization, private.
    Conditions []GetIncidentNotificationRuleCondition
    The conditions that trigger this notification rule.
    created String
    Timestamp when the notification rule was created.
    enabled Boolean
    Whether the notification rule is enabled.
    handles List<String>
    The notification handles (targets) for this rule.
    id String
    The ID of the incident notification rule.
    incidentType String
    The ID of the incident type this notification rule is associated with.
    modified String
    Timestamp when the notification rule was last modified.
    notificationTemplate String
    The ID of the notification template used by this rule.
    renotifyOns List<String>
    List of incident fields that trigger re-notification when changed.
    trigger String
    The trigger event for this notification rule.
    visibility String
    The visibility of the notification rule. Valid values are: all, organization, private.
    conditions List<GetIncidentNotificationRuleCondition>
    The conditions that trigger this notification rule.
    created string
    Timestamp when the notification rule was created.
    enabled boolean
    Whether the notification rule is enabled.
    handles string[]
    The notification handles (targets) for this rule.
    id string
    The ID of the incident notification rule.
    incidentType string
    The ID of the incident type this notification rule is associated with.
    modified string
    Timestamp when the notification rule was last modified.
    notificationTemplate string
    The ID of the notification template used by this rule.
    renotifyOns string[]
    List of incident fields that trigger re-notification when changed.
    trigger string
    The trigger event for this notification rule.
    visibility string
    The visibility of the notification rule. Valid values are: all, organization, private.
    conditions GetIncidentNotificationRuleCondition[]
    The conditions that trigger this notification rule.
    created str
    Timestamp when the notification rule was created.
    enabled bool
    Whether the notification rule is enabled.
    handles Sequence[str]
    The notification handles (targets) for this rule.
    id str
    The ID of the incident notification rule.
    incident_type str
    The ID of the incident type this notification rule is associated with.
    modified str
    Timestamp when the notification rule was last modified.
    notification_template str
    The ID of the notification template used by this rule.
    renotify_ons Sequence[str]
    List of incident fields that trigger re-notification when changed.
    trigger str
    The trigger event for this notification rule.
    visibility str
    The visibility of the notification rule. Valid values are: all, organization, private.
    conditions Sequence[GetIncidentNotificationRuleCondition]
    The conditions that trigger this notification rule.
    created String
    Timestamp when the notification rule was created.
    enabled Boolean
    Whether the notification rule is enabled.
    handles List<String>
    The notification handles (targets) for this rule.
    id String
    The ID of the incident notification rule.
    incidentType String
    The ID of the incident type this notification rule is associated with.
    modified String
    Timestamp when the notification rule was last modified.
    notificationTemplate String
    The ID of the notification template used by this rule.
    renotifyOns List<String>
    List of incident fields that trigger re-notification when changed.
    trigger String
    The trigger event for this notification rule.
    visibility String
    The visibility of the notification rule. Valid values are: all, organization, private.
    conditions List<Property Map>
    The conditions that trigger this notification rule.

    Supporting Types

    GetIncidentNotificationRuleCondition

    Field string
    The incident field to evaluate. Common values include: state, severity, services, teams. Custom fields are also supported.
    Values List<string>
    The value(s) to compare against.
    Field string
    The incident field to evaluate. Common values include: state, severity, services, teams. Custom fields are also supported.
    Values []string
    The value(s) to compare against.
    field String
    The incident field to evaluate. Common values include: state, severity, services, teams. Custom fields are also supported.
    values List<String>
    The value(s) to compare against.
    field string
    The incident field to evaluate. Common values include: state, severity, services, teams. Custom fields are also supported.
    values string[]
    The value(s) to compare against.
    field str
    The incident field to evaluate. Common values include: state, severity, services, teams. Custom fields are also supported.
    values Sequence[str]
    The value(s) to compare against.
    field String
    The incident field to evaluate. Common values include: state, severity, services, teams. Custom fields are also supported.
    values List<String>
    The value(s) to compare against.

    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