11-18-2024 07:36 AM
Hello,
We currently have SNMP traps enabled and configured on a customer org with hundreds of networks (in the alerting section). I need to use API to disable it, has anyone tried that before or know the endpoint to target that?
Thanks,
Sameh
Solved! Go to Solution.
11-18-2024 09:24 AM
11-18-2024 07:39 AM
Yes: https://developer.cisco.com/meraki/api-v1/update-network-snmp/
and also https://developer.cisco.com/meraki/api-v1/update-organization-snmp/
access - The type of SNMP access. Can be one of 'none' (disabled)
Are you trying to just turn off traps but leave SNMP on otherwise?
https://developer.cisco.com/meraki/api-v1/update-network-snmp-traps/
11-18-2024 07:50 AM
I'm trying to disable SNMP on network level alerting config completely. like in this screenshot:
11-18-2024 08:41 AM
Try using the new https://developer.cisco.com/meraki/api-v1/update-network-snmp-traps/ endpoint. You have to have Early Access enabled in the org.
You can then set the mode: "'mode' must be one of: 'disabled', 'v1/v2c' or 'v3'"
11-18-2024 09:20 AM
I see many opt-in setting under early-access. did you mean this one?
11-18-2024 09:24 AM
Yes.
11-18-2024 11:20 AM
Thanks a lot @dajirku it worked!
just for reference in case anyone looks for the same solution:
this is the endpoint url: /networks/{networkId}/snmp/traps
and the payload should be like this:
"mode": "disabled",
"access": "none",
"communityString": "",
"users": []
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide