Sdílet prostřednictvím


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

  • 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: System.Threading.Tasks.Task<RuleListResponse>

The List Rules operation response.

See Also

AlertOperationsExtensions Class
Microsoft.Azure.Management.Insights Namespace

Return to top