使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使用 IAM 控制访问权限
Cloud Profiler 使用 Identity and Access Management (IAM) 角色和权限来控制对 Google Cloud 项目中性能剖析活动的访问权限。
概览
如需将 Cloud Profiler 用于 Google Cloud 项目,您必须拥有该项目的相应 IAM 权限。
权限不是直接授予用户的,而是通过角色间接授予,可通过角色将权限分组。如需详细了解这些概念,请参阅关于角色、权限及相关概念的 IAM 文档。
权限和角色
本部分汇总了适用于 Profiler 的权限和角色。
权限
下表列出了性能剖析活动所需的权限:
活动 |
所需权限 |
创建个人资料 |
cloudprofiler.profiles.create |
列出性能剖析文件 |
cloudprofiler.profiles.list |
修改性能剖析文件 |
cloudprofiler.profiles.update |
角色
IAM 角色包括权限,可以分配给用户、组和服务账号。下表列出了 Profiler 的角色:
Role |
Permissions |
Cloud Profiler Agent
(roles/cloudprofiler.agent )
Cloud Profiler agents are allowed to register and provide the profiling data.
|
cloudprofiler.profiles.create
cloudprofiler.profiles.update
|
Cloud Profiler User
(roles/cloudprofiler.user )
Cloud Profiler users are allowed to query and view the profiling data.
|
cloudprofiler.profiles.list
resourcemanager.projects.get
resourcemanager.projects.list
serviceusage.quotas.get
serviceusage.services.get
serviceusage.services.list
|
要了解如何将 Identity and Access Management 角色分配给用户或服务账号,请参阅管理政策。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-14。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-14。"],[],[]]