本頁面說明使用 Network Connectivity Center 所需的 Identity and Access Management (IAM) 角色和權限。
整體來說,您需要:
- 預先定義的 Network Connectivity Center 權限,請參閱「預先定義的角色」一節。
- 其他權限如下:
- 如要建立輻條,您必須具備讀取相關輻條資源類型的權限,如「建立輻條的權限」所述。
- 如要使用 Google Cloud 控制台中的 Network Connectivity Center,您必須具備查看特定虛擬私有雲 (VPC) 網路資源的權限,詳情請參閱「在 Google Cloud 控制台中使用 Network Connectivity Center 的權限」。
請注意,如果您需要在共用虛擬私有雲網路中使用 Network Connectivity Center,必須在主專案中具備所有必要權限。中心、其輻條和所有相關資源都必須位於主機專案中。
如要進一步瞭解如何授予權限,請參閱 IAM 總覽。
預先定義的角色
下表說明 Network Connectivity Center 的預先定義角色。
(
Service Automation Consumer Network Admin is responsible for setting up ServiceConnectionPolicies.
(
Enables full access to group resources and read-only access to hub and spoke resources
(
Enables use access on group resources
(
Enables full access to hub and spoke resources.
Lowest-level resources where you can grant this role:
(
Enables read-only access to hub and spoke resources.
Lowest-level resources where you can grant this role:
(
Full access to all Regional Endpoint resources.
(
Read-only access to all Regional Endpoint resources.
(
Grants the Network Connectivity API authority to read some networking resources. It does not mutate these resources.
(
Service Class User uses a ServiceClass
(
Service Automation Producer Admin uses information from a consumer request to manage ServiceClasses and ServiceConnectionMaps
(
Enables full access to spoke resources and read-only access to hub resources.
Lowest-level resources where you can grant this role:
Role
Permissions
Service Automation Consumer Network Admin
roles/
)
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
Group Admin
roles/
)
networkconnectivity.
networkconnectivity.
networkconnectivity.groups.*
networkconnectivity.
networkconnectivity.
networkconnectivity.groups.get
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.groups.use
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.hubs.get
networkconnectivity.
networkconnectivity.hubs.list
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.spokes.get
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
Group User
roles/
)
networkconnectivity.groups.use
Hub & Spoke Admin
roles/
)
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.groups.*
networkconnectivity.
networkconnectivity.
networkconnectivity.groups.get
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.groups.use
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.hubs.*
networkconnectivity.
networkconnectivity.
networkconnectivity.hubs.get
networkconnectivity.
networkconnectivity.hubs.list
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.spokes.*
networkconnectivity.
networkconnectivity.
networkconnectivity.spokes.get
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
Hub & Spoke Viewer
roles/
)
networkconnectivity.
networkconnectivity.
networkconnectivity.groups.get
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.hubs.get
networkconnectivity.
networkconnectivity.hubs.list
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.spokes.get
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
Regional Endpoint Admin
roles/
)
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
Regional Endpoint Viewer
roles/
)
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
Network Connectivity Service Agent
roles/
)
compute.addresses.create
compute.
compute.addresses.delete
compute.
compute.addresses.get
compute.addresses.setLabels
compute.addresses.use
compute.forwardingRules.create
compute.forwardingRules.delete
compute.forwardingRules.get
compute.
compute.
compute.
compute.
compute.
compute.instances.get
compute.
compute.networks.get
compute.networks.use
compute.projects.get
compute.regionOperations.get
compute.routers.get
compute.subnetworks.get
compute.
compute.subnetworks.list
compute.
compute.subnetworks.use
compute.vpnTunnels.get
dns.managedZones.create
dns.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
servicedirectory.
servicedirectory.
servicedirectory.
servicedirectory.
servicedirectory.
Service Class User
roles/
)
networkconnectivity.
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
Service Automation Service Producer Admin
roles/
)
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
Spoke Admin
roles/
)
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.hubs.get
networkconnectivity.
networkconnectivity.hubs.list
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.spokes.*
networkconnectivity.
networkconnectivity.
networkconnectivity.spokes.get
networkconnectivity.
networkconnectivity.
networkconnectivity.
networkconnectivity.
resourcemanager.projects.get
resourcemanager.projects.list
其他必要權限
視您在 Network Connectivity Center 中需要採取的動作而定,您可能需要下列各節所述的權限。
建立輻條的權限
如要建立輻條,您必須具備讀取輻條資源類型的權限。例如:
- 如要建立 VPN 通道輪輻、VLAN 連結輪輻和路由器設備輪輻,您需要使用
compute.routers.get
。 - 如要建立路由器設備輻條,您需要
compute.instances.get
。此外,您必須先在 Cloud Router 和路由器裝置執行個體之間建立對等連線,才能使用路由器裝置輻條。如要建立連線,您必須具備下列權限:compute.instances.use
compute.routers.update
- 如要建立 VLAN 連結輪輻,您需要使用
compute.interconnectAttachments.get
。 - 如要建立 VPN 通道輻條,您需要
compute.vpnTunnels.get
。 如要建立 VPC 輻射狀路由表,您必須具備下列權限:
compute.networks.use
compute.networks.get
如要在與中樞相關聯的其他專案中建立虛擬私有雲輪輻,您需要使用
networkconnectivity.groups.use
。
在 Google Cloud 控制台中使用 Network Connectivity Center 的權限
如要在 Google Cloud 主控台中使用 Network Connectivity Center,您必須具備角色 (例如 Compute Network Viewer (roles/compute.networkViewer
)),該角色必須包含下表所述的權限。如要使用這些權限,您必須先建立自訂角色。
工作 |
所需權限 |
---|---|
前往「Network Connectivity Center」頁面 |
|
存取及使用「新增輪輻」頁面 |
|
新增 VLAN 連結輪輻 |
|
新增 VPN 通道輪輻 |
|
新增路由器設備輪輻 |
|
新增 VPC 輪輻 |
|
使用 VPC Service Controls 保護資源
如要進一步提升 Network Connectivity Center 資源的安全性,請使用 VPC Service Controls。
VPC Service Controls 可為您的資源提供額外安全防護,有助於降低資料竊取風險。您可以使用 VPC Service Controls,將 Network Connectivity Center 資源放置在服務範圍內。接著,VPC Service Controls 會保護這些資源,避免範圍外的要求存取。
如要進一步瞭解服務範圍,請參閱 VPC Service Controls 說明文件的「服務範圍設定」頁面。
後續步驟
如要進一步瞭解專案角色和 Google Cloud 資源,請參閱下列說明文件:
- 如要瞭解 IAM 角色和權限,請參閱「使用 IAM 對專案進行存取權控管」。
- 如要瞭解角色類型,請參閱 Identity and Access Management 基本和預先定義的角色參考資料。
- 如要瞭解預先定義的角色,請參閱「Compute Engine 身分與存取權管理角色和權限」。
- 如要瞭解 Network Connectivity Center,請參閱「Network Connectivity Center 總覽」。
- 如要瞭解如何管理中樞和輪輻,請參閱「使用中樞和輪輻」。