使用 IAM 控管存取權
本頁說明如何使用 Identity and Access Management (IAM) 管理 Colab Enterprise 資源的存取權。如要管理其他 Gemini Enterprise Agent Platform 資源的存取權,請參閱使用 IAM 控管 Agent Platform 存取權。
使用 IAM 控管筆記本存取權
您可以在專案層級或個別筆記本層級,管理 Colab Enterprise 筆記本 (IPYNB 檔案) 的存取權。
執行與其他 Google Cloud 服務互動的程式碼
授予筆記本存取權時,僅限於與筆記本互動的特定權限。舉例來說,您可以授予建立筆記本、在筆記本中編寫程式碼或刪除筆記本的權限。
如要執行與其他 Google Cloud 服務互動的程式碼,請使用下列其中一種方法:
在啟用使用者憑證的執行階段中執行程式碼。也就是說,筆記本與筆記本使用者具有相同的 Google Cloud 服務存取權。
執行程式碼,驗證及授權筆記本與Google Cloud 服務互動。
詳情請參閱「執行與Google Cloud互動的程式碼」。
IAM 角色類型
在 Colab Enterprise 中可以使用不同類型的 IAM 角色:
預先定義的角色可讓您在專案層級,將一組相關權限授予 Colab Enterprise 資源。
基本角色 (擁有者、編輯者和檢視者) 可在專案層級控管 Colab Enterprise 資源的存取權,且適用於所有 Google Cloud服務。
自訂角色可讓您選擇特定的一組權限,使用這些權限建立您自己的角色,然後將該角色授予機構中的使用者。
如要在 Colab Enterprise 專案中新增、更新或移除這些角色,請參閱管理專案、資料夾和機構的存取權的說明文件。
Colab Enterprise 的預先定義角色
Colab Enterprise 是 Agent Platform 的一部分,而 Colab Enterprise 資源是透過 Agent Platform API 管理。因此,您可以透過 Agent Platform 角色,授予主體 Colab Enterprise 資源的存取權。
下表列出所有 Agent Platform 預先定義的角色。
如要使用預先定義的角色執行常見的 Colab Enterprise 作業,請參閱「Colab Enterprise 管理員」(
roles/aiplatform.colabEnterpriseAdmin) 和「Colab Enterprise 使用者」(roles/aiplatform.colabEnterpriseUser)。如要瞭解與執行階段管理相關的角色,請參閱「筆記本執行階段管理員」(
roles/aiplatform.notebookRuntimeAdmin) 和「筆記本執行階段使用者」(roles/aiplatform.notebookRuntimeUser)。Agent Platform 管理員 (
roles/aiplatform.admin)、Agent Platform 使用者 (roles/aiplatform.user) 和 Agent Platform 檢視者 (roles/aiplatform.viewer) 也包含 Colab Enterprise 權限。
| Role | Permissions |
|---|---|
Agent Platform Administrator( Grants full access to all resources in Agent Platform. |
|