本頁說明如何啟用及停用 Artifact Registry。
正在啟用服務
-
In the Cloud de Confiance console, on the project selector page, select or create a Cloud de Confiance 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 theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Cloud de Confiance project.
- 如果尚未安裝 Google Cloud CLI,請先安裝並初始化。如要更新現有安裝項目,請使用下列指令更新 Google Cloud CLI 的元件:
gcloud components update。如要查看 gcloud CLI 版本,請執行下列指令:
gcloud version
- 從Cloud de Confiance 控制台啟用 API,或執行下列
gcloud指令:gcloud services enable artifactregistry.googleapis.com
停用服務
停用 Artifact Registry API 之前,請先確認要保留的構件均已存放於其他位置。建議您先刪除存放區,再停用 API。
停用 Artifact Registry API 時,會發生下列情況:
- 存放區和存放區中的構件會變成無法存取的狀態。
- API 停用後,資料可能會在 7 天內刪除。
如要透過 Cloud de Confiance 控制台停用 API,請按照下列步驟操作:
主控台
- 前往 Artifact Registry 的 API 總覽頁面。
- 選取已啟用 API 的專案。
- 點選「管理」。
- 點選「停用 API」。
gcloud
執行下列指令,為目前專案停用 API:
gcloud services disable artifactregistry.googleapis.com