<?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: What is the API for alerting/error reason? in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/what-is-the-api-for-alerting-error-reason/m-p/5453149#M8194</link>
    <description>&lt;P&gt;I believe you are looking for health alerts:&lt;/P&gt;&lt;P&gt;(&lt;SPAN&gt;Deprecated: This operation has been marked as deprecated, which means it could be removed at some point in the future.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-network-health-alerts/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-network-health-alerts/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Replaced with:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-organization-assurance-alerts/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-organization-assurance-alerts/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 14:35:55 GMT</pubDate>
    <dc:creator>Andy Mikulas</dc:creator>
    <dc:date>2025-01-08T14:35:55Z</dc:date>
    <item>
      <title>What is the API for alerting/error reason?</title>
      <link>https://community.cisco.com/t5/network-platform-api/what-is-the-api-for-alerting-error-reason/m-p/5453148#M8193</link>
      <description>&lt;P&gt;In the dashboard, under Wireless &amp;gt; Access Point, when I choose a specific AP, I can see its status.&lt;/P&gt;&lt;P&gt;If the status is "alerting", there is a orange rectangle above the map with the reason for the alerting. Or red rectangle on case of error. See example in the attached image.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What is the API I can use to get this error message (reason)?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://files.mtstatic.com/site_13505/draft_29154/3?Expires=1736349894&amp;amp;Signature=pCy6NFpbRg4JZJKyHSFNaU8YmQ9enE4hfuvDvM0mqcvqLKy1SqH~A9y~jl4qjih2E97LaxSnvh3~~zsgLDo4PhC61TOuen7XiB95sJVd3bhXBeWWwX9de7rEOofsvOYNo65IAX6~dbL1NGr43Op4qcLj5yglHjsOcxtyYb7jFt4_&amp;amp;Key-Pair-Id=APKAJ5Y6AV4GI7A555NA" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 14:27:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/what-is-the-api-for-alerting-error-reason/m-p/5453148#M8193</guid>
      <dc:creator>Yaakov Neuman at NetOp AI</dc:creator>
      <dc:date>2025-01-08T14:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the API for alerting/error reason?</title>
      <link>https://community.cisco.com/t5/network-platform-api/what-is-the-api-for-alerting-error-reason/m-p/5453149#M8194</link>
      <description>&lt;P&gt;I believe you are looking for health alerts:&lt;/P&gt;&lt;P&gt;(&lt;SPAN&gt;Deprecated: This operation has been marked as deprecated, which means it could be removed at some point in the future.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-network-health-alerts/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-network-health-alerts/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Replaced with:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-organization-assurance-alerts/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-organization-assurance-alerts/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 14:35:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/what-is-the-api-for-alerting-error-reason/m-p/5453149#M8194</guid>
      <dc:creator>Andy Mikulas</dc:creator>
      <dc:date>2025-01-08T14:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: What is the API for alerting/error reason?</title>
      <link>https://community.cisco.com/t5/network-platform-api/what-is-the-api-for-alerting-error-reason/m-p/5453150#M8195</link>
      <description>&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;import meraki

dashboard = meraki.DashboardAPI("")

organization_id = ''
print("orgID")

all_networks = dashboard.organizations.getOrganizationNetworks(organization_id, total_pages='All')

for a in all_networks: 
    #print(a['name'])
    network_alerts = dashboard.networks.getNetworkHealthAlerts(a['id'])
    count = 0
    for n in network_alerts: 
        print(n)
        if n['type'] == "Uplink IP address in conflict with another device": 
            print(n)
            with open("C:\\data\\logs\\networkswithissues.txt", "a") as f:
                f.write(str(n))
            count += 1             
print(f"{count} networks.")   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can also do it with the Meraki Python module. This filters just for IP conflicts. &lt;/P&gt;&lt;P&gt;This ultimately uses the same endpoint that &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/66885"&gt;@Andy Mikulas&lt;/A&gt; shared, so may not work long-term. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 14:55:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/what-is-the-api-for-alerting-error-reason/m-p/5453150#M8195</guid>
      <dc:creator>double_virgule</dc:creator>
      <dc:date>2025-01-08T14:55:31Z</dc:date>
    </item>
  </channel>
</rss>

