Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 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 dictionaryThe following arguments are supported:
- Team
Id string - The team ID to fetch notification rules for.
- Notification
Rules List<GetTeam Notification Rules Notification Rule> - List of notification rules for the team.
- Team
Id string - The team ID to fetch notification rules for.
- Notification
Rules []GetTeam Notification Rules Notification Rule - List of notification rules for the team.
- team
Id String - The team ID to fetch notification rules for.
- notification
Rules List<GetTeam Notification Rules Notification Rule> - List of notification rules for the team.
- team
Id string - The team ID to fetch notification rules for.
- notification
Rules GetTeam Notification Rules Notification Rule[] - List of notification rules for the team.
- team_
id str - The team ID to fetch notification rules for.
- notification_
rules Sequence[GetTeam Notification Rules Notification Rule] - List of notification rules for the team.
- team
Id String - The team ID to fetch notification rules for.
- notification
Rules 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.
- Team
Id string - The team ID to fetch notification rules for.
- Notification
Rules List<GetTeam Notification Rules Notification Rule> - List of notification rules for the team.
- Id string
- The ID of this resource.
- Team
Id string - The team ID to fetch notification rules for.
- Notification
Rules []GetTeam Notification Rules Notification Rule - List of notification rules for the team.
- id String
- The ID of this resource.
- team
Id String - The team ID to fetch notification rules for.
- notification
Rules List<GetTeam Notification Rules Notification Rule> - List of notification rules for the team.
- id string
- The ID of this resource.
- team
Id string - The team ID to fetch notification rules for.
- notification
Rules GetTeam Notification Rules Notification Rule[] - 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[GetTeam Notification Rules Notification Rule] - List of notification rules for the team.
- id String
- The ID of this resource.
- team
Id String - The team ID to fetch notification rules for.
- notification
Rules List<Property Map> - List of notification rules for the team.
Supporting Types
GetTeamNotificationRulesNotificationRule
- Id string
- The ID of the notification rule.
- Email
Get
Team Notification Rules Notification Rule Email - The email notification settings.
- Ms
Teams GetTeam Notification Rules Notification Rule Ms Teams - The MS Teams notification settings.
- Pagerduty
Get
Team Notification Rules Notification Rule Pagerduty - The PagerDuty notification settings.
- Slack
Get
Team Notification Rules Notification Rule Slack - The Slack notification settings.
- Id string
- The ID of the notification rule.
- Email
Get
Team Notification Rules Notification Rule Email - The email notification settings.
- Ms
Teams GetTeam Notification Rules Notification Rule Ms Teams - The MS Teams notification settings.
- Pagerduty
Get
Team Notification Rules Notification Rule Pagerduty - The PagerDuty notification settings.
- Slack
Get
Team Notification Rules Notification Rule Slack - The Slack notification settings.
- id String
- The ID of the notification rule.
- email
Get
Team Notification Rules Notification Rule Email - The email notification settings.
- ms
Teams GetTeam Notification Rules Notification Rule Ms Teams - The MS Teams notification settings.
- pagerduty
Get
Team Notification Rules Notification Rule Pagerduty - The PagerDuty notification settings.
- slack
Get
Team Notification Rules Notification Rule Slack - The Slack notification settings.
- id string
- The ID of the notification rule.
- email
Get
Team Notification Rules Notification Rule Email - The email notification settings.
- ms
Teams GetTeam Notification Rules Notification Rule Ms Teams - The MS Teams notification settings.
- pagerduty
Get
Team Notification Rules Notification Rule Pagerduty - The PagerDuty notification settings.
- slack
Get
Team Notification Rules Notification Rule Slack - The Slack notification settings.
- id str
- The ID of the notification rule.
- email
Get
Team Notification Rules Notification Rule Email - The email notification settings.
- ms_
teams GetTeam Notification Rules Notification Rule Ms Teams - The MS Teams notification settings.
- pagerduty
Get
Team Notification Rules Notification Rule Pagerduty - The PagerDuty notification settings.
- slack
Get
Team Notification Rules Notification Rule Slack - The Slack notification settings.
- id String
- The ID of the notification rule.
- email Property Map
- The email notification settings.
- ms
Teams 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
- Connector
Name string - MS Teams connector name.
- Connector
Name string - MS Teams connector name.
- connector
Name String - MS Teams connector name.
- connector
Name string - MS Teams connector name.
- connector_
name str - MS Teams connector name.
- connector
Name String - MS Teams connector name.
GetTeamNotificationRulesNotificationRulePagerduty
- Service
Name string - PagerDuty service name.
- Service
Name string - PagerDuty service name.
- service
Name String - PagerDuty service name.
- service
Name string - PagerDuty service name.
- service_
name str - PagerDuty service name.
- service
Name String - PagerDuty service name.
GetTeamNotificationRulesNotificationRuleSlack
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
