AlertOperationsExtensions.ListRules Method (IAlertOperations, String, String)
List the alert rules within a resource group.
Assembly: Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)
public static RuleListResponse ListRules( this IAlertOperations operations, string resourceGroupName, string targetResourceUri )
Parameters
- operations
-
Type:
Microsoft.Azure.Management.Insights.IAlertOperations
Reference to the Microsoft.Azure.Management.Insights.IAlertOperations.
- resourceGroupName
-
Type:
System.String
Required. The name of the resource group.
- targetResourceUri
-
Type:
System.String
Required. The resource identifier of the target of the alert rule.
Return Value
Type: Microsoft.Azure.Management.Insights.Models.RuleListResponseThe List Rules operation response.
Show: