<?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: API commands on gateways in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220687#M42226</link>
    <description>&lt;P&gt;I tested again, same issue, will see what else could be the problem...&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# gaia_api access -u admin --enable true&lt;BR /&gt;[Expert@CP-GW:0]# mgmt_cli show interface name "eth0" --context gaia_api --version 1.7 --format json&lt;BR /&gt;Username: admin&lt;BR /&gt;Password:&lt;BR /&gt;Couldn't connect to server&lt;BR /&gt;If you need to use a proxy server, add the '--proxy' parameter&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jul 2024 18:15:34 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2024-07-14T18:15:34Z</dc:date>
    <item>
      <title>API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220638#M42207</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;If I want to get info with json of my gateway interface I run this command:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;mgmt_cli -r true show interface name "eth0" --context gaia_api --version 1.7 --format json&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This command should run on mannagement server or gateway it self?&lt;/P&gt;
&lt;P&gt;If i run it on management server I get this:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;[Expert@SMS-TEST-API:0]# mgmt_cli -r true show interface name "eth0" --context gaia_api --version 1.7 --format json
{
   "code" : "generic_error",
   "message" : "Error 503. The Management API service is not available. Please check that the Management API server is up and running."
}
&lt;/LI-CODE&gt;
&lt;P&gt;even if api status is this:&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;[Expert@SMS-TEST-API:0]# api status
------------
API Settings:oubleshooting data, please run 'api status -s &amp;lt;comment&amp;gt;'
---------------------
Accessibility:                      Require local
Automatic Start:                    Enabled

Processes:

Name      State     PID       More Information
-------------------------------------------------
API       Started   17939
CPM       Started   17939     Check Point Security Management Server is running and ready
FWM       Started   17559
APACHE    Started   16609

Port Details:
-------------------
JETTY Internal Port:               54316
JETTY Documentation Internal Port: 56451
APACHE Gaia Port:                  443

Profile:
-------------------
Machine profile:                   Small Medium env resources profile
CPM heap size:                     1280m

                          Apache port retrieved from: httpd-ssl.conf


--------------------------------------------
Overall API Status: Started
--------------------------------------------

API readiness test SUCCESSFUL. The server is up and ready to receive connections

Notes:
------------
To collect troubleshooting data, please run 'api status -s &amp;lt;comment&amp;gt;'&lt;/LI-CODE&gt;
&lt;P&gt;and gaia api:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;[Expert@SMS-TEST-API:0]# gaia_api status

API Status:
---------------------
Build: cp991255069
Uptime: 2 days, 0:36:33.266998
Current Sessions: Unknown
Latest Version: 1.6

Processes:

Name           State        PID
---------------------------------
GAIA_API       Started      16712
GAIA_API_DOCS  Started      16710
APACHE         Started      16609
CONFD          Started      16607
CLISHD         Started      55921 16675
CELERY         Started      16674
REDIS          Started      16678

Port Details:
-------------------
APACHE Gaia Port:         443

--------------------------------------------
Overall API Status: Stopped
- Error: Apache server unreachable
- Warning: Documentation server is unreachable
--------------------------------------------&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;if irun the command directly on the gateway i get this:&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;[Expert@A-GW-TEST:0]# mgmt_cli -r true show interface name "eth0" --context gaia_api --version 1.7 --format json
Error: Failed to login to the management server&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;[Expert@A-GW-TEST:0]# gaia_api status

API Status:
---------------------
Build: cp991255069
Uptime: 0:03:47.452001
Current Sessions: 0
Latest Version: 1.6

Processes:

Name           State        PID
---------------------------------
GAIA_API       Started      18650
GAIA_API_DOCS  Started      18648
APACHE         Started      18581
CONFD          Started      18579
CLISHD         Started      23264 22034 18643
CELERY         Started      18642
REDIS          Started      18646

Port Details:
-------------------
APACHE Gaia Port:         443

--------------------------------------------
Overall API Status: Started
--------------------------------------------&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, how and where can I run Gaia API commands?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 13:39:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220638#M42207</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-07-13T13:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220639#M42208</link>
      <description>&lt;P&gt;Hey bro,&lt;/P&gt;
