1. Packages
  2. Azure Native
  3. API Docs
  4. alertsmanagement
  5. getAlertProcessingRuleByName
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.alertsmanagement.getAlertProcessingRuleByName

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    Get an alert processing rule by name. Azure REST API version: 2021-08-08.

    Other available API versions: 2023-05-01-preview, 2024-03-01-preview.

    Using getAlertProcessingRuleByName

    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 getAlertProcessingRuleByName(args: GetAlertProcessingRuleByNameArgs, opts?: InvokeOptions): Promise<GetAlertProcessingRuleByNameResult>
    function getAlertProcessingRuleByNameOutput(args: GetAlertProcessingRuleByNameOutputArgs, opts?: InvokeOptions): Output<GetAlertProcessingRuleByNameResult>
    def get_alert_processing_rule_by_name(alert_processing_rule_name: Optional[str] = None,
                                          resource_group_name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetAlertProcessingRuleByNameResult
    def get_alert_processing_rule_by_name_output(alert_processing_rule_name: Optional[pulumi.Input[str]] = None,
                                          resource_group_name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetAlertProcessingRuleByNameResult]
    func LookupAlertProcessingRuleByName(ctx *Context, args *LookupAlertProcessingRuleByNameArgs, opts ...InvokeOption) (*LookupAlertProcessingRuleByNameResult, error)
    func LookupAlertProcessingRuleByNameOutput(ctx *Context, args *LookupAlertProcessingRuleByNameOutputArgs, opts ...InvokeOption) LookupAlertProcessingRuleByNameResultOutput

    > Note: This function is named LookupAlertProcessingRuleByName in the Go SDK.

    public static class GetAlertProcessingRuleByName 
    {
        public static Task<GetAlertProcessingRuleByNameResult> InvokeAsync(GetAlertProcessingRuleByNameArgs args, InvokeOptions? opts = null)
        public static Output<GetAlertProcessingRuleByNameResult> Invoke(GetAlertProcessingRuleByNameInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlertProcessingRuleByNameResult> getAlertProcessingRuleByName(GetAlertProcessingRuleByNameArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:alertsmanagement:getAlertProcessingRuleByName
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AlertProcessingRuleName string
    The name of the alert processing rule that needs to be fetched.
    ResourceGroupName string
    Resource group name where the resource is created.
    AlertProcessingRuleName string
    The name of the alert processing rule that needs to be fetched.
    ResourceGroupName string
    Resource group name where the resource is created.
    alertProcessingRuleName String
    The name of the alert processing rule that needs to be fetched.
    resourceGroupName String
    Resource group name where the resource is created.
    alertProcessingRuleName string
    The name of the alert processing rule that needs to be fetched.
    resourceGroupName string
    Resource group name where the resource is created.
    alert_processing_rule_name str
    The name of the alert processing rule that needs to be fetched.
    resource_group_name str
    Resource group name where the resource is created.
    alertProcessingRuleName String
    The name of the alert processing rule that needs to be fetched.
    resourceGroupName String
    Resource group name where the resource is created.

    getAlertProcessingRuleByName Result

    The following output properties are available:

    Id string
    Azure resource Id
    Location string
    Resource location
    Name string
    Azure resource name
    Properties Pulumi.AzureNative.AlertsManagement.Outputs.AlertProcessingRulePropertiesResponse
    Alert processing rule properties.
    SystemData Pulumi.AzureNative.AlertsManagement.Outputs.SystemDataResponse
    Alert processing rule system data.
    Type string
    Azure resource type
    Tags Dictionary<string, string>
    Resource tags
    Id string
    Azure resource Id
    Location string
    Resource location
    Name string
    Azure resource name
    Properties AlertProcessingRulePropertiesResponse
    Alert processing rule properties.
    SystemData SystemDataResponse
    Alert processing rule system data.
    Type string
    Azure resource type
    Tags map[string]string
    Resource tags
    id String
    Azure resource Id
    location String
    Resource location
    name String
    Azure resource name
    properties AlertProcessingRulePropertiesResponse
    Alert processing rule properties.
    systemData SystemDataResponse
    Alert processing rule system data.
    type String
    Azure resource type
    tags Map<String,String>
    Resource tags
    id string
    Azure resource Id
    location string
    Resource location
    name string
    Azure resource name
    properties AlertProcessingRulePropertiesResponse
    Alert processing rule properties.
    systemData SystemDataResponse
    Alert processing rule system data.
    type string
    Azure resource type
    tags {[key: string]: string}
    Resource tags
    id str
    Azure resource Id
    location str
    Resource location
    name str
    Azure resource name
    properties AlertProcessingRulePropertiesResponse
    Alert processing rule properties.
    system_data SystemDataResponse
    Alert processing rule system data.
    type str
    Azure resource type
    tags Mapping[str, str]
    Resource tags
    id String
    Azure resource Id
    location String
    Resource location
    name String
    Azure resource name
    properties Property Map
    Alert processing rule properties.
    systemData Property Map
    Alert processing rule system data.
    type String
    Azure resource type
    tags Map<String>
    Resource tags

    Supporting Types

    AddActionGroupsResponse

    ActionGroupIds List<string>
    List of action group Ids to add to alert processing rule.
    ActionGroupIds []string
    List of action group Ids to add to alert processing rule.
    actionGroupIds List<String>
    List of action group Ids to add to alert processing rule.
    actionGroupIds string[]
    List of action group Ids to add to alert processing rule.
    action_group_ids Sequence[str]
    List of action group Ids to add to alert processing rule.
    actionGroupIds List<String>
    List of action group Ids to add to alert processing rule.

    AlertProcessingRulePropertiesResponse

    Actions List<Union<Pulumi.AzureNative.AlertsManagement.Inputs.AddActionGroupsResponse, Pulumi.AzureNative.AlertsManagement.Inputs.RemoveAllActionGroupsResponse>>
    Actions to be applied.
    Scopes List<string>
    Scopes on which alert processing rule will apply.
    Conditions List<Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse>
    Conditions on which alerts will be filtered.
    Description string
    Description of alert processing rule.
    Enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    Schedule Pulumi.AzureNative.AlertsManagement.Inputs.ScheduleResponse
    Scheduling for alert processing rule.
    Actions []interface{}
    Actions to be applied.
    Scopes []string
    Scopes on which alert processing rule will apply.
    Conditions []ConditionResponse
    Conditions on which alerts will be filtered.
    Description string
    Description of alert processing rule.
    Enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    Schedule ScheduleResponse
    Scheduling for alert processing rule.
    actions List<Either<AddActionGroupsResponse,RemoveAllActionGroupsResponse>>
    Actions to be applied.
    scopes List<String>
    Scopes on which alert processing rule will apply.
    conditions List<ConditionResponse>
    Conditions on which alerts will be filtered.
    description String
    Description of alert processing rule.
    enabled Boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule ScheduleResponse
    Scheduling for alert processing rule.
    actions (AddActionGroupsResponse | RemoveAllActionGroupsResponse)[]
    Actions to be applied.
    scopes string[]
    Scopes on which alert processing rule will apply.
    conditions ConditionResponse[]
    Conditions on which alerts will be filtered.
    description string
    Description of alert processing rule.
    enabled boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule ScheduleResponse
    Scheduling for alert processing rule.
    actions Sequence[Union[AddActionGroupsResponse, RemoveAllActionGroupsResponse]]
    Actions to be applied.
    scopes Sequence[str]
    Scopes on which alert processing rule will apply.
    conditions Sequence[ConditionResponse]
    Conditions on which alerts will be filtered.
    description str
    Description of alert processing rule.
    enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    schedule ScheduleResponse
    Scheduling for alert processing rule.
    actions List<Property Map | Property Map>
    Actions to be applied.
    scopes List<String>
    Scopes on which alert processing rule will apply.
    conditions List<Property Map>
    Conditions on which alerts will be filtered.
    description String
    Description of alert processing rule.
    enabled Boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule Property Map
    Scheduling for alert processing rule.

    ConditionResponse

    Field string
    Field for a given condition.
    Operator string
    Operator for a given condition.
    Values List<string>
    List of values to match for a given condition.
    Field string
    Field for a given condition.
    Operator string
    Operator for a given condition.
    Values []string
    List of values to match for a given condition.
    field String
    Field for a given condition.
    operator String
    Operator for a given condition.
    values List<String>
    List of values to match for a given condition.
    field string
    Field for a given condition.
    operator string
    Operator for a given condition.
    values string[]
    List of values to match for a given condition.
    field str
    Field for a given condition.
    operator str
    Operator for a given condition.
    values Sequence[str]
    List of values to match for a given condition.
    field String
    Field for a given condition.
    operator String
    Operator for a given condition.
    values List<String>
    List of values to match for a given condition.

    DailyRecurrenceResponse

    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    MonthlyRecurrenceResponse

    DaysOfMonth List<int>
    Specifies the values for monthly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    DaysOfMonth []int
    Specifies the values for monthly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    daysOfMonth List<Integer>
    Specifies the values for monthly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    daysOfMonth number[]
    Specifies the values for monthly recurrence pattern.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    days_of_month Sequence[int]
    Specifies the values for monthly recurrence pattern.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    daysOfMonth List<Number>
    Specifies the values for monthly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    RemoveAllActionGroupsResponse

    ScheduleResponse

    EffectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    EffectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    Recurrences List<object>
    List of recurrences.
    TimeZone string
    Scheduling time zone.
    EffectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    EffectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    Recurrences []interface{}
    List of recurrences.
    TimeZone string
    Scheduling time zone.
    effectiveFrom String
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil String
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences List<Object>
    List of recurrences.
    timeZone String
    Scheduling time zone.
    effectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences (DailyRecurrenceResponse | MonthlyRecurrenceResponse | WeeklyRecurrenceResponse)[]
    List of recurrences.
    timeZone string
    Scheduling time zone.
    effective_from str
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effective_until str
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences Sequence[Union[DailyRecurrenceResponse, MonthlyRecurrenceResponse, WeeklyRecurrenceResponse]]
    List of recurrences.
    time_zone str
    Scheduling time zone.
    effectiveFrom String
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil String
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences List<Property Map | Property Map | Property Map>
    List of recurrences.
    timeZone String
    Scheduling time zone.

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    WeeklyRecurrenceResponse

    DaysOfWeek List<string>
    Specifies the values for weekly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    DaysOfWeek []string
    Specifies the values for weekly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    daysOfWeek List<String>
    Specifies the values for weekly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    daysOfWeek string[]
    Specifies the values for weekly recurrence pattern.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    days_of_week Sequence[str]
    Specifies the values for weekly recurrence pattern.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    daysOfWeek List<String>
    Specifies the values for weekly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi