https://cerbos.dev logo
#help
Title
# help
n

Nick Belovoskey

08/29/2023, 10:43 PM
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

Aldin Kiselica

08/30/2023, 5:12 AM
👋 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

Nick Belovoskey

08/30/2023, 4:05 PM
I see. The listPolicies endpoint exposed from the cerbosAdmin service has quite a few parameters in its request’s TypeScript type. Thanks!