- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
10 December @ 5pm CET / 11am ET
Improve Your Security Posture with
Threat Prevention and Policy Insights
Overlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hello everyone,
I'm having trouble adding new network groups using the API add-group endpoint. I was able can create new hosts using the add-host endpoint so that confirms that my user does have Write permissions too so the issue is not related to that. I followed the documentation part which states the API has a option for "add-group with multiple members" but can't seem to make it work, I end up getting 404 client errors for some reason. When I try the format for adding a group with a single member I also keep getting 404 errors. Is there something I don't know about? Maybe this option is deprecated or something?
Here's an example just like the payload I'm trying to POST to the API add-group endpoint...
{
"name" : "my_testing_group",
"members" : [ "192.168.1.156", "192.168.1.158" ]
}
Hi,
I see that in the member you used IPs and not hostname.
I reproduced in my env. I tried to add IPs to a group and got a failure, after creating hosts for IPs I managed to add them with hostname. Can you try to create an object for them as well and then retry?
Hi,
I see that in the member you used IPs and not hostname.
I reproduced in my env. I tried to add IPs to a group and got a failure, after creating hosts for IPs I managed to add them with hostname. Can you try to create an object for them as well and then retry?
Hey,
the provided solution worked, but only when I added the hosts using the API mgmt_cli command line, when adding using the Web Services API (which I used via Python) it seems like the hosts objects are not saved and don't show up anywhere, even after publishing. Weird thing is that I can make multiple add-host commands in the web services API and it doesn't complain about repeated hosts being added, however, using the mgmt_cli and adding the same host more than once displays a error message since the host already exists of course.
Any case the publish is to another session? When you run a few commands do you save/provide session ID?
Hey Amir,
I found the problem, my python code ended my user session too soon, not giving time for checkpoint to publish the session properly, I fixed that. Your help with the insight of using hostnames instead of IPs solved my main problem. Thank you for the help Amir!
Would be great if you could share the Python code snippet. I'm currently working with the web services API and am curious what everyone's using as far as modules/libraries and especially how they're handling sessions and timeouts.
Personally, I'm using aiohttp so I can make the calls async, but would image requests is the most popular.
Hey I'm not sure I can share my code, but I can tell you I'm using the requests library, first using the /login endpoint, then using the returned token from the POST request to make further queries in the API.
You're welcome
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Thu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasFri 12 Dec 2025 @ 10:00 AM (CET)
Check Mates Live Netherlands: #41 AI & Multi Context ProtocolTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY