import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing Sentinel Alert Rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.operationalinsights.getAnalyticsWorkspace({ * name: "example", * resourceGroupName: "example-resources", * }); * const exampleGetAlertRule = example.then(example => azure.sentinel.getAlertRule({ * name: "existing", * logAnalyticsWorkspaceId: example.id, * })); * export const id = exampleGetAlertRule.then(exampleGetAlertRule => exampleGetAlertRule.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.OperationalInsights` - 2023-12-01-preview */ export declare function getAlertRule(args: GetAlertRuleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAlertRule. */ export interface GetAlertRuleArgs { /** * The ID of the Log Analytics Workspace this Sentinel Alert Rule belongs to. */ logAnalyticsWorkspaceId: string; /** * The name which should be used for this Sentinel Alert Rule. */ name: string; } /** * A collection of values returned by getAlertRule. */ export interface GetAlertRuleResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly logAnalyticsWorkspaceId: string; readonly name: string; } /** * Use this data source to access information about an existing Sentinel Alert Rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.operationalinsights.getAnalyticsWorkspace({ * name: "example", * resourceGroupName: "example-resources", * }); * const exampleGetAlertRule = example.then(example => azure.sentinel.getAlertRule({ * name: "existing", * logAnalyticsWorkspaceId: example.id, * })); * export const id = exampleGetAlertRule.then(exampleGetAlertRule => exampleGetAlertRule.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.OperationalInsights` - 2023-12-01-preview */ export declare function getAlertRuleOutput(args: GetAlertRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAlertRule. */ export interface GetAlertRuleOutputArgs { /** * The ID of the Log Analytics Workspace this Sentinel Alert Rule belongs to. */ logAnalyticsWorkspaceId: pulumi.Input; /** * The name which should be used for this Sentinel Alert Rule. */ name: pulumi.Input; }