Organization Alerts API endpoint

nan3540
Here to help

Organization Alerts API endpoint

Hi all

 

I am currently working on to setup Organization alerts on all our 300 customers, but i am struggling a little bit to understand the api. I am using the below endpoint to get the current alert profiles into excel so i can get an overview on how it is configured.

 

from utils.api import initialize_api_session
from meraki import DashboardAPI
import pandas as pd

def main():
    session: DashboardAPI = initialize_api_session(simulate=True)
    alerts = session.organizations.getOrganizationAlertsProfiles("xxxx")
    print(alerts)
    df = pd.DataFrame(alerts)
    df.to_excel("org_alerts.xlsx")
    
    
if __name__ == "__main__":
    main()

 

With the code above i get absolutely zero alert profiles back, but they are configured in the GUI

 

nan3540_0-1767358536136.png

 

When i looked at the documentation for creating a alert profile it looked like the set of api endpoints are meant for the insight alerts and not the Organization wide device alerts. 

 

Can someone guide me to find the correct api endpoint?

2 Replies 2
sungod
Kind of a big deal
Kind of a big deal

You may need to use per-network alerts endpoints, try this on one of the networks you have set-up alerts on... https://developer.cisco.com/meraki/api-v1/get-network-alerts-settings/

 

Btw it looks like you have included you organization ID in you post, I recommend you edit it to remove the ID details.

nan3540
Here to help

I already have network alerts set up, but i would like to move to organization wide alerts to get more granular alerts, but i guess i would just need to wait on the api endpoint for those alerts.

 

 

Thank you, i forgot to remove it.

Get notified when there are additional replies to this discussion.