- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hi,
I get different results when using the Web Services API contra the mgmt_cli.
Eg. when asking for total number of tcp services, I get 'total': 217 when using the API and "total" : 225 when asking via the CLI.
Same goes for other services eg. "Other".
It seems that API only returns objects created by the system and CLI returns all objects.
How precisely are you constructing the API query?
Show the full query you are making with all arguments.
How precisely are you constructing the mgmt_cli query? (Which also uses the API)
Show the full CLI command used.
What version/JHF level of management is this against?
Hi PhoneBoy,
API call is done with Python3's request-module, like this,
request:
url = https://ip-address/web_api/show-services-tcp
json_payload = {"limit" : 300, "offset" : 0, "details-level" : "uid"}
request_headers = {'Content-Type' : 'application/json', 'X-chkp-sid' : sessionID}
response = requests.post(url, json = json_payload, headers=request_headers)<200b>
response:
...
'total': 217
CLI call from SmartConsole,
request:
show services-tcp
response:
...
total: 226
The firewall is running R81.10
You are exceeding the default limit for that API call.
These limits exist to ensure the API server remains performant and should not be exceeded.
When you do, you may see the inconsistent results you are observing.
The proper way to get all the results is to make multiple API calls using the limit/offset parameters to ensure you get all the results.
Hi again,
I've tried using the default limit(50), same result:
API:
Like @Bob_Zimmerman mentioned, best to diff the output between the two and see what the differences are.
I also recommend a TAC case.
@Omer_Kleinstern
Hi @SuneB ,
Are you using a Multi-Domain Server?
Is the same administrator running the API and SmartConsole CLI?
Thanks,
Omer
Dump the results from both to files and diff them.
Are any services in the network call results but not the SmartConsole call results?
Which services are in the SmartConsole call results but not the network call results?
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY