- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alerts - change alert type enabled to true/false via api
I get the alert type status via this api
https://api.meraki.com/api/v1/organizations/organizationId/assurance/alerts
do you have an example about changing only the enable parameter to true or false ?
I have to change only this option
'type': 'ipConflict', 'enabled' to False
this is the complete get response for the get API of each network.
{'defaultDestinations': {'emails': [], 'snmp': False, 'allAdmins': True, 'httpServerIds': []}, 'alerts': [{'type': 'ampMalwareDetected', 'enabled': True, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'ampMalwareBlocked', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'applianceDown', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {'timeout': 60}}, {'type': 'failoverEvent', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'dhcpNoLeases', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'ipConflict', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'ip6Conflict', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'dhcp6naRenumber', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'dhcp6pdRenumber', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'cellularUpDown', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'clientConnectivity', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {'clients': []}}, {'type': 'vrrp', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'vpnConnectivityChange', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'settingsChanged', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'usageAlert', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {'threshold': 104857600, 'period': 1200}}, {'type': 'weeklyUmbrella', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}, {'type': 'prefixStarvation', 'enabled': False, 'alertDestinations': {'emails': [], 'snmp': False, 'allAdmins': False, 'httpServerIds': []}, 'filters': {}}], 'muting': {}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To change the enabled parameter of a specific alert using the Meraki API, you can make a PUT request to update only the required field. For example, you can do this for the ipConflict alert type to true or false.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have resolved width a replace , with all entire response in the PUT ... , could not find a way to modify only one field, could you show me an example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I sent you a DM
Please, if this post was useful, leave your kudos and mark it as solved.
