Google 愿景 API 服务帐户权限

Google Vision API service account permission

我想通过服务帐户使用 Google Vision API。问题是没有角色只能访问 Vision API,我发现的唯一角色是 owner 角色,它太强大了。

是否有任何角色只授予 Vision API 访问权限或其他方式授予应用权限而不授予对 GCP 项目的完全访问权限?

Vision 目前没有特定角色 API。正如 Issue Tracker 上打开的 Quickstart it is advised to use the Owner role (which I totally agree that could be very dangerous to use). There are at least two Feature Requests 1 2 所示,我建议您加注星标并发表评论,以便实施这样的角色。同时,您可以在评论中关注@johnhanley 提供的建议。

Vision API 不需要角色。我建议不要在服务帐户上扮演任何角色。