cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

set-access-rule - API

I was looking at moving a rule from position 1 to 3 with the following:

{

  "uid": "rule-uid-here",

  "layer" : "Network",

  "new-position" : 3,

  "details-level" : "full"

}

Response: 400 Bad Request

{

  "code": "generic_err_invalid_parameter",

  "message": "new-position parameter temporarily unsupported"

}

Is there a way I can simply move rules around without deleting/adding them?

Originally, instead of using "new-position" : 3, I was using "position" : 3, which returns a status 200 OK but was not moving the rule. Should it be returning status 200 OK when using "position"?

Tags (3)
0 Kudos
1 Reply

Re: set-access-rule - API

Hi Joshua,

The set-access-rule API does not have a "new-position" or "position" arguments. See https://sc1.checkpoint.com/documents/R80/APIs/index.html#web/set-access-rule

Unfortunately, you cannot re-position a rule using the existing APIs. This is a feature that we'd like to add to one of the upcoming releases.

0 Kudos