Hi,
I can't figure this out so weird.
So, my python make a POST REST API add-access-rule call to the checkpoint mgmt server, for tcp port 300 (service), and it works fine (ie, I can see the rules published onto the FW).
Then, I made another POST call, same exact source/destination, but a different port, and it fails with the RuntimeError error (below). Please see the body with parameters sent with the POST call. I verified the parameters settings like the access layer, position, source/destination ID's, against the FW, all are good, like with the tcp port 300 request.
I am using R81.10, which is Management API Version v1.8. Appreciate any prompt feedbacks.
RuntimeError: 400 Client Error: Bad Request for url: https://xyx.com/web_api/add-access-rule
https://sc1.checkpoint.com/documents/latest/APIs/#web/add-access-rule~v1.8.1%20