このページでは、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
(
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 がまだインストールされていない場合は、インストールして初期化します。既存のインストール環境の場合は、
gcloud components updateコマンドを使用して Google Cloud CLI のコンポーネントを更新します。gcloud CLI のバージョンを確認するには、次のコマンドを実行します。
gcloud version
- Cloud de Confiance コンソールから、または次の
gcloudコマンドを使用して、API を有効にします。gcloud services enable artifactregistry.googleapis.com
- リポジトリとリポジトリ内のアーティファクトにアクセスできなくなります。
- API を無効にしてから 7 日以内にデータが削除される場合があります。
- Artifact Registry の API の概要ページに移動します。
- API を有効にするプロジェクトを選択します。
- [管理] をクリックします。
- [API を無効にする] をクリックします。
サービスの無効化
Artifact Registry API を無効にする前に、保持する必要があるアーティファクトが別の場所で使用可能であることを確認してください。API を無効にする前に、リポジトリを削除することをおすすめします。
Artifact Registry API を無効にすると、次の条件が適用されます。
Cloud de Confiance コンソールから API を無効にするには:
Console
gcloud
次のコマンドを実行して、現在のプロジェクトの API を無効にします。
gcloud services disable artifactregistry.googleapis.com