启用和停用服务

本页面介绍如何启用和停用 Artifact Registry。

如果您使用 Container Registry,可以在同一项目中启用 Artifact Registry。每项服务都独立运行。

如需了解 Artifact Registry 的费用,请参阅价格

如需了解如何启用 Artifact Analysis API 以及漏洞扫描的价格,请参阅 Artifact Analysis 文档。

启用服务

  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: