Integration Connectors 的 IAM 角色和權限
預先定義的角色可讓您精細控管特定 Google Cloud 資源的存取權。這些角色由 Google 建立及維護。Google 會視需求自動更新角色權限,例如 Google Cloud 加入新功能或服務時。
下表列出 Integration Connectors 的所有預先定義 IAM 角色:| Role | Permissions |
|---|---|
Connector Admin( Full access to all resources of Connectors Service. |
|
Connectors Editor( Editor role for connectors |
|
Connectors Viewer( Read-only access to Connectors all resources. |
|
Custom Connectors Admin( Custom Connector is a global resource which creates custom connector within the given target project. This role grants Admin access to Custom Connector resources |
|
Custom Connector Viewer( Custom Connector is a global resource which creates custom connector within the given target project. This role grants Read-only access to Custom Connector & Custom Connector Version resources. |
|
Connectors Endpoint Attachment Admin( Endpoint Attachment is a regional resource which creates PSC connection endpoint for the given PSC Service Attachment. This role grants Admin access to Connectors Endpoint Attachment resources. |
|
Connectors Endpoint Attachment Viewer( Endpoint Attachment is a regional resource which creates PSC connection endpoint for the given PSC Service Attachment. This role grants Read-only access to Connectors Endpoint Attachment resources |
|
Connectors Event Subscriptions Admin( Event Subscription is a regional resource which creates subscriptions on events for a given connection within the given target project. This role grants Admin access to Connectors Subscription resources |
|
Connectors Event Subscriptions Viewer( Event Subscription is a regional resource which creates subscriptions on events for a given connection within the given target project. This role grants Read-only access to Event Subscription resources. |
|
Connector Invoker( Full Access to invoke all operations on Connections. |
|
Connector Event Listener( Full Access to listen events by connections. |
|
Connectors Managed Zone Admin( Managed Zone is a global resource which creates Cloud DNS Peering Zone with the given target project. This role grants Admin access to Connectors Managed Zone resources |
|
Connectors Managed Zone Viewer( Managed Zone is a global resource which creates Cloud DNS Peering Zone with the given target project. This role grants Read-only access to Connectors Managed Zone resources. |
|
Service agent roles
Service agent roles should only be granted to service agents.
| Role | Permissions |
|---|---|
Connectors Platform Service Agent( Grants Connectors Platform service account to manage customer resources |
|
如要進一步瞭解預先定義的角色,請參閱「角色和權限」。如需選擇最合適預先定義角色的相關協助,請參閱「選擇預先定義的角色」。
連線服務帳戶的權限
連線會以您在建立連線時指定的服務帳戶身分執行。如要建立或更新連線,提出要求的主體必須具備連線服務帳戶的 iam.serviceAccounts.actAs 權限。主體是指呼叫 Integration Connectors 的使用者或服務帳戶 (例如從 Google Cloud 控制台、Terraform 或 API 呼叫)。無論驗證類型為何,所有連線都必須符合這項規定。
如要授予這項權限,請將連線服務帳戶的服務帳戶使用者角色 (roles/iam.serviceAccountUser) 指派給主體。詳情請參閱「管理服務帳戶的存取權」和「服務帳戶驗證角色」。
如果主體不具備權限,要求就會失敗,並傳回 FAILED_PRECONDITION 錯誤,前提條件違規類型為 SERVICE_ACCOUNT_PERMISSION_DENIED,且不會建立或更新連線。現有連結會繼續運作。