[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Roles and permissions\n\nThis page describes the permissions that you need to access Network Analyzer.\n\nTo access the analysis results of a project, you must have\n`compute.networks.list` and `compute.instances.list` permissions.\n\nTo access the analysis results of monitored projects of a Cloud Monitoring\nmetrics scope, you must have `compute.networks.list` and\n`compute.instances.list` permissions on the scoping project of the metrics\nscope. On the Network Analyzer console of the scoping project, you can see\nthe analysis results of all the monitoring projects.\n\nAccess Network Analyzer logs in Cloud Logging\n---------------------------------------------\n\nNetwork Analyzer writes insights as [platform logs](/logging/docs/api/platform-logs#network_analyzer)\nwithin Cloud Logging. You can access Network Analyzer logs by using the\nfollowing options: the [Cloud Logging API](/logging/docs/reference/v2/rest), the\n[Logs Explorer](/logging/docs/view/logs-explorer-interface),\nand the\n[Google Cloud CLI](/logging/docs/reference/tools/gcloud-logging).\n\n- To receive Network Analyzer logs, you must enable the Logging API. For more information, see [Enable the Logging API](/logging/docs/api/enable-api).\n- To access the logs data in the [Logging API](/logging/docs/reference/v2/rest), the [Logs Explorer](/logging/docs/view/logs-explorer-interface), and the [gcloud CLI](/logging/docs/reference/tools/gcloud-logging), you must grant the required Identity and Access Management (IAM) roles and permissions. For more information, see [Access control with IAM](/logging/docs/access-control).\n\nAccess Network Analyzer insights in Recommender API\n---------------------------------------------------\n\nTo access insights by using the Recommender API and the gcloud CLI,\nperform the following tasks:\n\n1. Enable the [Recommender API](/recommender/docs/overview) for your project.\n2. Grant the required IAM roles and permissions to access Network Analyzer insight types in the Recommender API. For more information, see [Recommender roles](/iam/docs/understanding-roles#recommender-roles)."]]