CheckPointSW / cp_mgmt_api_python_sdk

Check Point API Python Development Kit simplifies the use of the Check Point Management APIs.
Apache License 2.0
92 stars 59 forks source link

The rule to add in specific section parameter not accepting #51

Closed Nakuldiwane closed 1 year ago

Nakuldiwane commented 1 year ago

If we want to add a rule in a specific section (e.g we have a clean up rule, Main rule ) add a rule in "Main Rule" section at the bottom is not allowing

chkp-edenbr commented 1 year ago

Hi @Nakuldiwane ,

Please share the function, command and payload you are using. Did you get an error when attempting to run the command? If so please share it as well.

Thanks, Eden

Nakuldiwane commented 1 year ago

image

While using the parameter "position.bottom": "Main rule"

This gives a syntax error image

image

chkp-edenbr commented 1 year ago

Hi @Nakuldiwane, As described in the attached photo, you have a syntax error positioned at the ')' which should appear after '}' and not before. Regards, Eden

Nakuldiwane commented 1 year ago

image

Thanks for that point.

Now facing this issue.

chkp-edenbr commented 1 year ago

Hi @Nakuldiwane ,

Our API documentation contains usage examples https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-access-rule~v1.9%20 The position should be written as follows: "position" : { "bottom" : "main rule" }

Nakuldiwane commented 1 year ago

@chkp-edenbr : Thanks it is working