Skip to content

Commit fedab4b

Browse files
authored
Merge pull request #146094 from memildin/asc-melvyn-adaptive-application-controls
Added API info to email contact page
2 parents 28b0651 + 2ecdcaa commit fedab4b

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

articles/security-center/security-center-provide-security-contact-details.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.devlang: na
1111
ms.topic: quickstart
1212
ms.tgt_pltfrm: na
1313
ms.workload: na
14-
ms.date: 12/01/2020
14+
ms.date: 02/09/2021
1515
ms.author: memildin
1616

1717
---
@@ -43,8 +43,7 @@ To avoid alert fatigue, Security Center limits the volume of outgoing mails. For
4343
|||
4444

4545

46-
## Customize the security alerts email notifications<a name="email"></a>
47-
46+
## Customize the security alerts email notifications via the portal<a name="email"></a>
4847
You can send email notifications to individuals or to all users with specific Azure roles.
4948

5049
1. From Security Center's **Pricing & settings** area, select the relevant subscription, and select **Email notifications**.
@@ -56,6 +55,28 @@ You can send email notifications to individuals or to all users with specific Az
5655

5756
1. To apply the security contact information to your subscription, select **Save**.
5857

58+
## Customize the alerts email notifications through the API
59+
You can also manage your email notifications through the supplied REST API. For full details see the [SecurityContacts API documentation](https://docs.microsoft.com/rest/api/securitycenter/securitycontacts).
60+
61+
This is an example request body for the PUT request when creating a security contact configuration:
62+
63+
```json
64+
{
65+
"properties": {
66+
67+
"notificationsByRole": {
68+
"state": "On",
69+
"roles": ["AccountAdmin", "Owner"]
70+
},
71+
"alertNotifications": {
72+
"state": "On",
73+
"minimalSeverity": "High"
74+
},
75+
"phone": ""
76+
}
77+
}
78+
```
79+
5980

6081
## See also
6182
To learn more about security alerts, see the following pages:

0 commit comments

Comments
 (0)