1. Packages
  2. Datadog Provider
  3. API Docs
  4. getTeamNotificationRule
Datadog v4.63.0 published on Thursday, Jan 22, 2026 by Pulumi
datadog logo
Datadog v4.63.0 published on Thursday, Jan 22, 2026 by Pulumi

    Use this data source to retrieve information about a specific Datadog team notification rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Get a specific notification rule for a team
    const example = datadog.getTeamNotificationRule({
        teamId: "00000000-0000-0000-0000-000000000000",
        ruleId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Get a specific notification rule for a team
    example = datadog.get_team_notification_rule(team_id="00000000-0000-0000-0000-000000000000",
        rule_id="11111111-1111-1111-1111-111111111111")
    
    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 {
    		// Get a specific notification rule for a team
    		_, err := datadog.LookupTeamNotificationRule(ctx, &datadog.LookupTeamNotificationRuleArgs{
    			TeamId: "00000000-0000-0000-0000-000000000000",
    			RuleId: "11111111-1111-1111-1111-111111111111",
    		}, 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(() => 
    {
        // Get a specific notification rule for a team
        var example = Datadog.GetTeamNotificationRule.Invoke(new()
        {
            TeamId = "00000000-0000-0000-0000-000000000000",
            RuleId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    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.GetTeamNotificationRuleArgs;
    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) {
            // Get a specific notification rule for a team
            final var example = DatadogFunctions.getTeamNotificationRule(GetTeamNotificationRuleArgs.builder()
                .teamId("00000000-0000-0000-0000-000000000000")
                .ruleId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      # Get a specific notification rule for a team
      example:
        fn::invoke:
          function: datadog:getTeamNotificationRule
          arguments:
            teamId: 00000000-0000-0000-0000-000000000000
            ruleId: 11111111-1111-1111-1111-111111111111
    

    Using getTeamNotificationRule

    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 getTeamNotificationRule(args: GetTeamNotificationRuleArgs, opts?: InvokeOptions): Promise<GetTeamNotificationRuleResult>
    function getTeamNotificationRuleOutput(args: GetTeamNotificationRuleOutputArgs, opts?: InvokeOptions): Output<GetTeamNotificationRuleResult>
    def get_team_notification_rule(email: Optional[GetTeamNotificationRuleEmail] = None,
                                   ms_teams: Optional[GetTeamNotificationRuleMsTeams] = None,
                                   pagerduty: Optional[GetTeamNotificationRulePagerduty] = None,
                                   rule_id: Optional[str] = None,
                                   slack: Optional[GetTeamNotificationRuleSlack] = None,
                                   team_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetTeamNotificationRuleResult
    def get_team_notification_rule_output(email: Optional[pulumi.Input[GetTeamNotificationRuleEmailArgs]] = None,
                                   ms_teams: Optional[pulumi.Input[GetTeamNotificationRuleMsTeamsArgs]] = None,
                                   pagerduty: Optional[pulumi.Input[GetTeamNotificationRulePagerdutyArgs]] = None,
                                   rule_id: Optional[pulumi.Input[str]] = None,
                                   slack: Optional[pulumi.Input[GetTeamNotificationRuleSlackArgs]] = None,
                                   team_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetTeamNotificationRuleResult]
    func LookupTeamNotificationRule(ctx *Context, args *LookupTeamNotificationRuleArgs, opts ...InvokeOption) (*LookupTeamNotificationRuleResult, error)
    func LookupTeamNotificationRuleOutput(ctx *Context, args *LookupTeamNotificationRuleOutputArgs, opts ...InvokeOption) LookupTeamNotificationRuleResultOutput

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

    public static class GetTeamNotificationRule 
    {
        public static Task<GetTeamNotificationRuleResult> InvokeAsync(GetTeamNotificationRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamNotificationRuleResult> Invoke(GetTeamNotificationRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeamNotificationRuleResult> getTeamNotificationRule(GetTeamNotificationRuleArgs args, InvokeOptions options)
    public static Output<GetTeamNotificationRuleResult> getTeamNotificationRule(GetTeamNotificationRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getTeamNotificationRule:getTeamNotificationRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RuleId string
    The notification rule ID to fetch.
    TeamId string
    The team ID to fetch the notification rule for.
    Email GetTeamNotificationRuleEmail
    The email notification settings.
    MsTeams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    Pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    Slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    RuleId string
    The notification rule ID to fetch.
    TeamId string
    The team ID to fetch the notification rule for.
    Email GetTeamNotificationRuleEmail
    The email notification settings.
    MsTeams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    Pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    Slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    ruleId String
    The notification rule ID to fetch.
    teamId String
    The team ID to fetch the notification rule for.
    email GetTeamNotificationRuleEmail
    The email notification settings.
    msTeams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    ruleId string
    The notification rule ID to fetch.
    teamId string
    The team ID to fetch the notification rule for.
    email GetTeamNotificationRuleEmail
    The email notification settings.
    msTeams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    rule_id str
    The notification rule ID to fetch.
    team_id str
    The team ID to fetch the notification rule for.
    email GetTeamNotificationRuleEmail
    The email notification settings.
    ms_teams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    ruleId String
    The notification rule ID to fetch.
    teamId String
    The team ID to fetch the notification rule for.
    email Property Map
    The email notification settings.
    msTeams Property Map
    The MS Teams notification settings.
    pagerduty Property Map
    The PagerDuty notification settings.
    slack Property Map
    The Slack notification settings.

    getTeamNotificationRule Result

    The following output properties are available:

    Id string
    The ID of this resource.
    RuleId string
    The notification rule ID to fetch.
    TeamId string
    The team ID to fetch the notification rule for.
    Email GetTeamNotificationRuleEmail
    The email notification settings.
    MsTeams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    Pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    Slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    Id string
    The ID of this resource.
    RuleId string
    The notification rule ID to fetch.
    TeamId string
    The team ID to fetch the notification rule for.
    Email GetTeamNotificationRuleEmail
    The email notification settings.
    MsTeams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    Pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    Slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    id String
    The ID of this resource.
    ruleId String
    The notification rule ID to fetch.
    teamId String
    The team ID to fetch the notification rule for.
    email GetTeamNotificationRuleEmail
    The email notification settings.
    msTeams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    id string
    The ID of this resource.
    ruleId string
    The notification rule ID to fetch.
    teamId string
    The team ID to fetch the notification rule for.
    email GetTeamNotificationRuleEmail
    The email notification settings.
    msTeams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    id str
    The ID of this resource.
    rule_id str
    The notification rule ID to fetch.
    team_id str
    The team ID to fetch the notification rule for.
    email GetTeamNotificationRuleEmail
    The email notification settings.
    ms_teams GetTeamNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRuleSlack
    The Slack notification settings.
    id String
    The ID of this resource.
    ruleId String
    The notification rule ID to fetch.
    teamId String
    The team ID to fetch the notification rule for.
    email Property Map
    The email notification settings.
    msTeams Property Map
    The MS Teams notification settings.
    pagerduty Property Map
    The PagerDuty notification settings.
    slack Property Map
    The Slack notification settings.

    Supporting Types

    GetTeamNotificationRuleEmail

    Enabled bool
    Flag indicating whether email notifications should be sent
    Enabled bool
    Flag indicating whether email notifications should be sent
    enabled Boolean
    Flag indicating whether email notifications should be sent
    enabled boolean
    Flag indicating whether email notifications should be sent
    enabled bool
    Flag indicating whether email notifications should be sent
    enabled Boolean
    Flag indicating whether email notifications should be sent

    GetTeamNotificationRuleMsTeams

    ConnectorName string
    MS Teams connector name
    ConnectorName string
    MS Teams connector name
    connectorName String
    MS Teams connector name
    connectorName string
    MS Teams connector name
    connector_name str
    MS Teams connector name
    connectorName String
    MS Teams connector name

    GetTeamNotificationRulePagerduty

    ServiceName string
    PagerDuty service name
    ServiceName string
    PagerDuty service name
    serviceName String
    PagerDuty service name
    serviceName string
    PagerDuty service name
    service_name str
    PagerDuty service name
    serviceName String
    PagerDuty service name

    GetTeamNotificationRuleSlack

    Channel string
    Slack channel for notifications
    Workspace string
    Slack workspace for notifications
    Channel string
    Slack channel for notifications
    Workspace string
    Slack workspace for notifications
    channel String
    Slack channel for notifications
    workspace String
    Slack workspace for notifications
    channel string
    Slack channel for notifications
    workspace string
    Slack workspace for notifications
    channel str
    Slack channel for notifications
    workspace str
    Slack workspace for notifications
    channel String
    Slack channel for notifications
    workspace String
    Slack workspace for notifications

    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.63.0 published on Thursday, Jan 22, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate