cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1479
Views
2
Helpful
2
Replies

Organization Alerts API endpoint

NiclasAndersen
Level 1
Level 1

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

image.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
Level 11
Level 11

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.

NiclasAndersen
Level 1
Level 1

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.