02-14-2025 04:47 AM
Here's my argument:
02-14-2025 05:27 AM
The error indicates that there is a problem with the JSON syntax in the arguments (kwargs) passed to the updateNetworkApplianceFirewallL3FirewallRules command.
The specific error is: Expecting property name enclosed in double quotes: line 3 column 5 (char 7)
This suggests that there is a problem with the double quotes somewhere in the JSON.
When examining the JSON provided, I noticed that there is a space before the { curly brace that begins the rules object. This may be causing the error.
Try removing the space before the { curly brace and see if the command works:
--kwargs "{ "rules": [{ "comment": "Block", "policy": "deny", "protocol": "any", "srcPort": "any", "srcCidr": "any", "destPort": "any", "destCidr": "<IP.ADDR>/32", "syslogEnabled": false }] }"
02-14-2025 06:05 AM
Use this instead
https://developer.cisco.com/meraki/build/mx-firewall-control-python-script/
02-16-2025 12:07 PM
Your platform might not allow quotes to be used inside of quotes. Try making the outside ones single quotes. I think Mac is super picky about this in particular.
02-16-2025 12:10 PM
Or perhaps try using double quotes for the inside ones:
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