Datadog v4.59.0 published on Wednesday, Oct 22, 2025 by Pulumi
datadog.getIncidentNotificationRule
Start a Neo task
Explain and create a datadog.getIncidentNotificationRule resource
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 dictionaryThe following arguments are supported:
- Id string
- The ID of the incident notification rule.
- Conditions
List<Get
Incident Notification Rule Condition> - The conditions that trigger this notification rule.
- Id string
- The ID of the incident notification rule.
- Conditions
[]Get
Incident Notification Rule Condition - The conditions that trigger this notification rule.
- id String
- The ID of the incident notification rule.
- conditions
List<Get
Incident Notification Rule Condition> - The conditions that trigger this notification rule.
- id string
- The ID of the incident notification rule.
- conditions
Get
Incident Notification Rule Condition[] - The conditions that trigger this notification rule.
- id str
- The ID of the incident notification rule.
- conditions
Sequence[Get
Incident Notification Rule Condition] - 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.
- Incident
Type string - The ID of the incident type this notification rule is associated with.
- Modified string
- Timestamp when the notification rule was last modified.
- Notification
Template string - The ID of the notification template used by this rule.
- Renotify
Ons 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<Get
Incident Notification Rule Condition> - 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.
- Incident
Type string - The ID of the incident type this notification rule is associated with.
- Modified string
- Timestamp when the notification rule was last modified.
- Notification
Template string - The ID of the notification template used by this rule.
- Renotify
Ons []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
[]Get
Incident Notification Rule Condition - 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.
- incident
Type String - The ID of the incident type this notification rule is associated with.
- modified String
- Timestamp when the notification rule was last modified.
- notification
Template String - The ID of the notification template used by this rule.
- renotify
Ons 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<Get
Incident Notification Rule Condition> - 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.
- incident
Type string - The ID of the incident type this notification rule is associated with.
- modified string
- Timestamp when the notification rule was last modified.
- notification
Template string - The ID of the notification template used by this rule.
- renotify
Ons 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
Get
Incident Notification Rule Condition[] - 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[Get
Incident Notification Rule Condition] - 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.
- incident
Type String - The ID of the incident type this notification rule is associated with.
- modified String
- Timestamp when the notification rule was last modified.
- notification
Template String - The ID of the notification template used by this rule.
- renotify
Ons 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
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
