<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help with Meraki-CLI to update firewall rules in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397976#M113</link>
    <description>&lt;P&gt;Here's my argument:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;meraki appliance updateNetworkApplianceFirewallL3FirewallRules --networkId &amp;lt;networkID&amp;gt; --kwargs "{&lt;/DIV&gt;&lt;DIV&gt;    "rules":[&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;            "comment": "Block",&lt;/DIV&gt;&lt;DIV&gt;            "policy": "deny",&lt;/DIV&gt;&lt;DIV&gt;            "protocol": "any",&lt;/DIV&gt;&lt;DIV&gt;            "srcPort": "any",&lt;/DIV&gt;&lt;DIV&gt;            "srcCidr": "any",&lt;/DIV&gt;&lt;DIV&gt;            "destPort": "any",&lt;/DIV&gt;&lt;DIV&gt;            "destCidr": "&amp;lt;IP.ADDR&amp;gt;/32",&lt;/DIV&gt;&lt;DIV&gt;            "syslogEnabled": false&lt;/DIV&gt;&lt;DIV&gt;      }&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}"&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Trying to update firewall rule to block an IP for multiple sites but get following error:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;2025-02-14 12:41:25,820 [CRITI] Error loading JSON kwargs. Check syntax.&lt;BR /&gt;2025-02-14 12:41:25,820 [ERROR] Expecting property name enclosed in double quotes: line 3 column 5 (char 7)&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/sgre/.local/share/pipx/venvs/meraki-cli/lib/python3.12/site-packages/meraki_cli/__main__.py", line 466, in _get_method_params&lt;BR /&gt;kwargs = json.loads(kwargs_value) # Interpret the JSON&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.12/json/__init__.py", line 346, in loads&lt;BR /&gt;return _default_decoder.decode(s)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.12/json/decoder.py", line 337, in decode&lt;BR /&gt;obj, end = self.raw_decode(s, idx=_w(s, 0).end())&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode&lt;BR /&gt;obj, end = self.scan_once(s, idx)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 3 column 5 (char 7)&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Any advise on where I have gone wrong?&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 Feb 2025 12:47:07 GMT</pubDate>
    <dc:creator>NetEng11</dc:creator>
    <dc:date>2025-02-14T12:47:07Z</dc:date>
    <item>
      <title>Help with Meraki-CLI to update firewall rules</title>
      <link>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397976#M113</link>
      <description>&lt;P&gt;Here's my argument:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;meraki appliance updateNetworkApplianceFirewallL3FirewallRules --networkId &amp;lt;networkID&amp;gt; --kwargs "{&lt;/DIV&gt;&lt;DIV&gt;    "rules":[&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;            "comment": "Block",&lt;/DIV&gt;&lt;DIV&gt;            "policy": "deny",&lt;/DIV&gt;&lt;DIV&gt;            "protocol": "any",&lt;/DIV&gt;&lt;DIV&gt;            "srcPort": "any",&lt;/DIV&gt;&lt;DIV&gt;            "srcCidr": "any",&lt;/DIV&gt;&lt;DIV&gt;            "destPort": "any",&lt;/DIV&gt;&lt;DIV&gt;            "destCidr": "&amp;lt;IP.ADDR&amp;gt;/32",&lt;/DIV&gt;&lt;DIV&gt;            "syslogEnabled": false&lt;/DIV&gt;&lt;DIV&gt;      }&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}"&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Trying to update firewall rule to block an IP for multiple sites but get following error:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;2025-02-14 12:41:25,820 [CRITI] Error loading JSON kwargs. Check syntax.&lt;BR /&gt;2025-02-14 12:41:25,820 [ERROR] Expecting property name enclosed in double quotes: line 3 column 5 (char 7)&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/sgre/.local/share/pipx/venvs/meraki-cli/lib/python3.12/site-packages/meraki_cli/__main__.py", line 466, in _get_method_params&lt;BR /&gt;kwargs = json.loads(kwargs_value) # Interpret the JSON&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.12/json/__init__.py", line 346, in loads&lt;BR /&gt;return _default_decoder.decode(s)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.12/json/decoder.py", line 337, in decode&lt;BR /&gt;obj, end = self.raw_decode(s, idx=_w(s, 0).end())&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode&lt;BR /&gt;obj, end = self.scan_once(s, idx)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 3 column 5 (char 7)&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Any advise on where I have gone wrong?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Feb 2025 12:47:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397976#M113</guid>
      <dc:creator>NetEng11</dc:creator>
      <dc:date>2025-02-14T12:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Meraki-CLI to update firewall rules</title>
      <link>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397977#M114</link>
      <description>&lt;P&gt;The error indicates that there is a problem with the JSON syntax in the arguments (kwargs) passed to the updateNetworkApplianceFirewallL3FirewallRules command.&lt;/P&gt;&lt;P&gt;The specific error is: Expecting property name enclosed in double quotes: line 3 column 5 (char 7)&lt;/P&gt;&lt;P&gt;This suggests that there is a problem with the double quotes somewhere in the JSON.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Try removing the space before the { curly brace and see if the command works:&lt;/P&gt;&lt;P&gt;--kwargs "{ "rules": [{ "comment": "Block", "policy": "deny", "protocol": "any", "srcPort": "any", "srcCidr": "any", "destPort": "any", "destCidr": "&amp;lt;IP.ADDR&amp;gt;/32", "syslogEnabled": false }] }"&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 13:27:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397977#M114</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2025-02-14T13:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Meraki-CLI to update firewall rules</title>
      <link>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397978#M115</link>
      <description>&lt;P&gt;Use this instead &lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/build/mx-firewall-control-python-script/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/build/mx-firewall-control-python-script/&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:05:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397978#M115</guid>
      <dc:creator>inderdeepsingh1</dc:creator>
      <dc:date>2025-02-14T14:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Meraki-CLI to update firewall rules</title>
      <link>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397979#M116</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;DIV&gt;meraki appliance updateNetworkApplianceFirewallL3FirewallRules --networkId &amp;lt;networkID&amp;gt; --kwargs &lt;STRONG&gt;'&lt;/STRONG&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Feb 2025 20:07:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397979#M116</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2025-02-16T20:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Meraki-CLI to update firewall rules</title>
      <link>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397980#M117</link>
      <description>&lt;P&gt;Or perhaps try using double quotes for the inside ones:&lt;/P&gt;&lt;DIV&gt;    ""rules"":[&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;            ""comment"": ""Block"",&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;            "policy": "deny",&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Feb 2025 20:10:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/help-with-meraki-cli-to-update-firewall-rules/m-p/5397980#M117</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2025-02-16T20:10:22Z</dc:date>
    </item>
  </channel>
</rss>

