<?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: gaia api in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/129956#M6266</link>
    <description>&lt;P&gt;My fault I was just running mgmt_cli from the data plane. It works well from the mgmt plane.&lt;BR /&gt;&lt;BR /&gt;The only issue remaining is the interface commands only have access to the mgmt plane and not to the data plane which is usually where we would like to be able to make changes.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 14:56:43 GMT</pubDate>
    <dc:creator>Luis_Miguel_Mig</dc:creator>
    <dc:date>2021-09-22T14:56:43Z</dc:date>
    <item>
      <title>gaia api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/129936#M6264</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am having issues trying to set up the gaia api in one of my gateways running r80.40 take 120.&lt;BR /&gt;&lt;BR /&gt;If I just run in the local gaia:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mgmt_cli login user me password secret --context gaia_api&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;mgmt_cli show hostname --context gaia_api&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Couldn't connect to server&lt;BR /&gt;&amp;nbsp; &amp;nbsp; If you need to use a proxy server, add the '--proxy' parameter&lt;/P&gt;&lt;P&gt;As far as I understand there is not limitation by ip.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;add allowed-client host any-host&lt;/P&gt;&lt;P&gt;The api is up and I am testing with the admin user. I have even granted permission for the admin user but it seems like the admin user has not rights for api access&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;gaia_api access -u admin -e true&lt;/P&gt;&lt;P&gt;show rba user admin&lt;BR /&gt;User&lt;BR /&gt;admin&lt;BR /&gt;access-mechanism Web-UI&lt;BR /&gt;access-mechanism CLI&lt;BR /&gt;role adminRole&lt;/P&gt;&lt;P&gt;If I run it through web services I get the folling error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "code": "generic_err_command_not_found", 
  "errors": "Requested API command: [login] not found", 
  "message": "Command Not Found"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gaia_api status&lt;/P&gt;&lt;P&gt;API Status:&lt;BR /&gt;---------------------&lt;BR /&gt;Build: cp991255022&lt;BR /&gt;Uptime: 0:00:01.940264&lt;BR /&gt;Current Sessions: 0&lt;BR /&gt;Latest Version: 1.5&lt;/P&gt;&lt;P&gt;Processes:&lt;/P&gt;&lt;P&gt;Name State PID&lt;BR /&gt;---------------------------------&lt;BR /&gt;GAIA_API Started 30762&lt;BR /&gt;GAIA_API_DOCS Started 30761&lt;BR /&gt;APACHE Started 13593&lt;BR /&gt;CONFD Started 12535&lt;BR /&gt;CLISHD Started 12615&lt;BR /&gt;CELERY Started 30759&lt;BR /&gt;REDIS Started 30760&lt;/P&gt;&lt;P&gt;Port Details:&lt;BR /&gt;-------------------&lt;BR /&gt;APACHE Gaia Port: 443&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;BR /&gt;Overall API Status: Started&lt;BR /&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;Am I missing anything?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 11:33:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/129936#M6264</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-09-22T11:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: gaia api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/129943#M6265</link>
      <description>&lt;P&gt;I have tested with postman and it is okay&amp;nbsp; - sk143612&lt;/P&gt;&lt;P&gt;I wonder what is the problem with mgmt_cli&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 13:54:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/129943#M6265</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-09-22T13:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: gaia api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/129956#M6266</link>
      <description>&lt;P&gt;My fault I was just running mgmt_cli from the data plane. It works well from the mgmt plane.&lt;BR /&gt;&lt;BR /&gt;The only issue remaining is the interface commands only have access to the mgmt plane and not to the data plane which is usually where we would like to be able to make changes.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 14:56:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/129956#M6266</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-09-22T14:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: gaia api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/130476#M6279</link>
      <description>&lt;P&gt;I came across the ansible agnostic cli_command. It is very useful and powerful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/cli_command_module.html" target="_blank"&gt;https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/cli_command_module.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This is the list of supported platforms&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.ansible.com/ansible/latest/network/user_guide/platform_index.html" target="_blank"&gt;https://docs.ansible.com/ansible/latest/network/user_guide/platform_index.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be great if ansible could add support to checkpoint gaia too.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 15:48:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/130476#M6279</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-09-28T15:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: gaia api</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/131046#M6309</link>
      <description>&lt;P&gt;another suggestion to include in the gaia api/ansible collection -&amp;gt; securexl ddos&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 14:32:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/gaia-api/m-p/131046#M6309</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-10-05T14:32:38Z</dc:date>
    </item>
  </channel>
</rss>

