UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

76 lines (75 loc) 2.23 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription * * Uses Azure REST API version 2019-01-01-preview. */ export declare function getAlertsSuppressionRule(args: GetAlertsSuppressionRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertsSuppressionRuleResult>; export interface GetAlertsSuppressionRuleArgs { /** * The unique name of the suppression alert rule */ alertsSuppressionRuleName: string; } /** * Describes the suppression rule */ export interface GetAlertsSuppressionRuleResult { /** * Type of the alert to automatically suppress. For all alert types, use '*' */ readonly alertType: string; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Any comment regarding the rule */ readonly comment?: string; /** * Expiration date of the rule, if value is not provided or provided as null there will no expiration at all */ readonly expirationDateUtc?: string; /** * Resource Id */ readonly id: string; /** * The last time this rule was modified */ readonly lastModifiedUtc: string; /** * Resource name */ readonly name: string; /** * The reason for dismissing the alert */ readonly reason: string; /** * Possible states of the rule */ readonly state: string; /** * The suppression conditions */ readonly suppressionAlertsScope?: outputs.security.SuppressionAlertsScopeResponse; /** * Resource type */ readonly type: string; } /** * Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription * * Uses Azure REST API version 2019-01-01-preview. */ export declare function getAlertsSuppressionRuleOutput(args: GetAlertsSuppressionRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertsSuppressionRuleResult>; export interface GetAlertsSuppressionRuleOutputArgs { /** * The unique name of the suppression alert rule */ alertsSuppressionRuleName: pulumi.Input<string>; }