AlertOperationsExtensions.ListRulesAsync Method (IAlertOperations, String, String)
List the alert rules within a resource group.
Namespace: Microsoft.Azure.Management.Insights
Assembly: Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)
Syntax
public static Task<RuleListResponse> ListRulesAsync(
this IAlertOperations operations,
string resourceGroupName,
string targetResourceUri
)
public:
[ExtensionAttribute]
static Task<RuleListResponse^>^ ListRulesAsync(
IAlertOperations^ operations,
String^ resourceGroupName,
String^ targetResourceUri
)
static member ListRulesAsync :
operations:IAlertOperations *
resourceGroupName:string *
targetResourceUri:string -> Task<RuleListResponse>
<ExtensionAttribute>
Public Shared Function ListRulesAsync (
operations As IAlertOperations,
resourceGroupName As String,
targetResourceUri As String
) As Task(Of RuleListResponse)
Parameters
operations
Type: Microsoft.Azure.Management.Insights.IAlertOperationsReference to the Microsoft.Azure.Management.Insights.IAlertOperations.
resourceGroupName
Type: System.StringRequired. The name of the resource group.
targetResourceUri
Type: System.StringRequired. The resource identifier of the target of the alert rule.
Return Value
Type: System.Threading.Tasks.Task<RuleListResponse>
The List Rules operation response.
See Also
AlertOperationsExtensions Class
Microsoft.Azure.Management.Insights Namespace
Return to top