Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Ativar a API Container Analysis
A API Artifact Analysis oferece armazenamento de metadados para
artefatos de software no Container Registry e no Artifact Registry.
Ative a API Container Analysis se você estiver usando Artifact Analysis
para gerenciar metadados. É possível ativar a API em um
projeto ou criar um novo e ativá-la depois.
Os usuários e as contas de serviço que precisam ver ocorrências precisam ter o papel de
Visualizador de ocorrências do Container Analysis. Consulte
Como configurar o controle de acesso para informações sobre como conceder
permissões.
Desativar a API Container Analysis
Quando você desativa a API Container Analysis, o serviço é desativado para o Container Registry e o Artifact Registry.
Para desativar a API Container Analysis, siga as instruções para desativar os serviços.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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)."]]