使用 IAM 控管存取權

Cloud Profiler 可利用Identity and Access Management (IAM) 角色和權限,控管 Google Cloud 專案中的剖析活動存取權。

總覽

如要針對 Google Cloud 專案使用 Cloud Profiler,您必須具備該專案的適當 IAM 權限。

權限不會直接授予使用者;而是會透過角色間接授予權限,如此可將多個權限分組,使權限管理起來更加容易。如要進一步瞭解這些概念,請參閱有關角色、權限與相關概念的 IAM 說明文件。

權限與角色

本節概述適用於 Profiler 的權限和角色。

權限

下表列出剖析活動需要的權限:

活動 所需權限
建立個人資料 cloudprofiler.profiles.create
列出設定檔 cloudprofiler.profiles.list
修改設定檔 cloudprofiler.profiles.update

角色

身分與存取權管理角色包含權限,可以指派給使用者、群組和服務帳戶。下表列出 Profiler 的角色:

Role Permissions

(roles/cloudprofiler.agent)

Cloud Profiler agents are allowed to register and provide the profiling data.

cloudprofiler.profiles.create

cloudprofiler.profiles.update

(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

如要瞭解如何將身分與存取權管理角色指派給使用者或服務帳戶,請參閱「管理政策」一文。