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:

ResourceGroupName string

The name of the resource group within the user's subscription. The name is case insensitive.

RuleId string

Alert rule ID

WorkspaceName string

The name of the workspace.

ResourceGroupName string

The name of the resource group within the user's subscription. The name is case insensitive.

RuleId string

Alert rule ID

WorkspaceName string

The name of the workspace.

resourceGroupName String

The name of the resource group within the user's subscription. The name is case insensitive.

ruleId String

Alert rule ID

workspaceName String

The name of the workspace.

resourceGroupName string

The name of the resource group within the user's subscription. The name is case insensitive.

ruleId string

Alert rule ID

workspaceName string

The name of the workspace.

resource_group_name str

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.

resourceGroupName String

The name of the resource group within the user's subscription. The name is case insensitive.

ruleId String

Alert rule ID

workspaceName String

The name of the workspace.

getAlertRule Result

The following output properties are available:

Id string

Azure resource Id

Kind string

The alert rule kind

Name string

Azure resource name

Type string

Azure resource type

Etag string

Etag of the azure resource

Id string

Azure resource Id

Kind string

The alert rule kind

Name string

Azure resource name

Type string

Azure resource type

Etag string

Etag of the azure resource

id String

Azure resource Id

kind String

The alert rule kind

name String

Azure resource name

type String

Azure resource type

etag String

Etag of the azure resource

id string

Azure resource Id

kind string

The alert rule kind

name string

Azure resource name

type string

Azure resource type

etag string

Etag of the azure resource

id str

Azure resource Id

kind str

The alert rule kind

name str

Azure resource name

type str

Azure resource type

etag str

Etag of the azure resource

id String

Azure resource Id

kind String

The alert rule kind

name String

Azure resource name

type String

Azure resource type

etag String

Etag of the azure resource

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0