Is there functionality (or plans to add): Searchin...
# help
n
Is there functionality (or plans to add): Searching a reduced set of policies via listPolicies(searchCriteria), where searchCriteria is a specific scope, for example?
a
👋 I might be a bit off here, but as per https://docs.cerbos.dev/cerbos/latest/api/admin_api.html#_list_policies there is a way and an explanation on how can you do that:
Use
nameRegexp
,
scopeRegexp
and
versionRegexp
to filter using the policy name, scope or version with case insensitive regular expressions.
n
I see. The listPolicies endpoint exposed from the cerbosAdmin service has quite a few parameters in its request’s TypeScript type. Thanks!