<?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: Show specific rule using api in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89838#M4985</link>
    <description>&lt;P&gt;Yes i agree and i have already imported all the objects so all of them exist in the new SMS&lt;/P&gt;&lt;P&gt;And in a perfect world i would use the import/export tool to do this and delete the rules i don't need. But under the circumstances i am in, this is the only way i can do it, so i am trying to make this as easy as possible, which seems to be this way.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 19:15:02 GMT</pubDate>
    <dc:creator>bhaizlett123</dc:creator>
    <dc:date>2020-06-25T19:15:02Z</dc:date>
    <item>
      <title>Show specific rule using api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89834#M4983</link>
      <description>&lt;P&gt;I have a r80.30 SMS with 5 policies&lt;/P&gt;&lt;P&gt;I am working on recreating this on another SMS server, but i only am wanting to take a subset of the rules out, so i am going through one by one to determine if i need this or not and if a rule above would encompass that.&lt;/P&gt;&lt;P&gt;When i find a rule that i want to copy over i am just manually creating it on the new SMS server. I was looking for a way to be able to run the mgmt_cli on the old SMS and specify the rule number and get that output and then use to create the same rule on the new SMS.&lt;/P&gt;&lt;P&gt;Is there a way of doing this. I am stuck trying to figure out how to even export a specific rule using mgmt_cli using the show access rule-base filter but can't figure out what to put in the filter to specify policy name and rule number in that policy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 18:32:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89834#M4983</guid>
      <dc:creator>bhaizlett123</dc:creator>
      <dc:date>2020-06-25T18:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show specific rule using api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89837#M4984</link>
      <description>&lt;P&gt;Going on in that way, if you have a new SMS, you need to create also the objects...&lt;/P&gt;&lt;P&gt;If your goal is to copy for each policy packages on the old SMS only the rules that you need into the new SMS, i suggest you to leverage on the &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100" target="_blank"&gt;import export tool&lt;/A&gt; to copy all the policy packages and objects.&lt;BR /&gt;Then on the new SMS use the mgmt_cli with the appropiate filter to delete the rules that you don't need and eventually the unused objects.&lt;BR /&gt;&lt;BR /&gt;Take a look to &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-rulebase~v1.6%20" target="_blank"&gt;api guide&lt;/A&gt;&amp;nbsp; for same examples on how to use filter...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 19:08:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89837#M4984</guid>
      <dc:creator>FraP</dc:creator>
      <dc:date>2020-06-25T19:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show specific rule using api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89838#M4985</link>
      <description>&lt;P&gt;Yes i agree and i have already imported all the objects so all of them exist in the new SMS&lt;/P&gt;&lt;P&gt;And in a perfect world i would use the import/export tool to do this and delete the rules i don't need. But under the circumstances i am in, this is the only way i can do it, so i am trying to make this as easy as possible, which seems to be this way.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 19:15:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89838#M4985</guid>
      <dc:creator>bhaizlett123</dc:creator>
      <dc:date>2020-06-25T19:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show specific rule using api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89864#M4986</link>
      <description>If you right click on a rule, one of the options is "Copy Rule UID."&lt;BR /&gt;You can use that to do something like show access-rule uid X.&lt;BR /&gt;From there, you could probably script the equivalent add access-rule cli/api call.</description>
      <pubDate>Fri, 26 Jun 2020 00:11:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/89864#M4986</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-06-26T00:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Show specific rule using api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/90503#M4995</link>
      <description>&lt;P&gt;Can this &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/RulebaseExporter-RulebaseImporter/td-p/39126" target="_blank"&gt;post&lt;/A&gt; help you?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 16:58:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-specific-rule-using-api/m-p/90503#M4995</guid>
      <dc:creator>FraP</dc:creator>
      <dc:date>2020-07-03T16:58:59Z</dc:date>
    </item>
  </channel>
</rss>

