AnsweredAssumed Answered

show-access-rulebase and large rulesets

Question asked by Phillip Runner on Jun 15, 2018
Latest reply on Jun 17, 2018 by Huseyin Rencber

I am using the REST API to create access-rules.  As part of the process, I'd like to validate that the rule name that the customer is submitting doesn't already exist in the rulebase/layer.  I was thinking I'd use 'show-access-rulebase' to export all the rules in the layer and then look for rule name matches. 

 

The code I have to do this works.  However, my question is, if the rulebase were to grow over 500 rules, 'show-access-rulebase' has a limit of 500 results.  What is the recommended way to do this on rulebases with large numbers of rules?

 

Is there a better way to do what I want to do?  If not, how can I process all the possible rules if > 500?

 

thanks!

Outcomes