<?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: Management API error return values in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29162#M1743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there are no such plans due to major performance downgrade.&lt;/P&gt;&lt;P&gt;The command that executes must return as fast as possible.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2018 12:45:30 GMT</pubDate>
    <dc:creator>Robert_Decker</dc:creator>
    <dc:date>2018-06-08T12:45:30Z</dc:date>
    <item>
      <title>Management API error return values</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29159#M1740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite new when it comes to the usage of the management API and have a small question.&lt;/P&gt;&lt;P&gt;I've written a batch script which imports a list of "add access-rule commands" (e.g. line one: "mgmt_cli add access-rule layer [...]",&amp;nbsp; line two: "mgmt_cli add access-rule layer [...]", etc.). The script verifies each imported rule and gives the feedback of "ok" for a working one and an error message for non working ones. The error message contains the default return information of the api which looks like this (for a non existing object):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"code: "generic_err_object_not_found"&lt;/P&gt;&lt;P&gt;message: "Requested object [here is the object name] not found"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this message only contains the first error that the API can find within the command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is; is it possible to receive &lt;EM&gt;all&lt;/EM&gt; incorrect statements of a management api command and not just the first one that is found? Because by default if you try to execute a command, as mentioned before, only the first found error is being returned. It would be great, for troubleshooting purposes, to instantly see all incorrect or non existing statements of a command string. As currently, if errors are found, I need to change the command and run it again just to maybe see that later in the same command another error occured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Maik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 08:03:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29159#M1740</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2018-06-08T08:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Management API error return values</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29160#M1741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maik,&lt;/P&gt;&lt;P&gt;Management API errors&amp;nbsp;are raised on a first match, they are not accumulated.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 10:02:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29160#M1741</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-06-08T10:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Management API error return values</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29161#M1742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the fast reply!&lt;/P&gt;&lt;P&gt;Are there any plans for future API updates to also allow accumlated errors per command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 10:20:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29161#M1742</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2018-06-08T10:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Management API error return values</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29162#M1743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there are no such plans due to major performance downgrade.&lt;/P&gt;&lt;P&gt;The command that executes must return as fast as possible.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 12:45:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-error-return-values/m-p/29162#M1743</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-06-08T12:45:30Z</dc:date>
    </item>
  </channel>
</rss>

