<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DNA Event Webhook to Microsoft Teams in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4906880#M9073</link>
    <description>&lt;P&gt;I'm actually playing a bit with AWS lambda functions these days - I will write an example DNAC to MSTeams hook and post it here as soon as I'm ready (I'm currently on PTO, so maybe it will take some days).&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2023 07:41:31 GMT</pubDate>
    <dc:creator>Marcel Zehnder</dc:creator>
    <dc:date>2023-08-17T07:41:31Z</dc:date>
    <item>
      <title>DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4302210#M9064</link>
      <description>&lt;P&gt;Has anyone been able to get a webhook for an event to successfully post to Microsoft Teams? I have a channel and teams then I am the group owner for. I have installed the team's webhook app on the channel. I have been able to post data to that Channel via postman, with the same code. when I copy the same body into DNA All I get is a bad request. I am not a DEV so I could be missing something easy but I don't know where in DNA to look at the log to see what is happing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dna1.JPG" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/105679i37D46A1117AD6437/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dna1.JPG" alt="dna1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dna2.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/105680i4182B10E3C3C48EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dna2.png" alt="dna2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;{
    "@context": "http://schema.org/extensions",
    "@type": "MessageCard",
    "themeColor": "0076D7",
    "title": "$eventSource$",
    "summary": "DNA Alert",
    "Alert Infomation": [
        {
            "Type": "$eventSource$",
            "Assurance Issue Details": "The network is experiencing a high percentage of onboarding failures compared to usual. Clients are experiencing multiple onboarding failures while connecting to SSID $ssid$.",
            "Assurance Issue Priority": "$priority$",
            "Assurance Issue Name": "Excessive failures to connect - At least $pctDeviation$% increase in failures on $ssid$ in $siteHierarchy$.",
            "Assurance Issue Category": "$category$",
            "Assurance Issue Status": "$status$"
        }
    ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 18:33:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4302210#M9064</guid>
      <dc:creator>itnetworking</dc:creator>
      <dc:date>2021-03-05T18:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4303997#M9065</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="title topictitle3"&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/124153"&gt;@itnetworking&lt;/a&gt;,&lt;/H3&gt;
&lt;P&gt;I think this guide might be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cisco.com/c/en/us/support/docs/cloud-systems-management/dna-center/215683-quick-start-guide-on-what-logs-to-collec.html" target="_blank" rel="noopener"&gt;&lt;FONT size="4"&gt;Quick Start Guide on What Logs to Collect from Cisco DNA Center&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;I'm not sure the &lt;EM&gt;audit&lt;/EM&gt; logs will give you enough details about what's going wrong, but here is what they will tell you, along with how to access them:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Audit Log Support for Cisco DNA Center Platform&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV class="body conbody"&gt;
&lt;P class="p"&gt;Audit log support for the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;Cisco DNA Center platform&lt;/SPAN&gt;. New&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;Cisco DNA Center platform&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;audit logs capture the following critical activities:&lt;/P&gt;
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;User actions to configure, enable, and disable any of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;Cisco DNA Center platform&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bundles.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;User actions to view, edit, duplicate, delete, download, and run any reports in Cisco DNA Center.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;User actions to subscribe to any of the events or notifications.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;User actions to create, update, and change any preference for an instance.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;User actions to invoke both successful and unsuccessful API methods (POST / PUT/ GET / DELETE).&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p"&gt;The following data is captured in the audit logs:&lt;/P&gt;
&lt;UL id="id_126188__ul_jcx_jxx_xjb" class="ul"&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;User Role: SUPER-ADMIN-ROLE, NETWORK-ADMIN-ROLE, OBSERVER-ROLE, or user-created role.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;Who took the action: Captured data includes user group, username, and user role (could be same as user-group).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;When action occurred: Time that modification was made (UTC time).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;What type of action occurred: An abstract or high level view of the action performed and if the action was successful or failed.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p"&gt;To access the audit logs using the Cisco DNA Center GUI, click the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Menu&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;icon (&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexstev_0-1615301709958.jpeg" style="width: 22px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/105891iC3E903D9C487579B/image-dimensions/22x15?v=v2" width="22" height="15" role="button" title="alexstev_0-1615301709958.jpeg" alt="alexstev_0-1615301709958.jpeg" /&gt;&lt;/span&gt;) &amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Activity&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Audit Logs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:05:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4303997#M9065</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2021-03-09T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4398408#M9066</link>
      <description>&lt;P&gt;Microsoft teams expects to post with authentication, i tired with the same and still unsuccessful, please let me know if there is way to go..&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 18:53:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4398408#M9066</guid>
      <dc:creator>jegan_rajappa</dc:creator>
      <dc:date>2021-05-05T18:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4398991#M9067</link>
      <description>&lt;P&gt;I post the following with Postman and it works, no auth.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{
	"@type": "MessageCard",
	"@context": "http://schema.org/extensions",
	"themeColor": "0076D7",
	"summary": "DNA",
	"title": "DNA Alert",
	"sections": [{

		"facts": [{
			"name": "Service Incident:",
			"value": "ID"
		}]
	}]
}&lt;/PRE&gt;&lt;P&gt;I tried both content types, Json and text all I get back from DNA is a bad request but every other way I test this it works.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I might try a chat with Devnet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 19:55:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4398991#M9067</guid>
      <dc:creator>itnetworking</dc:creator>
      <dc:date>2021-05-06T19:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4405483#M9068</link>
      <description>&lt;P&gt;Did you get this to work? I am trying the same thing and getting the same failures.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 15:02:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4405483#M9068</guid>
      <dc:creator>Richard Lucht</dc:creator>
      <dc:date>2021-05-19T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4603374#M9069</link>
      <description>&lt;P&gt;I am having a similar issue wanted to ask if you ever got this working?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 17:59:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4603374#M9069</guid>
      <dc:creator>bcruz</dc:creator>
      <dc:date>2022-05-02T17:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4905903#M9070</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Has this issue been resolved? I am also trying to setup a DNA Centre Event Notification webhook into MS Team (NHS Shared Tenant) and when sending a test alert it fails with &amp;amp; without authentication header in place&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc0_0-1692135040437.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/194461i8D05B5A292F5B7DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marc0_0-1692135040437.png" alt="Marc0_0-1692135040437.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc0_1-1692135158141.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/194462iDB344AF92CFFB4BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marc0_1-1692135158141.png" alt="Marc0_1-1692135158141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 21:32:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4905903#M9070</guid>
      <dc:creator>Marc0</dc:creator>
      <dc:date>2023-08-15T21:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4906186#M9071</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;You can't directly call a MS incoming webhook. MS incoming webhooks expect a certain payload schema/format (see&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using&lt;/A&gt;), the payload from a DNAC event notification is in JSON, but does not much the expected payload schema (see example payload below). So you need to write your own webhook receiver (for example using Python flask) and using this receiver to forward the information to a MS incoming webhook.&lt;BR /&gt;&lt;BR /&gt;If you don't know how to write such a receiver, you may be interested in a easier solution (for example using the DNAC-Webex integration:&amp;nbsp;&lt;A href="https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/dna-center-platform/2-3-5/itsm-ig/b-dnac-itsm-ig-2-3-5/m_appendix_webex.html" target="_blank" rel="noopener"&gt;https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/dna-center-platform/2-3-5/itsm-ig/b-dnac-itsm-ig-2-3-5/m_appendix_webex.html&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;DNAC event sample payload:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "version": "",
    "instanceId": "ea6e28c5-b7f2-43a4-9937-def73771c5ef",
    "eventId": "NETWORK-NON-FABRIC_WIRED-1-251",
    "namespace": "ASSURANCE",
    "name": "",
    "description": "",
    "type": "NETWORK",
    "category": "ALERT",
    "domain": "Connectivity",
    "subDomain": "Non-Fabric Wired",
    "severity": 1,
    "source": "ndp",
    "timestamp": 1574457834497,
    "tags": "",
    "details": {
        "Type": "Network Device",
        "Assurance Issue Priority": "P1",
        "Assurance Issue Details": "Interface GigabitEthernet1/0/3 on the following network device is down: Local Node: PDX-M",
        "Device": "10.93.141.17",
        "Assurance Issue Name": "Interface GigabitEthernet1/0/3 is Down on Network Device 10.93.141.17",
        "Assurance Issue Category": "Connectivity",
        "Assurance Issue Status": "active"
    },
    "ciscoDnaEventLink": "https://10.93.141.35/dna/assurance/issueDetails?issueId=ea6e28c5-b7f2-43a4-9937-def73771c5ef"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 08:56:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4906186#M9071</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-08-16T08:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4906484#M9072</link>
      <description>&lt;P&gt;Thank you for the feedback much appreciated.&lt;/P&gt;&lt;P&gt;I have managed to get DNAC to send alerts into Webex but my organization is using MSTeams as its main platform so hence looking to get it working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 17:21:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4906484#M9072</guid>
      <dc:creator>Marc0</dc:creator>
      <dc:date>2023-08-16T17:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4906880#M9073</link>
      <description>&lt;P&gt;I'm actually playing a bit with AWS lambda functions these days - I will write an example DNAC to MSTeams hook and post it here as soon as I'm ready (I'm currently on PTO, so maybe it will take some days).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 07:41:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4906880#M9073</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-08-17T07:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4907294#M9074</link>
      <description>&lt;P&gt;Thank you, look forward to hearing how things develop.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 18:51:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4907294#M9074</guid>
      <dc:creator>Marc0</dc:creator>
      <dc:date>2023-08-17T18:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Event Webhook to Microsoft Teams</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4908208#M9075</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/493111"&gt;@Marc0&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;See&amp;nbsp;&lt;A href="https://github.com/spie-ics-ag/dnac2teams" target="_blank"&gt;https://github.com/spie-ics-ag/dnac2teams&lt;/A&gt;&amp;nbsp;- if you have questions/problems just let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 13:37:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-event-webhook-to-microsoft-teams/m-p/4908208#M9075</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-08-21T13:37:11Z</dc:date>
    </item>
  </channel>
</rss>