&lt;P&gt;All API commands are ran on the management server.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 14:35:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220639#M42208</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-13T14:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220640#M42209</link>
      <description>&lt;P&gt;Here is good example buddy.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/get-interfaces~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/get-interfaces~v1.9.1%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 14:44:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220640#M42209</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-13T14:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220641#M42210</link>
      <description>&lt;P&gt;The how to run Gaia APIs:&amp;nbsp; !&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#introduction~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#introduction~v1.7%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 14:47:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220641#M42210</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-07-13T14:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220642#M42211</link>
      <description>&lt;P&gt;But you dont run it on the fw, rather management server to get the data.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 14:49:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220642#M42211</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-13T14:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220643#M42212</link>
      <description>&lt;P&gt;running it on SMS i get this:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;[Expert@SMS-TEST-API:0]# mgmt_cli -r true show interface name "eth0" --context gaia_api --version 1.7 --format json
{
   "code" : "generic_error",
   "message" : "Error 503. The Management API service is not available. Please check that the Management API server is up and running."
}&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 13 Jul 2024 14:51:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220643#M42212</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-07-13T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220644#M42213</link>
      <description>&lt;P&gt;Dont worry, I will test it in the lab once home and let you know, just biking/swimming/running now : - )&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 14:56:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220644#M42213</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-13T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220652#M42214</link>
      <description>&lt;P&gt;Just ttried get interfaces flag, worked like a charm. Btw, dont see show interfaces option anywhere in API guide. Make sure, though most people would never change that, that web UI port for mgmt is NOT anything but 443.&lt;/P&gt;
&lt;P&gt;clish -&amp;gt; show web ssl-port&lt;/P&gt;
&lt;P&gt;Command I tested:&lt;/P&gt;
&lt;P&gt;[Expert@CP-MANAGEMENT:0]# mgmt_cli get-interfaces target-name "CP-GW" with-topology true&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 17:38:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220652#M42214</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-13T17:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220665#M42215</link>
      <description>&lt;P&gt;so why a command like:&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;mgmt_cli show interface name "eth0" --context gaia_api --version 1.7 --format json&lt;/LI-CODE&gt;
&lt;P&gt;does not work!&lt;/P&gt;
&lt;P&gt;where can i find examples of "target-name" GAIA API or Management API, because i could not find any info there!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 09:30:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220665#M42215</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-07-14T09:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220672#M42216</link>
      <description>&lt;P&gt;I dont see show interfaces anywhere in API guide, sorry. Below is what I ran yesterday.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/26777iD2519EC394A8658A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 15:53:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220672#M42216</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-14T15:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220675#M42219</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/38213"&gt;@the_rock&lt;/a&gt;&amp;nbsp;your reference is the Management API, the question here is about the GAIA API.&lt;/P&gt;
&lt;P&gt;You run the GAIA API on the gateway with an enabled user used to log into it. This is all described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#mgmt_cli~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#mgmt_cli~v1.7%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 17:01:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220675#M42219</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2024-07-14T17:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220677#M42220</link>
      <description>&lt;P&gt;what about these commands,&amp;nbsp;so where do you run these commands?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gaia-api.JPG" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/26778i63B089B78CCCC3A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="gaia-api.JPG" alt="gaia-api.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 17:03:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220677#M42220</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-07-14T17:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220678#M42221</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10384"&gt;@Alex-&lt;/a&gt;&amp;nbsp;You are 100% correct, my bad.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/65882"&gt;@Moudar&lt;/a&gt;&amp;nbsp;Let me test one you have issue with, you run it on the gateway.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 17:08:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220678#M42221</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-14T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220679#M42222</link>
      <description>&lt;P&gt;So, if i run this command on a gateway:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@A-GW-TEST:0]# mgmt_cli -r true show hostname --context gaia_api
