Hello! Is it possible to do a GetPolicy with Go S...
# help
m
Hello! Is it possible to do a GetPolicy with Go SDK for a scoped policy?
c
Yes. The
GetPolicy
RPC just takes a list of policy IDs. A scoped policy ID looks like
<kind>.<name>.v<version>/<scope>
if you're using any of the database stores. If you're using a disk store, the ID is the name of the policy file. You can do a
ListPolicies
call or use
cerbosctl get
to list your policies and figure out their IDs.