SecurityAlertsSuppressionRuleCollection.CreateOrUpdate Method

Definition

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}
  • Operation Id: AlertsSuppressionRules_Update
  • Default Api Version: 2019-01-01-preview
  • Resource: SecurityAlertsSuppressionRuleResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityAlertsSuppressionRuleResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string alertsSuppressionRuleName, Azure.ResourceManager.SecurityCenter.SecurityAlertsSuppressionRuleData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.SecurityAlertsSuppressionRuleData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityAlertsSuppressionRuleResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.SecurityAlertsSuppressionRuleData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityAlertsSuppressionRuleResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, alertsSuppressionRuleName As String, data As SecurityAlertsSuppressionRuleData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SecurityAlertsSuppressionRuleResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

alertsSuppressionRuleName
String

The unique name of the suppression alert rule.

data
SecurityAlertsSuppressionRuleData

Suppression rule object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

alertsSuppressionRuleName is an empty string, and was expected to be non-empty.

alertsSuppressionRuleName or data is null.

Applies to