<?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: API install-policy behavior if policy name changes in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27192#M1571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a bad behavior of install policy via API. We will address it in the next versions. Thanks for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the mean time, this logic can be accomplished with few api commands (as a "script"):&lt;/P&gt;&lt;P&gt;1. get relevant policy installed on target&amp;nbsp; (show gateways-and-servers)&lt;/P&gt;&lt;P&gt;2. check if the policy installed is different from the one that is about to be installed&lt;/P&gt;&lt;P&gt;3. fail if it is different (or make your script interactive and wait for user input to keep installation)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Jan 2019 07:38:11 GMT</pubDate>
    <dc:creator>Amiad_Stern</dc:creator>
    <dc:date>2019-01-27T07:38:11Z</dc:date>
    <item>
      <title>API install-policy behavior if policy name changes</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27190#M1569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how does "install-policy" behave when the policy name to be installed does not match to the one already installed on the target gateway. Doing it by GUI you get a warning, but you can force it. The API reference error codes didn't gave me a hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; Will the install fail? If yes, any option to force it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vice versa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; If it would just install, any option to force to stop with error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 11:52:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27190#M1569</guid>
      <dc:creator>Andreas_Lorenze</dc:creator>
      <dc:date>2019-01-24T11:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: API install-policy behavior if policy name changes</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27191#M1570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As this is an API question, I am moving this to &lt;A href="https://community.checkpoint.com/space/2003"&gt;Developers (Code Hub)&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;And, you appear to be correct, the install-policy API call does not let you know that you are changing the policy from X to Y.&lt;/P&gt;&lt;P&gt;I'm also not clear what API call you need to make to check this beforehand.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/2192"&gt;Amiad Stern&lt;/A&gt;‌?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2019 20:10:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27191#M1570</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-01-26T20:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: API install-policy behavior if policy name changes</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27192#M1571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a bad behavior of install policy via API. We will address it in the next versions. Thanks for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the mean time, this logic can be accomplished with few api commands (as a "script"):&lt;/P&gt;&lt;P&gt;1. get relevant policy installed on target&amp;nbsp; (show gateways-and-servers)&lt;/P&gt;&lt;P&gt;2. check if the policy installed is different from the one that is about to be installed&lt;/P&gt;&lt;P&gt;3. fail if it is different (or make your script interactive and wait for user input to keep installation)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2019 07:38:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27192#M1571</guid>
      <dc:creator>Amiad_Stern</dc:creator>
      <dc:date>2019-01-27T07:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: API install-policy behavior if policy name changes</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27193#M1572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amiad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for making it clear.&lt;/P&gt;&lt;P&gt;Just the workaround is not really one. You need to switch to detailed-level full for the show command. And to work through that is quite complicate as the output does not only contain gateways with "access-policy". So it bit much effort just to cover that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2019 11:15:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27193#M1572</guid>
      <dc:creator>Andreas_Lorenze</dc:creator>
      <dc:date>2019-01-28T11:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: API install-policy behavior if policy name changes</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27194#M1573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right there is some extra work to do, but you can use jq to filter only relevant results which might make it easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2019 18:56:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-install-policy-behavior-if-policy-name-changes/m-p/27194#M1573</guid>
      <dc:creator>Amiad_Stern</dc:creator>
      <dc:date>2019-01-28T18:56:24Z</dc:date>
    </item>
  </channel>
</rss>

