<?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: Replacing FW object in policy with API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Replacing-FW-object-in-policy-with-API/m-p/92267#M5055</link>
    <description>&lt;P&gt;When working with the rulebase in the API, the actual rule number isn't very relevant, the rule UID is, which is unique to the rule itself.&lt;BR /&gt;You should be able to do something like mgmt_cli show access-rulebase name Rulebase filter "FW-1 AND FW-2" to get all the rules that mention both.&lt;BR /&gt;From there, you iterate over each rule uid and set the install-on target to the new cluster object.&lt;BR /&gt;If this doesn't work, please show precisely what you tried with the exact results.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 14:55:58 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-07-23T14:55:58Z</dc:date>
    <item>
      <title>Replacing FW object in policy with API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Replacing-FW-object-in-policy-with-API/m-p/92046#M5048</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I new to all this API stuff and be glad for help and directions.&lt;/P&gt;&lt;P&gt;I have R80.30 and the SMS is managing 2 sepereted Gateways (FW-1 &amp;amp; FW-2) on the same package.&lt;/P&gt;&lt;P&gt;Each line on policy have diffrent gateway at the "Installed on" colum.&lt;/P&gt;&lt;P&gt;I want to create (manually) a cluster object (Cluster-1), and put this object instead of FW-1 at rule base.&lt;/P&gt;&lt;P&gt;I want to do it with mgmt_cli (is it even possible?)&lt;/P&gt;&lt;P&gt;I thought to filter the rule number from the "mgmt_cli show access-rulebase name Rulebase" command, where the FW-1 appering.&lt;/P&gt;&lt;P&gt;I didnt success. it look like I dont have all the rules &amp;amp; I couldn't get the rule number &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I&amp;nbsp; do it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oded.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 11:24:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Replacing-FW-object-in-policy-with-API/m-p/92046#M5048</guid>
      <dc:creator>Oded_Ratzon</dc:creator>
      <dc:date>2020-07-21T11:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing FW object in policy with API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Replacing-FW-object-in-policy-with-API/m-p/92267#M5055</link>
      <description>&lt;P&gt;When working with the rulebase in the API, the actual rule number isn't very relevant, the rule UID is, which is unique to the rule itself.&lt;BR /&gt;You should be able to do something like mgmt_cli show access-rulebase name Rulebase filter "FW-1 AND FW-2" to get all the rules that mention both.&lt;BR /&gt;From there, you iterate over each rule uid and set the install-on target to the new cluster object.&lt;BR /&gt;If this doesn't work, please show precisely what you tried with the exact results.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 14:55:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Replacing-FW-object-in-policy-with-API/m-p/92267#M5055</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-07-23T14:55:58Z</dc:date>
    </item>
  </channel>
</rss>

