Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Steven_Bade
Participant
Jump to solution

Enabling web api

Probably a really basic question, but i can't seem to find anything.  I'm attempting a simple login to R80.10 via the api.  I'm using postman, when i send the POST i get a web page returned instead of json.  

<!DOCTYPE html>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9,EmulateIE8">
<meta name="others" content="WEBUI LOGIN PAGE" />
<TITLE>Gaia</TITLE>
<link rel="shortcut icon" href="https://community.checkpoint.com/login/fav.ico">
<link rel="stylesheet" type="text/css" href="https://community.checkpoint.com/login/ext-all.css" />
<link rel="stylesheet" type="text/css" href="https://community.checkpoint.com/login/login.css" />
<STYLE TYPE="text/css">
.ext-ie .webui-login-fld{font-size: 11px;}
</STYLE>
<script type="text/javascript" src="/login/ext-base.js"></script>
<script type="text/javascript" src="/login/ext-all.js"></script>
<script type="text/javascript">var errMsgText = "";var bannerMsgText = "";bannerMsgText += "This system is for authorized use only.";var hostname='';var version='R80.10';var formAction="/cgi-bin/home.tcl";</script>
<script type="text/javascript" src="/login/login.js"></script>
</HEAD>
<BODY>
<noscript>
<div style='font-size:20px;position:relative;top:100px;'>For full functionality of this site it is necessary to enable JavaScript.</div>
</noscript>
</BODY>
</HTML>

Any pointers

32 Replies
rishshah
Explorer

After you have enabled the Management API using either the command or from the GUI. Verify the status of the API  from the management cli. Execute the below command  to verify if the status of the API. 

> api status

CheckpointR> api status

API Settings:
---------------------
Accessibility: Require all granted
Automatic Start: Enabled

Processes:

Name State PID More Information
-------------------------------------------------
API Stopped
CPM Starting 8712 Check Point Security Management Server is during initialization
FWM Started 5666
APACHE Started 5055

Port Details:
-------------------
JETTY Internal Port: 50276
APACHE Gaia Port: 443
Apache port retrieved from: httpd-ssl.conf

--------------------------------------------
Overall API Status: The API Server Is Not Running!
--------------------------------------------

Notes:
------------
To collect troubleshooting data, please run 'api status -s <comment>'

If it has not started, execute the below command.

> api start

Alternatively, restart the API

> api restart

0 Kudos
Sanjay_S
Advisor
I restarted the api but still the overall api status is as below.

Overall API Status: Waiting for CPM to start

Please let me know what can be done on this?

> api status

API Settings:
---------------------
Accessibility: Require all granted
Automatic Start: Enabled

Processes:

Name State PID More Information
-------------------------------------------------
API Started 943
CPM Starting 6450 Check Point Security Management Server is during initialization
FWM Started 11530
APACHE Started 4988

Port Details:
-------------------
JETTY Internal Port: 50277
APACHE Gaia Port: 443
Apache port retrieved from: httpd-ssl.conf


--------------------------------------------
Overall API Status: Waiting for CPM to start
--------------------------------------------

Notes:
------------
To collect troubleshooting data, please run 'api status -s <comment>'
0 Kudos
_Val_
Admin
Admin

Try again. It takes some moments for CPM to start. You can also check CPM status any time from CLI, just run $FWDIR/scripts/cpm_status.sh from expert shell.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events