Hey all, absolutely new to API's. I'm trying to use the python script mxfirewallcontrol.py to insert a rule into a network's l3 firewall.
Following the example at create.meraki.io/build/mx-firewall-control-python-script/ for expressing rulesets I've replicated the following:
python mxfirewallcontrol.py -k xxx -o "xxx" -f "type:network,name:xxx" -c insert:2:"{ ""protocol"":""any"", ""srcPort"":""Any"", ""srcCidr"":""Any"", ""destPort"":""Any"", ""destCidr"":""192.168.26.0/24"", ""policy"":""deny"", ""syslogEnabled"":false, ""comment"":""D - All to POS VLAN"" }" -m simulation
and I receive:
@ INFO: Retrieving organization info
@ INFO: Selecting networks and templates according to filters
@ INFO: Simulation mode. Changes will not be saved to cloud
@ ERROR 50: Ruleset to be added must be given in JSON format
I tried replicating the example exactly and editing in my info and it still fails.
Any advice would be appreciated.