管理筆記本存取權
本頁說明如何授予及撤銷 Colab Enterprise 筆記本 (IPYNB 檔案) 的存取權。
事前準備
- 登入 Google Cloud 帳戶。如果您是 Google Cloud新手,歡迎 建立帳戶,親自評估產品在實際工作環境中的成效。新客戶還能獲得價值 $300 美元的免費抵免額,可用於執行、測試及部署工作負載。
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Vertex AI, Dataform, and Compute Engine APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles.-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Vertex AI, Dataform, and Compute Engine APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles.
必要的角色
如要取得管理 Colab Enterprise 筆記本存取權所需的權限,請要求管理員授予您專案的 Colab Enterprise 管理員 (roles/aiplatform.colabEnterpriseAdmin) IAM 角色。如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和組織的存取權」。
授予筆記本存取權
本節說明如何授予主體 Colab Enterprise 筆記本的存取權。
如要授予主體 Colab Enterprise 筆記本的存取權,請按照下列步驟操作:
-
前往 Google Cloud 控制台的 Colab Enterprise「我的筆記本」頁面。
-
在「Region」(區域) 選單中,選取包含筆記本的區域。
-
在要共用的筆記本旁,按一下「筆記本動作」選單,然後選取「共用」。
-
在「分享權限」視窗中,按一下「新增使用者/群組」。
-
在「新增使用者/群組」對話方塊的「新增主體」欄位中,輸入一或多個主體,並以半形逗號分隔。
-
在「Role」(角色) 清單中,選取下列其中一個角色:
-
按一下 [儲存]。
Colab Enterprise 主體包括使用者、群組或網域
您可以將存取權授予使用者、群組或網域。請參閱下表:
| 主體 | 使用者帳戶範例 |
|---|---|
| 單一使用者 | user@gmail.com |
| Google 群組 | admins@googlegroups.com |
| Google Workspace 網域 | example.com |
關閉筆記本輸出內容儲存功能
如要禁止與可存取筆記本檔案的其他使用者共用已儲存的筆記本輸出內容,請關閉筆記本輸出內容儲存功能。
為所選筆記本關閉輸出內容儲存功能後,Colab Enterprise 會刪除筆記本檔案中儲存的所有輸出內容,且不會儲存後續執行的輸出內容。
不過,具備筆記本存取權的使用者仍可透過下列方式查看輸出內容:
執行筆記本,查看目前的輸出內容。系統不會儲存這項輸出內容。
在修訂版本記錄中查看筆記本和輸出的封存版本。
如要為選取的筆記本關閉輸出內容儲存功能,請按照下列步驟操作:
-
前往 Google Cloud 控制台的 Colab Enterprise「我的筆記本」頁面。
-
在「Region」(區域) 選單中,選取包含筆記本的區域。
-
按一下筆記本名稱即可開啟。
-
依序點選「切換標題顯示設定」>「編輯」>「筆記本設定」。
-
在「筆記本設定」視窗中,選取「儲存這個筆記本時,忽略程式碼儲存格輸出內容」。
-
按一下 [儲存]。
-
按一下「重新載入」。
撤銷筆記本存取權
如要撤銷 Colab Enterprise 筆記本的存取權,請按照下列步驟操作:
前往 Google Cloud 控制台的「IAM」(身分與存取權管理) 頁面。
選取專案、資料夾或機構。
找出包含要撤銷存取權主體的資料列。然後點選該列中的「Edit principal」(編輯主體) 圖示 。
針對要撤銷的角色按一下「刪除」圖示 按鈕,然後按一下「儲存」。
後續步驟
- 如要瞭解如何授予執行階段範本的存取權,請參閱「管理執行階段範本的存取權」。