管理筆記本存取權
本頁說明如何授予及撤銷 Colab Enterprise 筆記本 (IPYNB 檔案) 的存取權。
事前準備
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI, Dataform, and Compute Engine APIs.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Vertex AI, Dataform, and Compute Engine APIs.
-
在 Google Cloud 控制台中,前往 Colab Enterprise 的「My notebooks」(我的筆記本) 頁面。
-
在「Region」(區域) 選單中,選取包含筆記本的區域。
-
在要共用的筆記本旁,按一下「筆記本動作」
選單,然後選取「共用」。 -
在「分享權限」視窗中,按一下「新增使用者/群組」
。 -
在「新增使用者/群組」對話方塊的「New principals」(新增主體) 欄位中,輸入一或多個主體,並以半形逗號分隔。
-
在「Role」(角色)清單中,選取下列其中一個角色:
-
按一下 [儲存]。
執行筆記本,即可查看目前的輸出內容。系統不會儲存這項輸出內容。
在修訂版本記錄中查看筆記本的封存版本和輸出內容。
-
在 Google Cloud 控制台中,前往 Colab Enterprise 的「My notebooks」(我的筆記本) 頁面。
-
在「Region」(區域) 選單中,選取包含筆記本的區域。
-
按一下筆記本名稱即可開啟。
-
依序點選「切換標題顯示設定」>「編輯」>「筆記本設定」。
-
在「筆記本設定」視窗中,選取「儲存這個筆記本時,忽略程式碼儲存格輸出內容」。
-
按一下 [儲存]。
-
按一下「重新載入」。
前往 Google Cloud 控制台的「IAM」IAM頁面。
選取專案、資料夾或機構。
找到包含要撤銷存取權主體的資料列。然後點選該列中的「Edit principal」(編輯主體) 圖示
。針對要撤銷的角色按一下「刪除」圖示
按鈕,然後按一下「儲存」。- 如要瞭解如何授予執行階段範本的存取權,請參閱「管理執行階段範本的存取權」。
必要的角色
如要取得管理 Colab Enterprise 筆記本存取權所需的權限,請要求管理員授予您專案的 Colab Enterprise 管理員 (roles/aiplatform.colabEnterpriseAdmin
) IAM 角色。如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和機構的存取權」。
授予筆記本存取權
本節說明如何授予主體 Colab Enterprise 筆記本的存取權。
如要授予主體 Colab Enterprise 筆記本的存取權,請按照下列步驟操作:
Colab Enterprise 主體包括使用者、群組或網域
您可以將存取權授予使用者、群組或網域。請參閱下表:
主體 | 使用者帳戶範例 |
---|---|
單一使用者 | user@gmail.com |
Google 群組 | admins@googlegroups.com |
Google Workspace 網域 | example.com |
關閉筆記本輸出內容儲存功能
如要禁止與可存取筆記本檔案的其他使用者共用已儲存的筆記本輸出內容,可以關閉筆記本輸出內容儲存功能。
為所選筆記本關閉輸出內容儲存功能後,Colab Enterprise 會刪除筆記本檔案中儲存的所有輸出內容,且不會儲存後續執行的輸出內容。
不過,具備筆記本存取權的使用者仍可透過下列方式查看輸出內容:
如要為選取的筆記本關閉輸出內容儲存功能,請按照下列步驟操作:
撤銷筆記本存取權
如要撤銷 Colab Enterprise 筆記本的存取權,請按照下列步驟操作: