<?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 Re: Create l3 firewall Rules? in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430266#M4948</link>
    <description>&lt;P&gt;There's an example script that may help you (it uses the Meraki Python library)...&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/codeexchange/github/repo/CiscoSE/AddMerakiMXL3FirewallRuleToNetworks#usecase" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/codeexchange/github/repo/CiscoSE/AddMerakiMXL3FirewallRuleToNetworks#usecase&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoSE/AddMerakiMXL3FirewallRuleToNetworks" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/CiscoSE/AddMerakiMXL3FirewallRuleToNetworks&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 13:53:24 GMT</pubDate>
    <dc:creator>sungod</dc:creator>
    <dc:date>2023-03-01T13:53:24Z</dc:date>
    <item>
      <title>Create l3 firewall Rules?</title>
      <link>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430262#M4944</link>
      <description>&lt;P&gt;Is there a way to create L3 firewall rules using API?&lt;/P&gt;&lt;P&gt;I am trying to migrate one Checkpoint FW to a Meraki MX, and I have a CSV file with the firewall rules.&lt;/P&gt;&lt;P&gt;The documentation only shows GET and Update firewall rules&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NesAlba_0-1677633263800.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262968i22D9F6921D400EC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 01:16:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430262#M4944</guid>
      <dc:creator>nalbacas</dc:creator>
      <dc:date>2023-03-01T01:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create l3 firewall Rules?</title>
      <link>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430263#M4945</link>
      <description>&lt;P&gt;The only way is to do a GET to a file, edit it by adding the new rule and then perform the PUT, that is, there is no other way.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 01:39:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430263#M4945</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2023-03-01T01:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create l3 firewall Rules?</title>
      <link>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430264#M4946</link>
      <description>&lt;P&gt;You will have to convert the existing firewall rule from your csv into json format and use the API's update PUT operation to apply the firewall rules. If you are not sure what fields are needed in the json file, you can find one by doing a GET to retrieve it from the MX.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 03:26:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430264#M4946</guid>
      <dc:creator>ByronZ</dc:creator>
      <dc:date>2023-03-01T03:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create l3 firewall Rules?</title>
      <link>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430265#M4947</link>
      <description>&lt;P&gt;Hi as mentioned get the current rules, add your own and update:&lt;BR /&gt;&lt;BR /&gt;In python that will be something like this:&lt;BR /&gt;l3Settings = dashboard.appliance.getNetworkApplianceFirewallL3FirewallRules(&amp;lt;network_id&amp;gt;)&lt;BR /&gt;# print (l3Settings['rules'])  &amp;lt;-- add your rules&lt;/P&gt;&lt;P&gt;# Update:&lt;BR /&gt;response = dashboard.appliance.updateNetworkApplianceFirewallL3FirewallRules(&amp;lt;network_id&amp;gt;, rules=l3Settings['rules'])&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 13:31:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430265#M4947</guid>
      <dc:creator>frankvdveen</dc:creator>
      <dc:date>2023-03-01T13:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create l3 firewall Rules?</title>
      <link>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430266#M4948</link>
      <description>&lt;P&gt;There's an example script that may help you (it uses the Meraki Python library)...&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/codeexchange/github/repo/CiscoSE/AddMerakiMXL3FirewallRuleToNetworks#usecase" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/codeexchange/github/repo/CiscoSE/AddMerakiMXL3FirewallRuleToNetworks#usecase&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoSE/AddMerakiMXL3FirewallRuleToNetworks" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/CiscoSE/AddMerakiMXL3FirewallRuleToNetworks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 13:53:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/create-l3-firewall-rules/m-p/5430266#M4948</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2023-03-01T13:53:24Z</dc:date>
    </item>
  </channel>
</rss>

