【发布时间】:2018-09-22 22:43:14
【问题描述】:
我想使用 Google Cloud Functions 访问 Youtube Content Owner API。为此,GCF 使用的服务帐户必须有权访问该 API。
当我创建 Google Cloud Function 时,它会自动分配一个服务帐号。在这种情况下,“App Engine 默认服务帐户”。我对此有几个问题。
- Google Cloud Function 是否始终使用“App Engine 默认服务帐户”作为服务帐户?
- 在编辑云功能时,我看不到任何更改 Google 云功能服务帐户的方法。一旦为 Cloud Function 设置了服务帐号,就无法更改服务帐号,对吗?
- 如果默认服务帐户可以访问 Youtube Content Owner API,那么 Google Cloud Functions 也会拥有它吗?
【问题讨论】:
标签: google-cloud-platform youtube-api google-cloud-functions service-accounts