What is the API for alerting/error reason?

yaakov-netop
New here

What is the API for alerting/error reason?

In the dashboard, under Wireless > Access Point, when I choose a specific AP, I can see its status.

 

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.

 

What is the API I can use to get this error message (reason)?

 

2 Replies 2
LearningIsFun
Getting noticed

I believe you are looking for health alerts:

 

(Deprecated: This operation has been marked as deprecated, which means it could be removed at some point in the future.)

https://developer.cisco.com/meraki/api-v1/get-network-health-alerts/ 

 

Replaced with:

https://developer.cisco.com/meraki/api-v1/get-organization-assurance-alerts/

 

 

double_virgule
Getting noticed

 

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.")   

 

You can also do it with the Meraki Python module. This filters just for IP conflicts. 

 

This ultimately uses the same endpoint that @LearningIsFun shared, so may not work long-term. 

Get notified when there are additional replies to this discussion.