8.4.4.3. 查询权限
要查询与资源关联的权限,请发送 HTTP GET 请求,如下所示:
http://${host}:${port}/realms/${realm-name}/authz/protection/uma-policy?resource={resource_id}
要查询给定名称的权限,请发送 HTTP GET 请求,如下所示:
http://${host}:${port}/realms/${realm-name}/authz/protection/uma-policy?name=Any people manager
要查询与特定范围关联的权限,请发送 HTTP GET 请求,如下所示:
http://${host}:${port}/realms/${realm-name}/authz/protection/uma-policy?scope=read
要查询所有权限,请发送 HTTP GET 请求,如下所示:
http://${host}:${port}/realms/${realm-name}/authz/protection/uma-policy
当查询服务器以获取权限时,首先使用 参数,最大 结果来限制结果。