Using the Settings Controller API, you configure vRealize Suite Lifecycle Manager to send alerts and notifications for changes in environment health or vRealize Suite product updates. As part of the configuration, you can specify the notification triggers and set the notification frequency.
The following example shows how to configure vRealize Suite Lifecycle Manager to send a daily notification to two registered email addresses and using a Slack channel webhook. vRealize Suite Lifecycle Manager alerts notification recipients of any product updates, or changes to license, certificate, or environment health.
Prerequisites
- Verify that you have satisfied all general prerequisites. See the prerequisites for Performing Day 2 operations using vRealize Suite Lifecycle Manager APIs.
- If you want to configure alerts or notifications by email, verify that the SMTP server settings are configured and verified. See Configure SMTP to Email Outbound Notifications.
- If you want to configure alerts or notifications through a Slack or Microsoft Teams channel, verify that you have the URL of the incoming webhook. See Creating Incoming Webhooks for Slack and Teams Channels.
Procedure
- ♦ Configure outbound notification settings.
curl -X POST \ '$url/lcm/lcops/api/v2/settings/globalSetting' \ -H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' \ -H 'Content-Type: application/json' \ -d '{ "integrationName": "Slack Integration Example", "emailRecipients": ["[email protected]","[email protected]"], "webhookRecipients": [ "https://hooks.slack.com/services/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" ], "properties": { "notificationTriggers": { "productUpdates": { "enableAll": true, "properties": [ "updates", "patches", "supportPacks" ] }, "licenses": { "enableAll": true, "properties": [] }, "certificates": { "enableAll": true, "properties": [] }, "environmentHealth": { "enableAll": true, "properties": [] }, } }, "description": "Notifications received through email and Slack", "notificationFrequency": "DAILY" }' | jq "."
The response shows the outbound notification settings.{ "integrationName": "Slack Integration Example", "emailRecipients": ["[email protected]","[email protected]"], "webhookRecipients": [ "https://hooks.slack.com/services/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" ], "properties": { "notificationTriggers": { "productUpdates": { "enableAll": true, "properties": [ "updates", "patches", "supportPacks" ] }, "licenses": { "enableAll": true, "properties": [] }, "certificates": { "enableAll": true, "properties": [] }, "environmentHealth": { "enableAll": true, "properties": [] }, } }, "description": "Notifications received through email and Slack", "notificationFrequency": "DAILY" }