azure-native.securityinsights.getAlertRule
Deprecated:
Please use one of the variants: FusionAlertRule, MicrosoftSecurityIncidentCreationAlertRule, ScheduledAlertRule.
Gets the alert rule. API Version: 2020-01-01.
Using getAlertRule
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 getAlertRule(args: GetAlertRuleArgs, opts?: InvokeOptions): Promise<GetAlertRuleResult>
function getAlertRuleOutput(args: GetAlertRuleOutputArgs, opts?: InvokeOptions): Output<GetAlertRuleResult>
def get_alert_rule(resource_group_name: Optional[str] = None,
rule_id: Optional[str] = None,
workspace_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlertRuleResult
def get_alert_rule_output(resource_group_name: Optional[pulumi.Input[str]] = None,
rule_id: Optional[pulumi.Input[str]] = None,
workspace_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlertRuleResult]
func LookupAlertRule(ctx *Context, args *LookupAlertRuleArgs, opts ...InvokeOption) (*LookupAlertRuleResult, error)
func LookupAlertRuleOutput(ctx *Context, args *LookupAlertRuleOutputArgs, opts ...InvokeOption) LookupAlertRuleResultOutput
> Note: This function is named LookupAlertRule
in the Go SDK.
public static class GetAlertRule
{
public static Task<GetAlertRuleResult> InvokeAsync(GetAlertRuleArgs args, InvokeOptions? opts = null)
public static Output<GetAlertRuleResult> Invoke(GetAlertRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlertRuleResult> getAlertRule(GetAlertRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:securityinsights:getAlertRule
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Group stringName The name of the resource group within the user's subscription. The name is case insensitive.
- Rule
Id string Alert rule ID
- Workspace
Name string The name of the workspace.
- Resource
Group stringName The name of the resource group within the user's subscription. The name is case insensitive.
- Rule
Id string Alert rule ID
- Workspace
Name string The name of the workspace.
- resource
Group StringName The name of the resource group within the user's subscription. The name is case insensitive.
- rule
Id String Alert rule ID
- workspace
Name String The name of the workspace.
- resource
Group stringName The name of the resource group within the user's subscription. The name is case insensitive.
- rule
Id string Alert rule ID
- workspace
Name string The name of the workspace.
- resource_
group_ strname The name of the resource group within the user's subscription. The name is case insensitive.
- rule_
id str Alert rule ID
- workspace_
name str The name of the workspace.
- resource
Group StringName The name of the resource group within the user's subscription. The name is case insensitive.
- rule
Id String Alert rule ID
- workspace
Name String The name of the workspace.
getAlertRule Result
The following output properties are available:
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0