- Products
- Learn
- Local User Groups
- Partners
- More
Policy Insights and Policy Auditor in Action
19 November @ 5pm CET / 11am ET
Access Control and Threat Prevention Best Practices
Watch HereOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hello everybody!
I wanted to add a new simple cluster object over the mgmt-API including a list of groups with the "add-simple-cluster" command.
However if i add the "groups" parameter with a list of group names as value an error occurs:
"Validation failed with 1 blocking-error -> blocking-errors: -message: One of the objects that you selected could not be linked."
I think the "groups" parameter is not expecting a list of group names.
I don't understand it because with the "add-simple-gateway" command it works as expected.
So does anybody know what the groups parameter expects and can provide an example? Because in the Management API Reference it only says "Object" as an expected value for the "groups" parameter, but i don't know what is meant by that?
Here is a sample json where i get this error:
{
"name" : <name>,
"ip-address" : <ip-address>,
"groups" : [list of group names]
}
Can you send an example of command you tried? I can give it a go in R81.20 lab
Andy
I use the Python sdk API library:
GitHub - CheckPointSW/cp_mgmt_api_python_sdk: Check Point API Python Development Kit simplifies the ...
Here is sample:
MGMT_SERVER_IP = <server-ip>
client_args = APIClientArgs(server=MGMT_SERVER_IP)
with APIClient(client_args) as client:
data = {
"name" : "cluster-name",
"ip-address" : "1.1.1.1",
"groups" : [list of existing group names]
}
response = client.api_call("add-simple-cluster", data)
if response.success:
print("success")
else:
print(f"{response.error_message}")
I was thinking below is what you tried, but let me test it.
Andy
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-simple-cluster~v1.9%20
I am using the WEB-API and therefore a python library exist which handles the https connection and so on.
But basically it is the same as normal, because i have to build the json and then call the library function to send it to the server.
Surely I have to login before calling the library function with the login command.
Sorry, forgot to update, apologies. I got same issue as you in my R81.20 lab, but will check again tomorrow. Seems like there is minor syntax error somewhere, just my gut feeling, but I could be mistaken.
Andy
Anything new?
Im off today, was travelling, but will check soon and let you know.
Cheers,
Andy
K, I just followed example at the bottom of this link and worked fine.
Andy
https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-simple-cluster~v1.9%20
Did you use a list of groups or what did you use?
And I am using a R81.10 Management Server, can you test it with this version as well?
I did and it failed.
Andy
Honestly, I would contact TAC and provide all the details, as it appears R81.10 code related.
Andy
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Wed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchWed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasWed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY