Share via


ArmSecurityCenterModelFactory.SecurityAlertsSuppressionRuleData Method

Definition

Initializes a new instance of SecurityAlertsSuppressionRuleData.

public static Azure.ResourceManager.SecurityCenter.SecurityAlertsSuppressionRuleData SecurityAlertsSuppressionRuleData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string alertType = default, DateTimeOffset? lastModifiedOn = default, DateTimeOffset? expireOn = default, string reason = default, Azure.ResourceManager.SecurityCenter.Models.SecurityAlertsSuppressionRuleState? state = default, string comment = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.SuppressionAlertsScopeElement> suppressionAlertsScopeAllOf = default);
static member SecurityAlertsSuppressionRuleData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<Azure.ResourceManager.SecurityCenter.Models.SecurityAlertsSuppressionRuleState> * string * seq<Azure.ResourceManager.SecurityCenter.Models.SuppressionAlertsScopeElement> -> Azure.ResourceManager.SecurityCenter.SecurityAlertsSuppressionRuleData
Public Shared Function SecurityAlertsSuppressionRuleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional alertType As String = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional reason As String = Nothing, Optional state As Nullable(Of SecurityAlertsSuppressionRuleState) = Nothing, Optional comment As String = Nothing, Optional suppressionAlertsScopeAllOf As IEnumerable(Of SuppressionAlertsScopeElement) = Nothing) As SecurityAlertsSuppressionRuleData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

alertType
String

Type of the alert to automatically suppress. For all alert types, use '*'.

lastModifiedOn
Nullable<DateTimeOffset>

The last time this rule was modified.

expireOn
Nullable<DateTimeOffset>

Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.

reason
String

The reason for dismissing the alert.

state
Nullable<SecurityAlertsSuppressionRuleState>

Possible states of the rule.

comment
String

Any comment regarding the rule.

suppressionAlertsScopeAllOf
IEnumerable<SuppressionAlertsScopeElement>

The suppression conditions.

Returns

A new SecurityAlertsSuppressionRuleData instance for mocking.

Applies to