<?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 How do you override warnings [not errors] and force execution of additions/changes when using the API to add or set values, especially in batch mode? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-you-override-warnings-not-errors-and-force-execution-of/m-p/3111#M289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you override warnings [not errors] and force execution of additions/changes when using the API to add or set values, especially in batch mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These warnings break the import process and damage further operations by not providing the needed items for those operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors on host addition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 170: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code" : "err_validation_failed",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Validation failed with 1 warning",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "warnings" : [ {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "Multiple objects have the same IP address 205.178.146.249"&lt;/P&gt;&lt;P&gt;&amp;nbsp; } ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Line 281: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code" : "err_validation_failed",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Validation failed with 1 warning",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "warnings" : [ {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "Multiple objects have the same IP address 50.79.16.164"&lt;/P&gt;&lt;P&gt;&amp;nbsp; } ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subsequent errors in group membership setting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 384: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code" : "generic_err_object_not_found",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Requested object [e-mail_mail.ericjbeasley.com] not found"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Line 463: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code" : "generic_err_object_not_found",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Requested object [PUBLIC-50x79x16x164] not found"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can override these warnings and add my objects in the GUI, but the API doesn't provide any way to do this and --ignore-errors true only keeps the error from breaking operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This EPIC FAIL needs a solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2017 18:46:05 GMT</pubDate>
    <dc:creator>Eric_Beasley</dc:creator>
    <dc:date>2017-03-22T18:46:05Z</dc:date>
    <item>
      <title>How do you override warnings [not errors] and force execution of additions/changes when using the API to add or set values, especially in batch mode?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-you-override-warnings-not-errors-and-force-execution-of/m-p/3111#M289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you override warnings [not errors] and force execution of additions/changes when using the API to add or set values, especially in batch mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These warnings break the import process and damage further operations by not providing the needed items for those operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors on host addition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 170: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code" : "err_validation_failed",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Validation failed with 1 warning",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "warnings" : [ {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "Multiple objects have the same IP address 205.178.146.249"&lt;/P&gt;&lt;P&gt;&amp;nbsp; } ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Line 281: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code" : "err_validation_failed",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Validation failed with 1 warning",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "warnings" : [ {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "Multiple objects have the same IP address 50.79.16.164"&lt;/P&gt;&lt;P&gt;&amp;nbsp; } ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subsequent errors in group membership setting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 384: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code" : "generic_err_object_not_found",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Requested object [e-mail_mail.ericjbeasley.com] not found"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Line 463: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code" : "generic_err_object_not_found",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Requested object [PUBLIC-50x79x16x164] not found"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can override these warnings and add my objects in the GUI, but the API doesn't provide any way to do this and --ignore-errors true only keeps the error from breaking operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This EPIC FAIL needs a solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 18:46:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-you-override-warnings-not-errors-and-force-execution-of/m-p/3111#M289</guid>
      <dc:creator>Eric_Beasley</dc:creator>
      <dc:date>2017-03-22T18:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you override warnings [not errors] and force execution of additions/changes when using the API to add or set values, especially in batch mode?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-you-override-warnings-not-errors-and-force-execution-of/m-p/3112#M290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a way to instruct the API server to ignore warnings, just add &lt;SPAN style="font-family: 'courier new', courier;"&gt;"ignore-warnings":true&lt;/SPAN&gt; to your JSON parameters.&lt;/P&gt;&lt;P&gt;When using mgmt_cli add &lt;SPAN style="font-family: 'courier new', courier;"&gt;ignore-warnings false&lt;/SPAN&gt; to the command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 13:00:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-you-override-warnings-not-errors-and-force-execution-of/m-p/3112#M290</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2017-05-10T13:00:48Z</dc:date>
    </item>
  </channel>
</rss>

