Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Azure Native

v1.42.0 published on Monday, Oct 25, 2021 by Pulumi

getActivityLogAlert

An Activity Log Alert rule resource. API Version: 2020-10-01.

Using getActivityLogAlert

function getActivityLogAlert(args: GetActivityLogAlertArgs, opts?: InvokeOptions): Promise<GetActivityLogAlertResult>
def get_activity_log_alert(activity_log_alert_name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetActivityLogAlertResult
func LookupActivityLogAlert(ctx *Context, args *LookupActivityLogAlertArgs, opts ...InvokeOption) (*LookupActivityLogAlertResult, error)

Note: This function is named LookupActivityLogAlert in the Go SDK.

public static class GetActivityLogAlert {
    public static Task<GetActivityLogAlertResult> InvokeAsync(GetActivityLogAlertArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ActivityLogAlertName string
The name of the Activity Log Alert rule.
ResourceGroupName string
The name of the resource group. The name is case insensitive.
ActivityLogAlertName string
The name of the Activity Log Alert rule.
ResourceGroupName string
The name of the resource group. The name is case insensitive.
activityLogAlertName string
The name of the Activity Log Alert rule.
resourceGroupName string
The name of the resource group. The name is case insensitive.
activity_log_alert_name str
The name of the Activity Log Alert rule.
resource_group_name str
The name of the resource group. The name is case insensitive.

getActivityLogAlert Result

The following output properties are available:

Actions Pulumi.AzureNative.Insights.Outputs.ActionListResponse
The actions that will activate when the condition is met.
Condition Pulumi.AzureNative.Insights.Outputs.AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
Id string
The resource Id.
Name string
The name of the resource.
Scopes List<string>
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
Type string
The type of the resource.
Description string
A description of this Activity Log Alert rule.
Enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
Location string
The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be ‘global’.
Tags Dictionary<string, string>
The tags of the resource.
Actions ActionListResponse
The actions that will activate when the condition is met.
Condition AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
Id string
The resource Id.
Name string
The name of the resource.
Scopes []string
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
Type string
The type of the resource.
Description string
A description of this Activity Log Alert rule.
Enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
Location string
The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be ‘global’.
Tags map[string]string
The tags of the resource.
actions ActionListResponse
The actions that will activate when the condition is met.
condition AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
id string
The resource Id.
name string
The name of the resource.
scopes string[]
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
type string
The type of the resource.
description string
A description of this Activity Log Alert rule.
enabled boolean
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location string
The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be ‘global’.
tags {[key: string]: string}
The tags of the resource.
actions ActionListResponse
The actions that will activate when the condition is met.
condition AlertRuleAllOfConditionResponse
The condition that will cause this alert to activate.
id str
The resource Id.
name str
The name of the resource.
scopes Sequence[str]
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
type str
The type of the resource.
description str
A description of this Activity Log Alert rule.
enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location str
The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be ‘global’.
tags Mapping[str, str]
The tags of the resource.

Supporting Types

ActionGroupResponse

ActionGroupId string
The resource ID of the Action Group. This cannot be null or empty.
WebhookProperties Dictionary<string, string>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
ActionGroupId string
The resource ID of the Action Group. This cannot be null or empty.
WebhookProperties map[string]string
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId string
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties {[key: string]: string}
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
action_group_id str
The resource ID of the Action Group. This cannot be null or empty.
webhook_properties Mapping[str, str]
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

ActionListResponse

ActionGroups []ActionGroupResponse
The list of the Action Groups.
actionGroups ActionGroupResponse[]
The list of the Action Groups.
action_groups Sequence[ActionGroupResponse]
The list of the Action Groups.

AlertRuleAllOfConditionResponse

AllOf []AlertRuleAnyOfOrLeafConditionResponse
The list of Activity Log Alert rule conditions.
allOf AlertRuleAnyOfOrLeafConditionResponse[]
The list of Activity Log Alert rule conditions.
all_of Sequence[AlertRuleAnyOfOrLeafConditionResponse]
The list of Activity Log Alert rule conditions.

AlertRuleAnyOfOrLeafConditionResponse

AnyOf List<Pulumi.AzureNative.Insights.Inputs.AlertRuleLeafConditionResponse>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
ContainsAny List<string>
The value of the event’s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event’s field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event’s field that this condition will examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties’.
AnyOf []AlertRuleLeafConditionResponse
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
ContainsAny []string
The value of the event’s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event’s field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event’s field that this condition will examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties’.
anyOf AlertRuleLeafConditionResponse[]
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny string[]
The value of the event’s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals string
The value of the event’s field will be compared to this value (case-insensitive) to determine if the condition is met.
field string
The name of the Activity Log event’s field that this condition will examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties’.
any_of Sequence[AlertRuleLeafConditionResponse]
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
contains_any Sequence[str]
The value of the event’s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals str
The value of the event’s field will be compared to this value (case-insensitive) to determine if the condition is met.
field str
The name of the Activity Log event’s field that this condition will examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties’.

AlertRuleLeafConditionResponse

ContainsAny List<string>
The value of the event’s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event’s field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event’s field that this condition will examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties’.
ContainsAny []string
The value of the event’s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event’s field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event’s field that this condition will examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties’.
containsAny string[]
The value of the event’s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals string
The value of the event’s field will be compared to this value (case-insensitive) to determine if the condition is met.
field string
The name of the Activity Log event’s field that this condition will examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties’.
contains_any Sequence[str]
The value of the event’s field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals str
The value of the event’s field will be compared to this value (case-insensitive) to determine if the condition is met.
field str
The name of the Activity Log event’s field that this condition will examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties’.

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0