<?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: Policy Install Error - API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2489#M139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having said that, we're open for suggestions that can improve the install-policy API and other APIs with potentially long processing time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 19:36:57 GMT</pubDate>
    <dc:creator>Uri_Bialik</dc:creator>
    <dc:date>2016-07-01T19:36:57Z</dc:date>
    <item>
      <title>Policy Install Error - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2485#M135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Below done VIA API&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I create a rule:&lt;/P&gt;&lt;P&gt;Source: 1.1.1.1 Desination: 2.2.2.2 Port: tcp_80 Action: Drop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a rule:&lt;/P&gt;&lt;P&gt;Source: 1.1.1.1 Desination: 2.2.2.2 Port: tcp_80 Action: Accept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then publish and install policy through the API it is successful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I goto the GUI it says policy install failed. Is it possible to have this error defined through the API response with a clear description as to why it failed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 18:11:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2485#M135</guid>
      <dc:creator>Joshua_Boerum</dc:creator>
      <dc:date>2016-07-01T18:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Policy Install Error - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2486#M136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;When you call the install-policy API and the server responds with "200 OK", it means that the server has accepted the request to install policy. The actual status of the policy installation is still unknown at this point as the policy installation process may take a few minutes.&lt;/P&gt;&lt;P&gt;Have a look at the server response, you'll see that the response payload contains a "task-id".&lt;/P&gt;&lt;P&gt;You can use this "task-id" token to check on the policy installation progress, final status and list or errors/warnings.&lt;/P&gt;&lt;P&gt;To do that, call the "show-task" API and provide the task-id that you got from the "install-policy" API as an argument.&lt;/P&gt;&lt;P&gt;I recommend calling the "show-task" API with the parameter "details-level" set to "full".&lt;/P&gt;&lt;P&gt;Uri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 18:44:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2486#M136</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2016-07-01T18:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Policy Install Error - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2487#M137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes things difficult when installing policy VIA the API. Mainly due to the fact that I have to rely on another API to check if the latest policy installed was successful or not and also knowing if the response is from the latest policy install.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 18:58:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2487#M137</guid>
      <dc:creator>Joshua_Boerum</dc:creator>
      <dc:date>2016-07-01T18:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Policy Install Error - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2488#M138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every install-policy request generates a new task-id token, so when you call the show-task API there's no question which status you get.&lt;/P&gt;&lt;P&gt;The task-id / show-task mechanism is our way of dealing with a-synchronous operations.&lt;/P&gt;&lt;P&gt;Waiting for the policy install operation to complete before sending the response, may trigger HTTP timeout errors.&lt;/P&gt;&lt;P&gt;More on that in this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/thread/1268"&gt;Using a-synchronous commands (e.g. publish, install-policy and run-script)&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 19:32:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2488#M138</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2016-07-01T19:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Policy Install Error - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2489#M139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having said that, we're open for suggestions that can improve the install-policy API and other APIs with potentially long processing time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 19:36:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Policy-Install-Error-API/m-p/2489#M139</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2016-07-01T19:36:57Z</dc:date>
    </item>
  </channel>
</rss>

