1. Packages
  2. Datadog Provider
  3. API Docs
  4. getTeamNotificationRules
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 all Datadog team notification rules for a specific team.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Get all notification rules for a team
    const example = datadog.getTeamNotificationRules({
        teamId: "00000000-0000-0000-0000-000000000000",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Get all notification rules for a team
    example = datadog.get_team_notification_rules(team_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 {
    		// Get all notification rules for a team
    		_, err := datadog.GetTeamNotificationRules(ctx, &datadog.GetTeamNotificationRulesArgs{
    			TeamId: "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(() => 
    {
        // Get all notification rules for a team
        var example = Datadog.GetTeamNotificationRules.Invoke(new()
        {
            TeamId = "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.GetTeamNotificationRulesArgs;
    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 all notification rules for a team
            final var example = DatadogFunctions.getTeamNotificationRules(GetTeamNotificationRulesArgs.builder()
                .teamId("00000000-0000-0000-0000-000000000000")
                .build());
    
        }
    }
    
    variables:
      # Get all notification rules for a team
      example:
        fn::invoke:
          function: datadog:getTeamNotificationRules
          arguments:
            teamId: 00000000-0000-0000-0000-000000000000
    

    Using getTeamNotificationRules

    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 getTeamNotificationRules(args: GetTeamNotificationRulesArgs, opts?: InvokeOptions): Promise<GetTeamNotificationRulesResult>
    function getTeamNotificationRulesOutput(args: GetTeamNotificationRulesOutputArgs, opts?: InvokeOptions): Output<GetTeamNotificationRulesResult>
    def get_team_notification_rules(notification_rules: Optional[Sequence[GetTeamNotificationRulesNotificationRule]] = None,
                                    team_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetTeamNotificationRulesResult
    def get_team_notification_rules_output(notification_rules: Optional[pulumi.Input[Sequence[pulumi.Input[GetTeamNotificationRulesNotificationRuleArgs]]]] = None,
                                    team_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetTeamNotificationRulesResult]
    func GetTeamNotificationRules(ctx *Context, args *GetTeamNotificationRulesArgs, opts ...InvokeOption) (*GetTeamNotificationRulesResult, error)
    func GetTeamNotificationRulesOutput(ctx *Context, args *GetTeamNotificationRulesOutputArgs, opts ...InvokeOption) GetTeamNotificationRulesResultOutput

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

    public static class GetTeamNotificationRules 
    {
        public static Task<GetTeamNotificationRulesResult> InvokeAsync(GetTeamNotificationRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamNotificationRulesResult> Invoke(GetTeamNotificationRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeamNotificationRulesResult> getTeamNotificationRules(GetTeamNotificationRulesArgs args, InvokeOptions options)
    public static Output<GetTeamNotificationRulesResult> getTeamNotificationRules(GetTeamNotificationRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getTeamNotificationRules:getTeamNotificationRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TeamId string
    The team ID to fetch notification rules for.
    NotificationRules List<GetTeamNotificationRulesNotificationRule>
    List of notification rules for the team.
    TeamId string
    The team ID to fetch notification rules for.
    NotificationRules []GetTeamNotificationRulesNotificationRule
    List of notification rules for the team.
    teamId String
    The team ID to fetch notification rules for.
    notificationRules List<GetTeamNotificationRulesNotificationRule>
    List of notification rules for the team.
    teamId string
    The team ID to fetch notification rules for.
    notificationRules GetTeamNotificationRulesNotificationRule[]
    List of notification rules for the team.
    team_id str
    The team ID to fetch notification rules for.
    notification_rules Sequence[GetTeamNotificationRulesNotificationRule]
    List of notification rules for the team.
    teamId String
    The team ID to fetch notification rules for.
    notificationRules List<Property Map>
    List of notification rules for the team.

    getTeamNotificationRules Result

    The following output properties are available:

    Id string
    The ID of this resource.
    TeamId string
    The team ID to fetch notification rules for.
    NotificationRules List<GetTeamNotificationRulesNotificationRule>
    List of notification rules for the team.
    Id string
    The ID of this resource.
    TeamId string
    The team ID to fetch notification rules for.
    NotificationRules []GetTeamNotificationRulesNotificationRule
    List of notification rules for the team.
    id String
    The ID of this resource.
    teamId String
    The team ID to fetch notification rules for.
    notificationRules List<GetTeamNotificationRulesNotificationRule>
    List of notification rules for the team.
    id string
    The ID of this resource.
    teamId string
    The team ID to fetch notification rules for.
    notificationRules GetTeamNotificationRulesNotificationRule[]
    List of notification rules for the team.
    id str
    The ID of this resource.
    team_id str
    The team ID to fetch notification rules for.
    notification_rules Sequence[GetTeamNotificationRulesNotificationRule]
    List of notification rules for the team.
    id String
    The ID of this resource.
    teamId String
    The team ID to fetch notification rules for.
    notificationRules List<Property Map>
    List of notification rules for the team.

    Supporting Types

    GetTeamNotificationRulesNotificationRule

    Id string
    The ID of the notification rule.
    Email GetTeamNotificationRulesNotificationRuleEmail
    The email notification settings.
    MsTeams GetTeamNotificationRulesNotificationRuleMsTeams
    The MS Teams notification settings.
    Pagerduty GetTeamNotificationRulesNotificationRulePagerduty
    The PagerDuty notification settings.
    Slack GetTeamNotificationRulesNotificationRuleSlack
    The Slack notification settings.
    Id string
    The ID of the notification rule.
    Email GetTeamNotificationRulesNotificationRuleEmail
    The email notification settings.
    MsTeams GetTeamNotificationRulesNotificationRuleMsTeams
    The MS Teams notification settings.
    Pagerduty GetTeamNotificationRulesNotificationRulePagerduty
    The PagerDuty notification settings.
    Slack GetTeamNotificationRulesNotificationRuleSlack
    The Slack notification settings.
    id String
    The ID of the notification rule.
    email GetTeamNotificationRulesNotificationRuleEmail
    The email notification settings.
    msTeams GetTeamNotificationRulesNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulesNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRulesNotificationRuleSlack
    The Slack notification settings.
    id string
    The ID of the notification rule.
    email GetTeamNotificationRulesNotificationRuleEmail
    The email notification settings.
    msTeams GetTeamNotificationRulesNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulesNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRulesNotificationRuleSlack
    The Slack notification settings.
    id str
    The ID of the notification rule.
    email GetTeamNotificationRulesNotificationRuleEmail
    The email notification settings.
    ms_teams GetTeamNotificationRulesNotificationRuleMsTeams
    The MS Teams notification settings.
    pagerduty GetTeamNotificationRulesNotificationRulePagerduty
    The PagerDuty notification settings.
    slack GetTeamNotificationRulesNotificationRuleSlack
    The Slack notification settings.
    id String
    The ID of the notification rule.
    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.

    GetTeamNotificationRulesNotificationRuleEmail

    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.

    GetTeamNotificationRulesNotificationRuleMsTeams

    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.

    GetTeamNotificationRulesNotificationRulePagerduty

    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.

    GetTeamNotificationRulesNotificationRuleSlack

    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