Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Activer l'API Container Analysis
L'API Artifact Analysis permet de stocker les métadonnées des artefacts logiciels dans Container Registry et Artifact Registry.
Activez l'API Container Analysis si vous utilisez Artifact Analysis pour gérer les métadonnées. Vous pouvez activer l'API pour un projet existant ou créer un projet, puis activer l'API.
Les utilisateurs et les comptes de service qui doivent afficher les occurrences doivent disposer du rôle Lecteur d'occurrences Container Analysis. Pour savoir comment accorder des autorisations, consultez Configurer le contrôle des accès.
Désactiver l'API Container Analysis
Lorsque vous désactivez l'API Container Analysis, le service est désactivé pour Container Registry et Artifact Registry.
Pour désactiver l'API Container Analysis, suivez les instructions pour désactiver des services.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (UTC)."],[[["\u003cp\u003eThe Container Analysis API is essential for managing metadata of software artifacts in both Container Registry and Artifact Registry.\u003c/p\u003e\n"],["\u003cp\u003eContainer Registry is deprecated and scheduled for shutdown, with new \u003ccode\u003egcr.io\u003c/code\u003e repositories now hosted on Artifact Registry by default for organizations that haven't used Container Registry before January 8, 2024, with full shutdown by March 18, 2025.\u003c/p\u003e\n"],["\u003cp\u003eEnabling the Container Analysis API is necessary for utilizing Artifact Analysis to manage metadata, and it can be done for existing projects or new projects.\u003c/p\u003e\n"],["\u003cp\u003eThe Container Scanning API automatically enables the Container Analysis API.\u003c/p\u003e\n"],["\u003cp\u003eDisabling the Container Analysis API turns off the service for both Container Registry and Artifact Registry, and this can be done by following instructions to disable services.\u003c/p\u003e\n"]]],[],null,["# Enable or disable metadata storage\n\nEnable the Container Analysis API\n---------------------------------\n\nThe Artifact Analysis API provides metadata storage for\nsoftware artifacts on both Container Registry and Artifact Registry.\n\nEnable the Container Analysis API if you are using Artifact Analysis\nfor [managing metadata](/artifact-analysis/docs/metadata-storage). You can enable the API for an\nexisting project, or create a new project and then enable the API.\n\n[Enable the Container Analysis API](https://console.cloud.google.com/flows/enableapi?apiid=containeranalysis.googleapis.com)\n| **Note:** This API is automatically enabled by the [Container\n| Scanning](/artifact-analysis/docs/enable-container-scanning) API.\n\nUsers and service accounts that need to view occurrences must have the\n**Container Analysis Occurrences Viewer** . See\n[Configuring access control](/artifact-analysis/docs/ca-access-control) for information about granting\npermissions.\n\nDisable the Container Analysis API\n----------------------------------\n\nWhen you disable the Container Analysis API, the service is turned off for both\nContainer Registry and Artifact Registry.\n\nTo disable the Container Analysis API follow the instructions to [disable\nservices](/service-usage/docs/enable-disable).\n\nWhat's next\n-----------\n\n- [Store and retrieve metadata for your software\n artifacts](/artifact-analysis/docs/store-retrieve-metadata).\n- [Understand metadata concepts](/artifact-analysis/docs/metadata-storage)."]]