Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan langkah-langkah untuk mengaktifkan dan menonaktifkan Artifact Registry.
Jika menggunakan Container Registry, Anda dapat mengaktifkan Artifact Registry di project yang sama. Setiap layanan beroperasi secara independen.
Lihat Harga untuk mengetahui informasi tentang biaya Artifact Registry.
Lihat dokumentasi Artifact Analysis untuk mengetahui informasi tentang cara mengaktifkan API Artifact Analysis dan harga untuk pemindaian kerentanan.
Mengaktifkan layanan
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Instal dan lakukan inisialisasi Google Cloud CLI jika belum diinstal. Untuk penginstalan yang sudah ada, update komponen
Google Cloud CLI dengan perintah:
gcloud components update.
Untuk memeriksa versi gcloud CLI Anda, jalankan perintah:
gcloud version
Aktifkan API dari konsolGoogle Cloud
atau dengan perintah gcloud berikut:
Sebelum menonaktifkan Artifact Registry API, pastikan semua artefak yang ingin Anda pertahankan tersedia di lokasi lain. Sebaiknya Anda menghapus repositori sebelum menonaktifkan API.
Saat Anda menonaktifkan Artifact Registry API, kondisi berikut berlaku:
Repositori dan artefak di repositori tidak dapat diakses.
Data dapat dihapus dalam waktu 7 hari setelah API dinonaktifkan.
Untuk menonaktifkan API dari konsol Google Cloud :
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[[["\u003cp\u003eArtifact Registry can be enabled in the same project as Container Registry, with each service functioning independently.\u003c/p\u003e\n"],["\u003cp\u003eEnabling the Artifact Registry API can be done via the Google Cloud console or with the \u003ccode\u003egcloud\u003c/code\u003e command, and requires the gcloud CLI to be installed and up to date.\u003c/p\u003e\n"],["\u003cp\u003eDisabling the Artifact Registry API makes repositories and artifacts inaccessible, and data may be deleted within seven days, thus it is recommended to delete any unneeded repositories beforehand.\u003c/p\u003e\n"],["\u003cp\u003eAfter enabling, you can configure access permissions and authentication for various package types such as Docker, Java, Node.js, and Python.\u003c/p\u003e\n"],["\u003cp\u003eInformation regarding charges for Artifact Registry and vulnerability scanning, can be found in their respective documentation pages on the site.\u003c/p\u003e\n"]]],[],null,["# Enable and disable the service\n\nThis page describes the steps to enable and disable Artifact Registry.\nIf you use Container Registry, you can enable Artifact Registry in the same project. Each service operates independently.\n\nSee [Pricing](../pricing) for information about charges for Artifact Registry.\n\nSee the Artifact Analysis documentation for information about enabling\n[Artifact Analysis](/artifact-analysis/docs/enabling-disabling-artifact-analysis) APIs and [pricing](/artifact-analysis/pricing) for vulnerability scanning.\n\nEnabling service\n----------------\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n1. Install and initialize [Google Cloud CLI](/sdk/docs) if it is not already installed. For an existing installation, update components of the Google Cloud CLI with the command: `gcloud components update`.\n\n To check your version of the gcloud CLI, run the command: \n\n ```\n gcloud version\n ```\n | **Note:** On Ubuntu, use the [Debian package](/sdk/docs/install#deb) to install gcloud CLI. The gcloud CLI snap package does not include `kubectl` or extensions to authenticate with Artifact Registry using the gcloud CLI.\n2. Enable the API from [Google Cloud console](https://console.cloud.google.com/flows/enableapi?apiid=artifactregistry.googleapis.com) or with the following `gcloud` command: \n\n ```\n gcloud services enable artifactregistry.googleapis.com\n ```\n\nDisabling service\n-----------------\n\nBefore you disable the Artifact Registry API, ensure that any artifacts\nthat you want to keep are available in another location. It is recommended that\nyou [delete](/artifact-registry/docs/repositories/delete-repos) repositories before disabling the API.\n\nWhen you disable the Artifact Registry API, the following conditions apply:\n\n- Repositories and artifacts in repositories become inaccessible.\n- Data might be deleted within 7 days after the API is disabled.\n\nTo disable the API from the Google Cloud console: \n\n### console\n\n1. Go to the [API Overview](https://console.cloud.google.com/apis/library/artifactregistry.googleapis.com) page for Artifact Registry.\n2. Select the project where the API is enabled.\n3. Click **Manage**.\n4. Click **Disable API**.\n\n### gcloud\n\nRun the following command to disable the API for your current project: \n\n gcloud services disable artifactregistry.googleapis.com\n\nWhat's next\n-----------\n\n- Configure [access permissions](/artifact-registry/docs/access-control) for repositories\n- Configure authentication to repositories:\n - [Docker](/artifact-registry/docs/docker/authentication)\n - [Java](/artifact-registry/docs/java/authentication)\n - [Node.js](/artifact-registry/docs/nodejs/authentication)\n - [Python](/artifact-registry/docs/python/authentication)"]]