你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AlertsSuppressionRulesOperationsExtensions.UpdateAsync Method

Definition

Update existing rule or create new rule if it doesn't exist

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.AlertsSuppressionRule> UpdateAsync (this Microsoft.Azure.Management.Security.IAlertsSuppressionRulesOperations operations, string alertsSuppressionRuleName, Microsoft.Azure.Management.Security.Models.AlertsSuppressionRule alertsSuppressionRule, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Management.Security.IAlertsSuppressionRulesOperations * string * Microsoft.Azure.Management.Security.Models.AlertsSuppressionRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.AlertsSuppressionRule>
<Extension()>
Public Function UpdateAsync (operations As IAlertsSuppressionRulesOperations, alertsSuppressionRuleName As String, alertsSuppressionRule As AlertsSuppressionRule, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AlertsSuppressionRule)

Parameters

operations
IAlertsSuppressionRulesOperations

The operations group for this extension method.

alertsSuppressionRuleName
String

The unique name of the suppression alert rule

alertsSuppressionRule
AlertsSuppressionRule
cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to