Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
jt-jt
Participant

Web API login error

Hi all,

Looking for a bit of help here please.

I am looking to make use of the web API call (currently trying to run tests using postman) so the first call is to login and obtain the session ID.

We had already enabled the IP access on the API to:

Accessibility:                      Require all granted

It was previously just returning the login page HTML (ref here: Solved: Enabling web api - Check Point CheckMates)

Am I missing something on why making the /login call will return the following?

    "code""err_login_failed",
    "message""Authentication to server failed."
 
The login I am using does have adminRole so should be ok?
 
Please advise.
Many thanks in advance.
0 Kudos
3 Replies
_Val_
Admin
Admin

Which API are you trying to reach? Management, Gaia? Anything else?

0 Kudos
jt-jt
Participant

Oh sorry, it's the management API.

Objective is to have a page built to query the logs, but first I need to get the login session ID.

0 Kudos
_Val_
Admin
Admin

For that, you should authenticate as SmartConsole admin, not a local Gaia admin. Also, make sure MGMT API client IP is allowed.

0 Kudos