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

API Testing

How to  generate "x-chkp-sid" for the api testing in POSTMAN 

https://<mgmt-server>:<port>/web_api/show-logs

for testing this API we need Request Headers (x-chkp-sid)

ref link

 

Thanks in Advandce..!

0 Kudos
1 Solution

Accepted Solutions
PhoneBoy
Admin
Admin

You need to log in to use the API.
That starts with the login endpoint, which will provide a sid upon successful authorization.
That sid can then be used in future API calls.
See: https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/login~v1.8%20 

In general, you need to be mindful of the following flow when working with the API:

  1. login (gets a sid)
  2. "do stuff"
  3. publish (if write changes occur)
  4. logout

View solution in original post

0 Kudos
3 Replies
PhoneBoy
Admin
Admin

You need to log in to use the API.
That starts with the login endpoint, which will provide a sid upon successful authorization.
That sid can then be used in future API calls.
See: https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/login~v1.8%20 

In general, you need to be mindful of the following flow when working with the API:

  1. login (gets a sid)
  2. "do stuff"
  3. publish (if write changes occur)
  4. logout
0 Kudos
Hugo_vd_Kooij
Advisor

Just a quick warning. 

"do stuff" is not unlimited. If you need to to a lot of things you better do this in bacthes where you repeat step 2 and 3 for each batch.

Just for fun try to import 3000 networks and 1000 groups of various sorts and then try to publish that. it will take a while. (Enough to grind the beans by hands to make your own coffee.)

<< We make miracles happen while you wait. The impossible jobs take just a wee bit longer. >>
0 Kudos
PhoneBoy
Admin
Admin

That number of operations might also fail if you don't have sufficient memory on your management.
Publishing after a couple hundred write/modify operations is recommended.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events