ArmSecurityCenterModelFactory.SecurityContactData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.SecurityCenter.SecurityContactData SecurityContactData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string emails = default, string phone = default, bool? isEnabled = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.NotificationsSource> notificationsSources = default, Azure.ResourceManager.SecurityCenter.Models.SecurityContactPropertiesNotificationsByRole notificationsByRole = default);
static member SecurityContactData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * Nullable<bool> * seq<Azure.ResourceManager.SecurityCenter.Models.NotificationsSource> * Azure.ResourceManager.SecurityCenter.Models.SecurityContactPropertiesNotificationsByRole -> Azure.ResourceManager.SecurityCenter.SecurityContactData
Public Shared Function SecurityContactData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional emails As String = Nothing, Optional phone As String = Nothing, Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional notificationsSources As IEnumerable(Of NotificationsSource) = Nothing, Optional notificationsByRole As SecurityContactPropertiesNotificationsByRole = Nothing) As SecurityContactData
Parameters
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- emails
- String
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
- phone
- String
The security contact's phone number.
- notificationsSources
- IEnumerable<NotificationsSource>
A collection of sources types which evaluate the email notification.
- notificationsByRole
- SecurityContactPropertiesNotificationsByRole
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
Returns
A new SecurityContactData instance for mocking.