【问题标题】:Google Compute Engine API Key谷歌计算引擎 API 密钥
【发布时间】:2014-11-16 09:44:38
【问题描述】:

我想访问 Google Compute Engine 实例,然后我激活了 Google Compute Engine API,但是如何在 服务器密钥之间检索 API 密钥em> 和浏览器键,我应该创建哪一个?

【问题讨论】:

  • 您是否使用任何编程语言,或者您想从命令行访问 API?

标签: google-cloud-platform google-compute-engine


【解决方案1】:

如果您使用using OAuth 进行身份验证,您可以使用不同类型的凭据,例如 Web 服务器应用程序、已安装的应用程序、客户端应用程序等。您需要找出您需要的凭据. 在开发者控制台中,您可以create the credentials 您可能需要。在提供的链接中,您可以找到更多信息。

【讨论】:

    【解决方案2】:

    在向 Google API 验证您的项目时有多种方法,您将在下面的页面 [1] 中找到详细信息。使用 UI 登录到 Compute Engine 实例将使用第三种方法“服务帐户密钥”,您无需执行任何操作,因为默认情况下它将使用您的 Compute Engine 默认服务帐户。

    [1]https://cloud.google.com/docs/authentication/api-keys#creating_an_api_key

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-05
      • 2019-08-26
      • 2014-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-07
      相关资源
      最近更新 更多