Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite werden die Schritte zum Aktivieren und Deaktivieren von Artifact Registry beschrieben.
Wenn Sie Container Registry verwenden, können Sie Artifact Registry im selben Projekt aktivieren. Jeder Dienst arbeitet unabhängig.
Informationen zu Gebühren für Artifact Registry finden Sie unter Preise.
Informationen zur Aktivierung von Artifact Analysis APIs und Preise zum Scannen auf Sicherheitslücken finden Sie in der Dokumentation zu Artefaktanalyse.
Dienst aktivieren
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.
Installieren und initialisieren Sie die Google Cloud CLI, falls sie nicht bereits installiert ist. Aktualisieren Sie für eine vorhandene Installation die Komponenten der Google Cloud CLI mit dem Befehl:
gcloud components update.
Führen Sie den folgenden Befehl aus, um die Version der gcloud CLI zu prüfen:
gcloud version
Aktivieren Sie die API über die Google Cloud Console oder mit dem folgenden gcloud-Befehl:
Bevor Sie die Artifact Registry API deaktivieren, achten Sie darauf, dass alle Artefakte, die Sie behalten möchten, an einem anderen Speicherort verfügbar sind. Es wird empfohlen, Repositories zu löschen, bevor Sie die API deaktivieren.
Wenn Sie die Artifact Registry API deaktivieren, gelten die folgenden Bedingungen:
Auf Repositories und Artefakte in Repositories kann nicht mehr zugegriffen werden.
Daten können innerhalb von sieben Tagen nach Deaktivierung der API gelöscht werden.
So deaktivieren Sie die API in der Google Cloud Console:
Console
Rufen Sie die Seite API-Übersicht für Artifact Registry auf.
Wählen Sie das Projekt aus, für das die API aktiviert ist.
Klicken Sie auf Verwalten.
Klicken Sie auf API deaktivieren.
gcloud
Führen Sie den folgenden Befehl aus, um die API für Ihr aktuelles Projekt zu deaktivieren:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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)"]]