启用和停用 Secure Source Manager

本页面介绍了如何启用和停用 Secure Source Manager。

所需的角色

如需获得启用或停用 Secure Source Manager 所需的权限,请让您的管理员为您授予项目的 Service Usage Admin 角色 (roles/serviceusage.serviceUsageAdmin) IAM 角色。 如需详细了解如何授予角色,请参阅管理对项目、文件夹和组织的访问权限

您也可以通过自定义角色或其他预定义角色来获取所需的权限。

如需了解如何授予 Secure Source Manager 角色,请参阅使用 IAM 进行访问权限控制向用户授予实例访问权限

启用 Secure Source Manager

  1. Sign in to your Google Account.

    If you don't already have one, sign up for a new account.

  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Enable the Secure Source Manager API.

    Enable the API

  4. Install the Google Cloud CLI.

  5. 如果您使用的是外部身份提供方 (IdP),则必须先使用联合身份登录 gcloud CLI

  6. 如需初始化 gcloud CLI,请运行以下命令:

    gcloud init
  7. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  8. Enable the Secure Source Manager API.

    Enable the API

  9. Install the Google Cloud CLI.

  10. 如果您使用的是外部身份提供方 (IdP),则必须先使用联合身份登录 gcloud CLI

  11. 如需初始化 gcloud CLI,请运行以下命令:

    gcloud init
  12. 安装 beta gcloud CLI 组件:
    gcloud components install beta
  13. 停用 Secure Source Manager

    如需停用 Secure Source Manager,请执行以下操作:

    1. 请确保您想要保留的所有信息都已保存到其他位置。我们建议您在停用 Secure Source Manager 之前先删除项目中的代码库
    2. 在 Google Cloud 控制台中,前往 Secure Source Manager 的 API 概览页面。
    3. 选择要停用 Secure Source Manager 的项目。
    4. 点击管理
    5. 点击停用 API

    后续步骤