代管式笔记本访问权限控制
本页面介绍了如何使用 Identity and Access Management (IAM) 和访问模式来管理对 Vertex AI Workbench 代管式笔记本资源的访问权限。如需管理对 Vertex AI 资源的访问权限,请参阅有关访问权限控制的 Vertex AI 页面。
Vertex AI Workbench 使用 IAM 来管理对代管式笔记本实例的访问权限,并使用访问模式来管理对每个实例的 JupyterLab 界面的访问权限。
使用 IAM 控制对实例的访问权限
您可以在项目级层或基于实例管理对代管式笔记本实例的访问权限。
- 如需在项目级层授予资源访问权限,请为主账号(用户、群组或服务账号)分配一个或多个角色。
- 如需授予对特定实例的访问权限,请对该资源设置 IAM 政策。该政策定义了将哪些角色分配给哪些主账号。如需了解详情,请参阅管理对代管式笔记本实例的访问权限。
对实例的访问权限可以包括各种功能。例如,您可以为主账号授予启动、停止和升级实例的权限。但是,即使为主账号授予对代管式笔记本实例的完整访问权限也不会授予使用该实例的 JupyterLab 界面的权限。请参阅以下部分。
使用访问模式控制对实例的 JupyterLab 界面的访问权限
您可以通过代管式笔记本实例的访问模式控制对该实例的 JupyterLab 界面的访问权限。在创建代管式笔记本实例时设置 JupyterLab 访问模式。创建笔记本后,访问模式便无法更改。
JupyterLab 访问模式决定了谁可以使用实例的 JupyterLab 界面。该访问模式还决定了在实例与其他 Google Cloud 服务进行交互时使用哪些凭据。如需了解详情,请参阅管理对代管式笔记本实例的 JupyterLab 界面的访问权限。
IAM 角色类型
您可以在 Vertex AI Workbench 中使用不同类型的 IAM 角色:
预定义角色允许您在项目级向 Vertex AI Workbench 资源授予一组相关权限。
基本角色(Owner、Editor 和 Viewer)提供项目级层的 Vertex AI Workbench 资源的访问权限控制,并且适用于所有 Google Cloud 服务。
自定义角色让您可以基于一组特定权限创建具有这些权限的专属角色,然后将该角色授予组织中的用户。
如需在 Vertex AI Workbench 项目中添加、更新或移除这些角色,请参阅管理对项目、文件夹和组织的访问权限一文。
Vertex AI Workbench 预定义角色
Vertex AI Workbench 资源通过 Notebooks API 管理。 因此,Notebooks 角色会定义使用 Vertex AI Workbench 的权限和访问权限。
Role | Permissions |
---|---|
Notebooks Admin( Full access to Notebooks, all resources. Lowest-level resources where you can grant this role:
|
compute.acceleratorTypes.*
compute.addresses.get compute.addresses.list compute.autoscalers.get compute.autoscalers.list compute.backendBuckets.get compute. compute.backendBuckets.list compute. compute. compute.backendServices.get compute. compute.backendServices.list compute. compute. compute.commitments.get compute.commitments.list compute.diskTypes.*
compute.disks.get compute.disks.getIamPolicy compute.disks.list compute. compute.disks.listTagBindings compute. compute. compute.firewallPolicies.get compute. compute.firewallPolicies.list compute. compute. compute.firewalls.get compute.firewalls.list compute. compute. compute.forwardingRules.get compute.forwardingRules.list compute. compute. compute.futureReservations.get compute. compute. compute.globalAddresses.get compute.globalAddresses.list compute. compute. compute. compute. compute. compute. compute. compute. compute. compute.globalOperations.get compute. compute.globalOperations.list compute. compute. compute.healthChecks.get compute.healthChecks.list compute. compute. compute.httpHealthChecks.get compute.httpHealthChecks.list compute. compute. compute.httpsHealthChecks.get compute.httpsHealthChecks.list compute. compute. compute.images.get compute.images.getFromFamily compute.images.getIamPolicy compute.images.list compute. compute.images.listTagBindings compute. compute. compute.instanceGroups.get compute.instanceGroups.list compute.instanceTemplates.get compute. compute.instanceTemplates.list compute.instances.get compute. compute. compute.instances.getIamPolicy compute. compute. compute. compute. compute.instances.list compute. compute. compute. compute.instantSnapshots.get compute. compute.instantSnapshots.list compute. compute.
compute.
compute.
compute.interconnects.get compute.interconnects.list compute.licenseCodes.get compute. compute.licenseCodes.list compute.licenses.get compute.licenses.getIamPolicy compute.licenses.list compute.machineImages.get compute. compute.machineImages.list compute.machineTypes.*
compute. compute. compute. compute.networkAttachments.get compute. compute. compute. compute. compute. compute. compute. compute. compute. compute.networks.get compute. compute. compute.networks.list compute. compute. compute. compute.nodeGroups.get compute. compute.nodeGroups.list compute.nodeTemplates.get compute. compute.nodeTemplates.list compute.nodeTypes.*
compute. compute.packetMirrorings.get compute.packetMirrorings.list compute.projects.get compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute.regionHealthChecks.get compute. compute. compute. compute. compute. compute. compute. compute. compute. compute.regionOperations.get compute. compute.regionOperations.list compute. compute. compute. compute. compute. compute. compute. compute. compute.regionSslPolicies.get compute.regionSslPolicies.list compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute. compute.regionUrlMaps.get compute.regionUrlMaps.list compute. compute. compute.regionUrlMaps.validate compute.regions.*
compute.reservations.get compute.reservations.list compute.resourcePolicies.get compute. compute.resourcePolicies.list compute.routers.get compute.routers.list compute.routes.get compute.routes.list compute. compute.routes.listTagBindings compute.securityPolicies.get compute. compute.securityPolicies.list compute. compute. compute.serviceAttachments.get compute. compute. compute.snapshots.get compute.snapshots.getIamPolicy compute.snapshots.list compute. compute. compute.sslCertificates.get compute.sslCertificates.list compute. compute. compute.sslPolicies.get compute.sslPolicies.list compute. compute. compute. compute.subnetworks.get compute. compute.subnetworks.list compute. compute. compute.targetGrpcProxies.get compute.targetGrpcProxies.list compute.targetHttpProxies.get compute.targetHttpProxies.list compute. compute. compute.targetHttpsProxies.get compute. compute. compute. compute.targetInstances.get compute.targetInstances.list compute. compute. compute.targetPools.get compute.targetPools.list compute. compute. compute.targetSslProxies.get compute.targetSslProxies.list compute. compute. compute.targetTcpProxies.get compute.targetTcpProxies.list compute. compute. compute.targetVpnGateways.get compute.targetVpnGateways.list compute.urlMaps.get compute.urlMaps.list compute. compute. compute.urlMaps.validate compute.vpnGateways.get compute.vpnGateways.list compute.vpnTunnels.get compute.vpnTunnels.list compute.zoneOperations.get compute. compute.zoneOperations.list compute.zones.*
notebooks.*
resourcemanager.projects.get resourcemanager.projects.list serviceusage.quotas.get serviceusage.services.get serviceusage.services.list |
Notebooks Legacy Admin( Full access to Notebooks all resources through compute API. |
compute.*
|