Google Cloud Platform:如何重命名 Google Cloud Platform 项目?

Google Cloud Platform: How do I rename a Google Cloud Platform project?

是否可以重命名 Google Cloud Platform 项目?如果可以,怎么做?

我不需要更改项目 ID 或编号。但是我确实想把项目改成name(这个名字是by/for人类用来识别云平台项目的)。

感谢任何提示!

  1. 使用左上角的汉堡菜单切换到“IAM 和管理”部分
  2. 点击设置
  3. 键入新名称
  4. 按保存
  5. 重新加载页面

对于那些想知道如何更改项目 ID 的人,the official documentation says

A project ID cannot be changed after the project is created, so if you are creating a new project, be sure to choose an ID that you'll be comfortable using for the lifetime of the project.

最简单的方法是通过左上角的汉堡菜单 > "IAM & Admin" > 设置。 这些是 screenshots to the Google Cloud Product Settings

您可以使用 gcloud projects update 命令更改项目名称。

首先,您需要获取关联的项目ID。

gcloud projects list

这是示例命令。

gcloud projects update your-old-project-id --name="New project name"

更多信息请参考this官方文档。

注意:您不能更改项目的ID编号的ID,您只能更改 Name.

自从@Sphinxxx 在 2017 年发布了此问题的答案以来,Google 控制台菜单似乎发生了变化。(除非出于某种原因我的 Google 帐户与其他帐户不同。请纠正我如果我错了。)

仍然可以重命名项目,但要进入“设置”页面,您必须先通过 "IAM & admin" 菜单。以下是我执行的步骤:

  • 从"Google APIs"
  • 右侧的菜单中选择项目名称
  • 通过单击 "Google APIs"
  • 左侧的三个栏 ("hamburger") 打开 导航菜单
  • 将鼠标悬停在 IAM 和管理 上以查看该菜单
  • 点击设置打开设置页面,您可以在其中修改项目名称

Screen shot of IAM & admin menu

注意:也可以使用项目 ID 通过 URL 直接进入设置页面: - https://console.cloud.google.com/iam-admin/settings?project=your-project-id

  1. 转到 IAM
  2. 设置
  3. 重命名您的项目

  1. 使用左上角的汉堡菜单切换到“IAM 和管理”部分。
  2. 点击设置。
  3. 键入新名称。
  4. 按保存。
  5. 重新加载页面