IAlertOperations.ListRulesAsync Method (String, String, CancellationToken)
List the alert rules within a resource group.
Namespace: Microsoft.Azure.Management.Insights
Assembly: Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)
Syntax
Task<RuleListResponse> ListRulesAsync(
string resourceGroupName,
string targetResourceUri,
CancellationToken cancellationToken
)
Task<RuleListResponse^>^ ListRulesAsync(
String^ resourceGroupName,
String^ targetResourceUri,
CancellationToken cancellationToken
)
abstract ListRulesAsync :
resourceGroupName:string *
targetResourceUri:string *
cancellationToken:CancellationToken -> Task<RuleListResponse>
Function ListRulesAsync (
resourceGroupName As String,
targetResourceUri As String,
cancellationToken As CancellationToken
) As Task(Of RuleListResponse)
Parameters
resourceGroupName
Type: System.StringThe name of the resource group.
targetResourceUri
Type: System.StringThe resource identifier of the target of the alert rule.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<RuleListResponse>
The List Rules operation response.
See Also
IAlertOperations Interface
Microsoft.Azure.Management.Insights Namespace
Return to top