启用服务

本页面介绍了如何启用和停用 SaaS 运行时。

启用服务

  1. 登录您的 Google Cloud 账号。如果您是 Google Cloud新手, 请创建一个账号来评估我们的产品在 实际场景中的表现。新客户还可获享 $300 赠金,用于 运行、测试和部署工作负载。
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

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

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  5. Verify that billing is enabled for your Google Cloud project.

  6. 如果尚未安装 Google Cloud CLI,请安装并初始化 。对于现有安装,请使用以下命令更新 Google Cloud CLI 的组件: gcloud components update

    如需检查 gcloud CLI 的版本,请运行以下命令:

    gcloud version
  7. 通过 Google Cloud 控制台或使用 gcloud 启用 API:
    1. 在 Google Cloud 控制台中,如需启用所需的 API,请在 概览 页面的 开始使用 标签页中,点击 Enable SaaS Runtime APIs
    2. 如需使用 gcloud 启用所需的 API,请运行以下命令:

      gcloud services enable saasservicemgmt.googleapis.com
      gcloud services enable compute.googleapis.com
      gcloud services enable artifactregistry.googleapis.com
      gcloud services enable config.googleapis.com
      gcloud services enable storage.googleapis.com
      gcloud services enable developerconnect.googleapis.com
      gcloud services enable cloudbuild.googleapis.com

      您需要启用所有这些 API,因为 SaaS 运行时会使用这些服务。

  8. 如需使用 SaaS 运行时,您还需要拥有正确的权限。如需了解详情,请参阅使用 IAM 进行访问权限控制

后续步骤

  • 详细了解 SaaS 运行时
  • 如需部署 SaaS 应用,请先创建 SaaS 产品
  • 不妨尝试快速入门,了解如何 使用 SaaS 运行时部署虚拟机。