<?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 Gaia API flaws in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/176839#M7585</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was tasked to develop a script lately to check routing and antispoofing on a Check Point cluster. I started with python and the Gaia API but gave up very soon and wrote a shell script because of two flaws:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The show-static-route call returns an error if the requested route is not explicitly set. There is always a route if there is a default gateway.&lt;/LI&gt;&lt;LI&gt;Other than stated in the documentation, the show-static-route call does not return the outgoing interface,&amp;nbsp;which significantly limits the usefulness of this api call.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Are&amp;nbsp;there plans to correct these issues?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 06:46:23 GMT</pubDate>
    <dc:creator>dj0Nz</dc:creator>
    <dc:date>2023-03-31T06:46:23Z</dc:date>
    <item>
      <title>Gaia API flaws</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/176839#M7585</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was tasked to develop a script lately to check routing and antispoofing on a Check Point cluster. I started with python and the Gaia API but gave up very soon and wrote a shell script because of two flaws:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The show-static-route call returns an error if the requested route is not explicitly set. There is always a route if there is a default gateway.&lt;/LI&gt;&lt;LI&gt;Other than stated in the documentation, the show-static-route call does not return the outgoing interface,&amp;nbsp;which significantly limits the usefulness of this api call.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Are&amp;nbsp;there plans to correct these issues?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 06:46:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/176839#M7585</guid>
      <dc:creator>dj0Nz</dc:creator>
      <dc:date>2023-03-31T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API flaws</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/176955#M7589</link>
      <description>&lt;P&gt;What version of the API is it?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 23:52:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/176955#M7589</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-03-31T23:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API flaws</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/176975#M7593</link>
      <description>&lt;P&gt;It's 1.7, latest version.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 08:44:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/176975#M7593</guid>
      <dc:creator>dj0Nz</dc:creator>
      <dc:date>2023-04-01T08:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API flaws</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/177163#M7595</link>
      <description>&lt;P&gt;I've flagged this to the relevant R&amp;amp;D team, will see if I can get some feedback.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 17:20:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/177163#M7595</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-04-03T17:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API flaws</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/178124#M7624</link>
      <description>&lt;P&gt;I did get some feedback from R&amp;amp;D on these questions.&lt;BR /&gt;Unfortunately, it is operating as expected.&lt;/P&gt;
&lt;P&gt;Generally, these API calls will only show the contents of explicitly configured routes.&lt;BR /&gt;The interface is only shown if you configure a route with an explicit interface as the destination.&lt;/P&gt;
&lt;P&gt;Interestingly enough, when you use show-routes-static, the interface for the default route is included in the output.&lt;BR /&gt;You can see an example in the API docs: &lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#web/show-routes-static~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#web/show-routes-static~v1.7%20&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;It seems like the other API calls for different sources of routes (e.g. show-routes-bgp) includes interfaces in their output.&lt;BR /&gt;Which suggests they might be more suitable for your intended purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 23:49:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/178124#M7624</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-04-14T23:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API flaws</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/178233#M7626</link>
      <description>&lt;P&gt;Okay, "&lt;SPAN&gt;operating as expected" is the answer I was expecting to be honest.&amp;nbsp;&lt;/SPAN&gt;I must have missed the show-routes-static call, which is (together with some json queries) all I needed. Code is at Github (&lt;A href="https://github.com/dj0nz/cptools/blob/main/gaia_api_poc.py" target="_blank"&gt;https://github.com/dj0nz/cptools/blob/main/gaia_api_poc.py&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 12:26:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-flaws/m-p/178233#M7626</guid>
      <dc:creator>dj0Nz</dc:creator>
      <dc:date>2023-04-17T12:26:56Z</dc:date>
    </item>
  </channel>
</rss>