Error: Failed to login to the management server&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@A-GW-TEST:0]# mgmt_cli show asset --context gaia_api --version 1.7 --format json
Username: admin
Password:
code: "generic_err_command_not_found"
errors: "Requested API command": [v1.7/login] not found'
message: "Command Not Found"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, why I am getting these errors!? Version 81.20&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 17:10:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220679#M42222</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-07-14T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220680#M42223</link>
      <description>&lt;P&gt;Stand by, will test it soon in the lab.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 17:11:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220680#M42223</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-14T17:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220681#M42224</link>
      <description>&lt;P&gt;I get different error, will troubleshoot later once Euro cup final game is done &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# mgmt_cli show interface name "eth0" --context gaia_api --version 1.7 --format json&lt;BR /&gt;Username: admin&lt;BR /&gt;Password:&lt;BR /&gt;Couldn't connect to server&lt;BR /&gt;If you need to use a proxy server, add the '--proxy' parameter&lt;BR /&gt;[Expert@CP-GW:0]# mgmt_cli show interfaces --context gaia_api --version 1.7 --format json&lt;BR /&gt;Username: amdin&lt;BR /&gt;Password:&lt;BR /&gt;Couldn't connect to server&lt;BR /&gt;If you need to use a proxy server, add the '--proxy' parameter&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 17:24:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220681#M42224</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-14T17:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220686#M42225</link>
      <description>&lt;P&gt;Make sure you allow your user to use the GAIA API, logging in is not enough.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;To &lt;STRONG&gt;grant&lt;/STRONG&gt; a user with GAIA API access, use the following command in expert mode:&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;EM&gt;[Expert@hostname]# gaia_api access --user &amp;lt;user&amp;gt; --enable true&lt;/EM&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#api_access~v1.7%20" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#api_access~v1.7%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 17:52:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220686#M42225</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2024-07-14T17:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220687#M42226</link>
      <description>&lt;P&gt;I tested again, same issue, will see what else could be the problem...&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# gaia_api access -u admin --enable true&lt;BR /&gt;[Expert@CP-GW:0]# mgmt_cli show interface name "eth0" --context gaia_api --version 1.7 --format json&lt;BR /&gt;Username: admin&lt;BR /&gt;Password:&lt;BR /&gt;Couldn't connect to server&lt;BR /&gt;If you need to use a proxy server, add the '--proxy' parameter&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 18:15:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220687#M42226</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-14T18:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220688#M42227</link>
      <description>&lt;P&gt;I think I got it now...not sure if it was command&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10384"&gt;@Alex-&lt;/a&gt;&amp;nbsp;gave, though gaia api was enabled for admin, but I realized I was using port 4434 for web UI, changed it to 443, installed policy, ran command he provided, good now...so give it a try&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/65882"&gt;@Moudar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;See below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# gaia_api access -u admin --enable true [Expert@CP-GW:0]#&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# mgmt_cli show interface name "eth0" --context gaia_api --version 1.7 --format json&lt;BR /&gt;Username: admin&lt;BR /&gt;Password:&lt;BR /&gt;{&lt;BR /&gt;"comments": "",&lt;BR /&gt;"enabled": true,&lt;BR /&gt;"ipv4-address": "172.16.10.249",&lt;BR /&gt;"ipv4-mask-length": "24",&lt;BR /&gt;"ipv6-address": "Not-Configured",&lt;BR /&gt;"ipv6-autoconfig": "Not configured",&lt;BR /&gt;"ipv6-local-link-address": "Not Configured",&lt;BR /&gt;"ipv6-mask-length": "Not-Configured",&lt;BR /&gt;"name": "eth0",&lt;BR /&gt;"type": "physical"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# clish&lt;BR /&gt;CLINFR0771 Config lock is owned by admin. Use the command 'lock database override' to acquire the lock.&lt;BR /&gt;CP-GW&amp;gt; show web ssl&lt;BR /&gt;ssl-port - Web configuration tool SSL port number&lt;BR /&gt;ssl3-enabled - Allow using SSL3 to access the web configuration tool&lt;BR /&gt;CP-GW&amp;gt; show web ssl-p&lt;BR /&gt;CP-GW&amp;gt; show web ssl-port&lt;BR /&gt;web-ssl-port 443&lt;BR /&gt;CP-GW&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 18:23:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220688#M42227</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-14T18:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: API commands on gateways</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220689#M42228</link>
      <description>&lt;P&gt;In Gaia API context you cannot use &lt;STRONG&gt;-r true&lt;/STRONG&gt; flag.&lt;/P&gt;
&lt;P&gt;Try running without it to see if works, for example:&lt;/P&gt;
&lt;P&gt;mgmt_cli -u &amp;lt;Gaia username&amp;gt; -p &amp;lt;Gaia password&amp;gt; show asset --version 1.7 --context gaia_api&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 18:45:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-commands-on-gateways/m-p/220689#M42228</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2024-07-14T18:45:09Z</dc:date>
    </item>
  </channel>
</rss>

