Quiz Entry - updated: 2026.11.26
How do you check by hand, with curl, that the Check Point web API is reachable and accepts your credentials? What should come back?
POST a JSON body with user and password to https://<management-server>/web_api/login; a working API answers with a JSON object containing a session id, sid.
curl -k -X POST -H "Content-Type: application/json" \
-d '{"user": "apiuser", "password": "<secret>"}' \
https://mgmt.example.net/web_api/login
- Every API command is an HTTPS POST to
/web_api/<command>with a JSON body. loginopens a session and returns asid(plus details such as the session UID and timeout).- Every later call sends that token in the HTTP header
X-chkp-sid: <sid>. That is how the server knows which session (and which private changes) a call belongs to. -ktells curl to skip certificate validation, because a lab management server uses a self-signed certificate. That is acceptable for a quick lab test, not for production.
If the reply has no sid (a timeout, an HTML page, "Forbidden"), the problem is below Ansible: the API is not running, the access setting does not allow your IP, or the account lacks API permission. Ansible's Check Point connection plugin does exactly this login call itself, so fix this test first.
Go deeper:
checkpoint httpapi plugin (Ansible docs) — the connection plugin that performs this login and sends
X-chkp-sid.REST (Wikipedia) — the HTTP-based API style the web API follows.