サービスの有効と無効を切り替える

このページでは、Artifact Registry を有効または無効にする手順について説明します。

Container Registry を使用している場合は、同じプロジェクトで Artifact Registry を有効にできます。各サービスは独立して動作します。

Artifact Registry に対する課金については、料金をご覧ください。

Artifact Analysis API の有効化と脆弱性スキャンの料金については、Artifact Analysis のドキュメントを参照してください。

サービスの有効化

  1. アカウントにログインします。 Google Cloud を初めて使用する場合は、 アカウントを作成して、実際のシナリオで Google プロダクトのパフォーマンスを評価してください。 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 がまだインストールされていない場合は、インストールして初期化します。既存のインストール環境の場合は、gcloud components update コマンドを使用して Google Cloud CLI のコンポーネントを更新します。

    gcloud CLI のバージョンを確認するには、次のコマンドを実行します。

    gcloud version
  7. コンソール から、または次の gcloud コマンドを使用して、API を有効にします。Google Cloud
    gcloud services enable artifactregistry.googleapis.com

サービスの無効化

Artifact Registry API を無効にする前に、保持する必要があるアーティファクトが別の場所で使用可能であることを確認してください。API を無効にする前に、 リポジトリを削除することをおすすめします。

Artifact Registry API を無効にすると、次の条件が適用されます。

  • リポジトリとリポジトリ内のアーティファクトにアクセスできなくなります。
  • API を無効にしてから 7 日以内にデータが削除される場合があります。

コンソールから API を無効にするには: Google Cloud

Console

  1. Artifact Registry の API の概要ページに移動します。
  2. API を有効にするプロジェクトを選択します。
  3. [管理] をクリックします。
  4. [API を無効にする] をクリックします。

gcloud

次のコマンドを実行して、現在のプロジェクトの API を無効にします。

gcloud services disable artifactregistry.googleapis.com

次のステップ