04-21-2023 11:07 AM
Has anyone successfully configured DNAC Event Notifications to Microsoft Teams via a webhook? I know I can send messages to a Microsoft Teams Channel via a webhook, and I've successfully done so through Postman. I've setup the webhook and Event Notification in DNAC but it's not working. Is this even possible with how DNAC sends information to the webhook?
04-24-2023 11:43 AM - edited 04-24-2023 12:56 PM
It should work.
You can check this link for more information
https://developer.cisco.com/codeexchange/github/repo/robertcsapo/cisco-dnac-platform-webex-notifications/.
Basically I would do a simple test by sending the event trigger to a rest server first, like using https://webhook.site/ .
This is an example of JSON sent by DNAC. I configured the destination to https://webhook.site/...........
then reboot my router to get the trigger.
{
"version": "1.0.0",
"instanceId": "913886ef-8529-424c-a2ef-83697b43da21",
"eventId": "NETWORK-DEVICES-2-202",
"namespace": "ASSURANCE",
"name": null,
"description": null,
"type": "NETWORK",
"category": "ERROR",
"domain": "Know Your Network",
"subDomain": "Devices",
"severity": 2,
"source": "ndp",
"timestamp": 1682360732572,
"details": {
"Type": "Network Device",
"Assurance Issue Details": "Network Device csrv1000 is rebooting.",
"Assurance Issue Priority": "P2",
"Device": "10.xxx.xxx.xxx",
"Assurance Issue Name": "Device has rebooted due to a hardware or software crash",
"Assurance Issue Category": "Device",
"Assurance Issue Status": "active"
},
"ciscoDnaEventLink": "https://10.xxx.xxx.xxx/dna/assurance/issueDetails?issueId=913886ef-8529-424c-a2ef-83697b43da21",
"note": "To programmatically get more info see here - https://<ip-address>/dna/platform/app/consumer-portal/developer-toolkit/apis?apiId=8684-39bb-4e89-a6e4",
"context": null,
"userId": null,
"i18n": null,
"eventHierarchy": null,
"message": null,
"messageParams": null,
"parentInstanceId": null,
"network": null,
"dnacIP": "10.xxx.xxx.xxx"
}
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide