<?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: Clone access rule using API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/253993#M9159</link>
    <description>&lt;P data-start="71" data-end="103"&gt;I wasn’t able to find it either.&lt;/P&gt;
&lt;P data-start="105" data-end="223"&gt;I’ll forward this to the relevant owners in R&amp;amp;D. If it turns out that it doesn’t exist, I’ll go ahead and open an RFE.&lt;/P&gt;
&lt;P data-start="225" data-end="232"&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Jul 2025 09:11:50 GMT</pubDate>
    <dc:creator>Tal_Paz-Fridman</dc:creator>
    <dc:date>2025-07-26T09:11:50Z</dc:date>
    <item>
      <title>Clone access rule using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/253991#M9158</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;In SmartConsole you can clone any access rule by right clicking on needed rule's number, select "copy rule" and then it can be pasted at any position in any policy package.&lt;/P&gt;
&lt;P&gt;So, if it is possible over SmartConsole, why there is no documented API for such an action ? Checking latest version of &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#introduction~v2" target="_blank" rel="noopener"&gt;management API (v2)&lt;/A&gt;, you can clone only complete &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/clone-access-layer~v2" target="_blank" rel="noopener"&gt;access layer&lt;/A&gt; or &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/clone-package~v2%20" target="_blank" rel="noopener"&gt;policy package&lt;/A&gt;, but not just one access rule.&lt;/P&gt;
&lt;P&gt;There must be some API "magic" done using SmartConsole. Why it is not possible to do the same over &lt;STRONG&gt;single&lt;/STRONG&gt; API command ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jul 2025 07:29:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/253991#M9158</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2025-07-26T07:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clone access rule using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/253993#M9159</link>
      <description>&lt;P data-start="71" data-end="103"&gt;I wasn’t able to find it either.&lt;/P&gt;
&lt;P data-start="105" data-end="223"&gt;I’ll forward this to the relevant owners in R&amp;amp;D. If it turns out that it doesn’t exist, I’ll go ahead and open an RFE.&lt;/P&gt;
&lt;P data-start="225" data-end="232"&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jul 2025 09:11:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/253993#M9159</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2025-07-26T09:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Clone access rule using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/254010#M9161</link>
      <description>&lt;P&gt;Thank you for taking care &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Not sure if actions in SmartConsole are somehow translated into api.elg logs on management. Another idea would be to debug SmartConsole itself and check how copy&amp;amp;paste of access rule is done.&lt;/P&gt;
&lt;P&gt;Creating a small script to clone specific rule (defined by Rule UID) isnt problem here. I will most probably end up with scripting this functionality anyway...&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jul 2025 15:59:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/254010#M9161</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2025-07-26T15:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Clone access rule using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/254014#M9162</link>
      <description>&lt;P&gt;It's easy enough to do this with two API calls: one to see the rule you want to copy (which you have to do anyway if you're working via the API, as how else would you know you which rule you want to copy?), then a second to feed that rule's body to /add-rule with a new position.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jul 2025 21:30:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/254014#M9162</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2025-07-26T21:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Clone access rule using API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/254057#M9166</link>
      <description>&lt;P&gt;I agree 100% with that. I was doing some research on this myself and that seems to be the most logical way.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 22:55:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Clone-access-rule-using-API/m-p/254057#M9166</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-07-27T22:55:59Z</dc:date>
    </item>
  </channel>
</rss>

