本頁面說明使用 Network Connectivity Center (NCC) 時需具備的 Identity and Access Management (IAM) 角色和權限。
大致來說,您需要下列項目:
- 預先定義的 NCC 權限,詳情請參閱「預先定義的角色」。
- 其他權限如下:
- 如要建立 Spoke,您必須具備讀取相關 Spoke 資源類型的權限,詳情請參閱「建立 Spoke 的權限」。
- 如要在 Google Cloud 控制台中使用 NCC,您需要查看特定虛擬私有雲 (VPC) 網路資源的權限,如「在 Google Cloud 控制台中使用 NCC 的權限」一文所述。
請注意,如要在共用 VPC 網路中使用 NCC,您必須在主專案中擁有所有必要權限。中樞、輪輻和所有相關資源都必須位於主機專案中。
如要瞭解如何授予權限,請參閱「IAM 總覽」一文。
預先定義的角色
下表說明 NCC 的預先定義角色。
(
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 Multicloud Data Transfer Config resources.
(
Read-only access to all Multicloud Data Transfer Config resources.
(
Access to all Destination resources.
(
Read-only access to all Destination resources.
(
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:
(
Enables full access to Transport resources
(
Enables view access to Transport resources
Role
Permissions
Service Automation Consumer Network Admin
roles/)
networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Group Admin
roles/)
networkconnectivity.networkconnectivity.networkconnectivity.groups.*
networkconnectivity.networkconnectivity.networkconnectivity.groups.getnetworkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.groups.usenetworkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.hubs.getnetworkconnectivity.networkconnectivity.hubs.listnetworkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.spokes.getnetworkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Group User
roles/)
networkconnectivity.groups.use
Hub & Spoke Admin
roles/)
networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.groups.*
networkconnectivity.networkconnectivity.networkconnectivity.groups.getnetworkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.groups.usenetworkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.hubs.*
networkconnectivity.networkconnectivity.networkconnectivity.hubs.getnetworkconnectivity.networkconnectivity.hubs.listnetworkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.spokes.*
networkconnectivity.networkconnectivity.networkconnectivity.spokes.getnetworkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Hub & Spoke Viewer
roles/)
networkconnectivity.networkconnectivity.networkconnectivity.groups.getnetworkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.hubs.getnetworkconnectivity.networkconnectivity.hubs.listnetworkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.spokes.getnetworkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Multicloud Data Transfer Config Admin
roles/)
networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Multicloud Data Transfer Config Viewer
roles/)
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Destination Admin
roles/)
networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Destination Viewer
roles/)
networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Regional Endpoint Admin
roles/)
networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Regional Endpoint Viewer
roles/)
networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Network Connectivity Service Agent
roles/)
compute.addresses.createcompute.compute.addresses.deletecompute.compute.addresses.getcompute.addresses.setLabelscompute.addresses.usecompute.forwardingRules.createcompute.forwardingRules.deletecompute.forwardingRules.getcompute.compute.compute.compute.compute.compute.instances.getcompute.compute.networks.getcompute.networks.updatePolicycompute.networks.usecompute.projects.getcompute.regionOperations.getcompute.routers.getcompute.subnetworks.createcompute.subnetworks.deletecompute.subnetworks.getcompute.compute.subnetworks.listcompute.compute.subnetworks.usecompute.vpnTunnels.getdns.changes.createdns.managedZoneOperations.*
dns.managedZoneOperations.getdns.managedZoneOperations.listdns.managedZones.createdns.managedZones.deletedns.managedZones.getdns.managedZones.listdns.managedZones.updatedns.dns.resourceRecordSets.*
dns.resourceRecordSets.createdns.resourceRecordSets.deletedns.resourceRecordSets.getdns.resourceRecordSets.listdns.resourceRecordSets.updatenetworkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.servicedirectory.servicedirectory.servicedirectory.servicedirectory.servicedirectory.
Service Class User
roles/)
networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.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.getresourcemanager.projects.list
Spoke Admin
roles/)
networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.hubs.getnetworkconnectivity.networkconnectivity.hubs.listnetworkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.spokes.*
networkconnectivity.networkconnectivity.networkconnectivity.spokes.getnetworkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Transport Admin
roles/)
networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
Transport Viewer
roles/)
networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.
networkconnectivity.networkconnectivity.networkconnectivity.networkconnectivity.resourcemanager.projects.getresourcemanager.projects.list
其他必要權限
視您需要在 NCC 中執行的動作而定,您可能需要下列各節所述的權限。
建立 Spoke 的權限
如要建立 Spoke,您必須具備讀取 Spoke 資源類型的權限。例如:
- 如果是 VPN 通道輪輻、VLAN 連結輪輻和路由器設備輪輻,則需要
compute.routers.get。 - 如要建立路由器設備 Spoke,您需要
compute.instances.get。 此外,您必須先在 Cloud Router 和路由器設備執行個體之間設定對等互連,才能使用路由器設備 Spoke。如要建立對等互連,您需要下列權限:compute.instances.usecompute.routers.update
- 如要建立 VLAN 連結輪輻,您需要
compute.interconnectAttachments.get。 - 如要建立 VPN 通道輪輻,您需要
compute.vpnTunnels.get。 如要建立 VPC 輪輻,您必須具備下列權限:
compute.networks.usecompute.networks.get
如要在與中樞相關聯的專案以外的專案中建立虛擬私有雲輪輻,您需要
networkconnectivity.groups.use。
在 Google Cloud 控制台使用 NCC 的權限
如要在 Google Cloud 控制台中使用 NCC,您需要具備角色 (例如「Compute 網路檢視者」roles/compute.networkViewer),其中包含下表所述的權限。如要使用這些權限,請先建立自訂角色。
工作 |
所需權限 |
|---|---|
| 前往「NCC」頁面 |
|
| 存取及使用「新增輪輻」頁面 |
|
| 新增 VLAN 連結輪輻 |
|
| 新增 VPN 通道輪輻 |
|
| 新增路由器設備輪輻 |
|
| 新增虛擬私有雲輪輻 |
|
使用 VPC Service Controls 保護資源
如要進一步保護 NCC 資源,請使用 VPC Service Controls。
VPC Service Controls 可為資源提供額外的安全防護,協助降低資料遭竊風險。您可以使用 VPC Service Controls,將 NCC 資源放在服務範圍內。VPC Service Controls 隨後會保護這些資源,防止來自 perimeter 外部的要求存取。
如要進一步瞭解服務範圍,請參閱 VPC Service Controls 說明文件的「服務範圍設定」頁面。
後續步驟
如要進一步瞭解專案角色和 Google Cloud 資源,請參閱下列說明文件:
- 如要瞭解 IAM 角色和權限,請參閱「使用 IAM 對專案進行存取權控管」。
- 如要瞭解角色類型,請參閱「Identity and Access Management 基本和預先定義的角色參考資料」。
- 如要瞭解預先定義的角色,請參閱「Compute Engine 身分與存取權管理角色和權限」。
- 如要瞭解 NCC,請參閱「NCC 總覽」。
- 如要瞭解如何管理中樞和輪輻,請參閱「使用中樞和輪輻」。