1. Packages
  2. Azure Native v2
  3. API Docs
  4. security
  5. getSecurityContact
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.security.getSecurityContact

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Get Default Security contact configurations for the subscription Azure REST API version: 2020-01-01-preview.

Other available API versions: 2017-08-01-preview, 2023-12-01-preview.

Using getSecurityContact

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSecurityContact(args: GetSecurityContactArgs, opts?: InvokeOptions): Promise<GetSecurityContactResult>
function getSecurityContactOutput(args: GetSecurityContactOutputArgs, opts?: InvokeOptions): Output<GetSecurityContactResult>
Copy
def get_security_contact(security_contact_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetSecurityContactResult
def get_security_contact_output(security_contact_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetSecurityContactResult]
Copy
func LookupSecurityContact(ctx *Context, args *LookupSecurityContactArgs, opts ...InvokeOption) (*LookupSecurityContactResult, error)
func LookupSecurityContactOutput(ctx *Context, args *LookupSecurityContactOutputArgs, opts ...InvokeOption) LookupSecurityContactResultOutput
Copy

> Note: This function is named LookupSecurityContact in the Go SDK.

public static class GetSecurityContact 
{
    public static Task<GetSecurityContactResult> InvokeAsync(GetSecurityContactArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityContactResult> Invoke(GetSecurityContactInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSecurityContactResult> getSecurityContact(GetSecurityContactArgs args, InvokeOptions options)
public static Output<GetSecurityContactResult> getSecurityContact(GetSecurityContactArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:security:getSecurityContact
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SecurityContactName
This property is required.
Changes to this property will trigger replacement.
string
Name of the security contact object
SecurityContactName
This property is required.
Changes to this property will trigger replacement.
string
Name of the security contact object
securityContactName
This property is required.
Changes to this property will trigger replacement.
String
Name of the security contact object
securityContactName
This property is required.
Changes to this property will trigger replacement.
string
Name of the security contact object
security_contact_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the security contact object
securityContactName
This property is required.
Changes to this property will trigger replacement.
String
Name of the security contact object

getSecurityContact Result

The following output properties are available:

Id string
Resource Id
Name string
Resource name
Type string
Resource type
AlertNotifications Pulumi.AzureNative.Security.Outputs.SecurityContactPropertiesResponseAlertNotifications
Defines whether to send email notifications about new security alerts
Emails string
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
NotificationsByRole Pulumi.AzureNative.Security.Outputs.SecurityContactPropertiesResponseNotificationsByRole
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
Phone string
The security contact's phone number
Id string
Resource Id
Name string
Resource name
Type string
Resource type
AlertNotifications SecurityContactPropertiesResponseAlertNotifications
Defines whether to send email notifications about new security alerts
Emails string
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
NotificationsByRole SecurityContactPropertiesResponseNotificationsByRole
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
Phone string
The security contact's phone number
id String
Resource Id
name String
Resource name
type String
Resource type
alertNotifications SecurityContactPropertiesResponseAlertNotifications
Defines whether to send email notifications about new security alerts
emails String
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
notificationsByRole SecurityContactPropertiesResponseNotificationsByRole
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
phone String
The security contact's phone number
id string
Resource Id
name string
Resource name
type string
Resource type
alertNotifications SecurityContactPropertiesResponseAlertNotifications
Defines whether to send email notifications about new security alerts
emails string
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
notificationsByRole SecurityContactPropertiesResponseNotificationsByRole
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
phone string
The security contact's phone number
id str
Resource Id
name str
Resource name
type str
Resource type
alert_notifications SecurityContactPropertiesResponseAlertNotifications
Defines whether to send email notifications about new security alerts
emails str
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
notifications_by_role SecurityContactPropertiesResponseNotificationsByRole
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
phone str
The security contact's phone number
id String
Resource Id
name String
Resource name
type String
Resource type
alertNotifications Property Map
Defines whether to send email notifications about new security alerts
emails String
List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
notificationsByRole Property Map
Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
phone String
The security contact's phone number

Supporting Types

SecurityContactPropertiesResponseAlertNotifications

MinimalSeverity string
Defines the minimal alert severity which will be sent as email notifications
State string
Defines if email notifications will be sent about new security alerts
MinimalSeverity string
Defines the minimal alert severity which will be sent as email notifications
State string
Defines if email notifications will be sent about new security alerts
minimalSeverity String
Defines the minimal alert severity which will be sent as email notifications
state String
Defines if email notifications will be sent about new security alerts
minimalSeverity string
Defines the minimal alert severity which will be sent as email notifications
state string
Defines if email notifications will be sent about new security alerts
minimal_severity str
Defines the minimal alert severity which will be sent as email notifications
state str
Defines if email notifications will be sent about new security alerts
minimalSeverity String
Defines the minimal alert severity which will be sent as email notifications
state String
Defines if email notifications will be sent about new security alerts

SecurityContactPropertiesResponseNotificationsByRole

Roles List<string>
Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:
State string
Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.
Roles []string
Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:
State string
Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.
roles List<String>
Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:
state String
Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.
roles string[]
Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:
state string
Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.
roles Sequence[str]
Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:
state str
Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.
roles List<String>
Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:
state String
Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi