您可以透過 Looker 安全的 OAuth 型 Google 雲端硬碟動作,將 Look、探索和資訊主頁從 Looker 傳送至 Google 雲端硬碟,並設定一次性或定期傳送。Google 雲端硬碟動作會透過 Looker Action Hub 與 Looker 整合。Looker 管理員在動作中心啟用 Google 雲端硬碟動作後,使用者就能在傳送或排定傳送 Look、探索和資訊主頁時,選取 Google 雲端硬碟做為目的地。
由於 Google 雲端硬碟動作會使用 Google OAuth,使用者只能將內容傳送到 Google 憑證允許存取的雲端硬碟資料夾。使用者可以透過 Google 雲端硬碟動作,使用 Google OAuth 2.0 將 Google 雲端硬碟連結至 Looker,以便在 Google 雲端硬碟資料夾中儲存檔案。
這個頁面會引導管理員啟用 Google 雲端硬碟動作。本文也說明如何讓具有適當權限的使用者,將資料傳送或排定傳送至 Google 雲端硬碟資料夾。
在 Looker 中啟用 Google 雲端硬碟動作
Looker 管理員可以按照下列步驟,在 Looker 中啟用 Google 雲端硬碟動作:
前往「管理」面板,然後在「平台」下方,前往「動作」頁面。
在「動作中心」動作清單中,捲動至 Google 雲端硬碟,然後按一下「啟用」按鈕。
在 Google 雲端硬碟動作頁面中,按一下「已啟用」切換鈕,將其設為開啟狀態,
然後按一下「儲存」。
返回「動作中心」動作清單時,Google 雲端硬碟動作應已啟用。
您和使用者 (如果具備 send_to_integration 權限) 現在可以將 LookML 檢視、探索和資訊主頁傳送或排定傳送至 Google 雲端硬碟資料夾。
將資料提交至 Google 雲端硬碟資料夾
只要擁有 send_to_integration 權限,任何 Looker 使用者都能將 Look、探索或資訊主頁傳送或排定傳送至 Google 雲端硬碟資料夾。
如果這是你第一次將檔案傳送到 Google 雲端硬碟,請使用 Google 憑證進行驗證。按一下「使用 Google 帳戶登入」,指定 Google 帳戶,然後按一下「允許」,將 Looker 帳戶連結至 Google OAuth 憑證。您只能將一組 Google OAuth 2.0 憑證連結至這項整合服務。
在排程器中,按一下「驗證憑證」載入 Google 雲端硬碟。
從「選取要儲存檔案的雲端硬碟」下拉式選單中,選擇要儲存檔案的 Google 雲端硬碟。
接著,您可以輸入這個雲端硬碟中資料夾的網址,或擷取雲端硬碟中的所有資料夾。
在「Google 雲端硬碟目的地網址」欄位中,輸入要儲存資料的資料夾完整 Google 雲端硬碟網址。例如:https://drive.google.com/corp/drive/folders/abcxyz。如果無法存取這個網址,資料就會儲存到 Google 雲端硬碟的根資料夾。
在「Select Fetch to fetch a list of folders in this drive」(選取「擷取」以擷取這個雲端硬碟中的資料夾清單) 下拉式選單中,選取「擷取」。排程器對話方塊重新整理後,請從「選取要儲存檔案的資料夾」下拉式選單中,選取要儲存檔案的 Google 雲端硬碟資料夾。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-11 (世界標準時間)。"],[],[],null,["# Looker actions - Google Drive\n\n\u003cbr /\u003e\n\n\u003e Customer-hosted instances may be unable to enable actions from the Looker Action Hub, especially actions that [support streamed results](/looker/docs/action-hub#uses_streaming) or that use [OAuth](/looker/docs/action-hub#configuring_an_action_for_oauth), if the customer-hosted Looker instance does not fulfill the [Looker Action Hub requirements](/looker/docs/action-hub#looker_action_hub_requirements).\n\u003e\n\u003e See the [Sharing data through an action hub](/looker/docs/action-hub#considerations_for_customer-hosted_instances) documentation page for suggested solutions to this potential issue.\n\n\nYou can use Looker's secure OAuth-based Google Drive action to send Looks, Explores,\nand dashboards from Looker to Google Drive on a one-off or recurring basis. The\nGoogle Drive action is integrated with Looker through the Looker Action Hub.\nOnce the Looker admin has enabled the Google Drive action in the Action Hub,\nusers can select Google Drive as a possible destination when sending or scheduling\nLooks, Explores, and dashboards.\n\n\nSince the Google Drive action leverages Google OAuth, users will be able\nto deliver content only to the Drive folders that their Google credentials enable\nthem to access. The Google Drive action enables users to connect their Google\nDrive to Looker using Google OAuth 2.0 so that they can store files in their Google\nDrive folders.\n\n\nThis page walks admins through enabling the Google Drive action. It also describes\nhow any user who has the appropriate\n[permissions](/looker/docs/admin-panel-users-roles#permissions_list)\ncan send or schedule data deliveries to a Google Drive folder.\n| **Note:** If you have a permission that provides access to only select pages in the Admin panel, such as [`manage_schedules`](/looker/docs/admin-panel-users-roles#manage_schedules), [`manage_themes`](/looker/docs/admin-panel-users-roles#manage_themes), or [`see_admin`](/looker/docs/admin-panel-users-roles#see_admin), but you don't have the [Admin role](/looker/docs/admin-panel-users-roles#default_roles), the page or pages that are described here may not be visible to you in the Admin panel.\n\nEnabling the Google Drive action in Looker\n------------------------------------------\n\n\nLooker admins can enable the Google Drive action in Looker with the following\nsteps:\n\n1. Go the **Admin** panel and, under **Platform** , go to the **Actions** page.\n2. On the list of Action Hub actions, scroll to Google Drive and click the **Enable** button.\n3. On the Google Drive action page, click the **Enabled** toggle to the on position, and click **Save**.\n4. When you return to the list of Action Hub actions, your Google Drive action should be enabled.\n\n\nYou and your users --- if they have `send_to_integration` permissions --- can now send or schedule Looks, Explores, and dashboards to a Google Drive\nfolder.\n\nDelivering data to a Google Drive folder\n----------------------------------------\n\n\nAny Looker user who has `send_to_integration` permissions can send or\nschedule Looks, Explores, or dashboards to a Google Drive folder.\n\n\nYour format options to send and schedule dashboards include the following:\n\n- PDF\n- Visualization\n- CSV (ZIP file) --- if delivering a ZIP file, each tile on your dashboard will be delivered as a separate CSV file. You can extract the file in the Cloud with a Chrome extension, or you can extract it from your Drive.\n\n\nYour format options to send and schedule Looks or Explores include the following:\n\n- CSV\n- XLSX\n- JSON --- Simple\n- JSON --- Label\n- JSON --- Simple, Inline\n- JSON --- Detailed, Inline\n- Text\n- HTML\n\nTo send or schedule your content, follow these steps:\n\n1. From the [Scheduler](/looker/docs/delivering-looks-explores), next to **Where should this data go?** , select **Google Drive** as your delivery destination.\n2. If you're delivering to Google Drive for the first time, you'll need to authenticate with your Google credentials. Click **Sign in with Google** , specify your Google Account, and then click **Allow** to connect your Looker account to your Google OAuth credentials. You can connect only one set of Google OAuth 2.0 credentials to this integration.\n3. In the Scheduler, click **Verify credentials** to load your Google Drive.\n4. From the **Select Drive to save file** drop-down, choose the Google Drive where your file will be saved.\n\n Next, you can either enter the URL for a folder in this Drive or fetch all folders in your Drive.\n - In the **Google Drive Destination URL** field, enter the full Google Drive URL of the folder where you want to save your data. For example: `https://drive.google.com/corp/drive/folders/abcxyz`. If this URL isn't accessible, your data will be saved to the root folder of your Google Drive.\n - From the **Select Fetch to fetch a list of folders in this drive** drop-down, select **Fetch** . After the Scheduler dialog refreshes, from the **Select folder to save file** drop-down, select the Google Drive folder where your file will be saved.\n5. Specify the name of your file in the **Enter a filename** field. You don't need to include the file extension --- the action will automatically append it during delivery.\n6. Advanced options for customizing your content delivery depend on the data format. Click **Send** or **Schedule**.\n7. Refresh your Google Drive folder to see your file delivery.\n\n\u003e Your files won't be overwritten or renamed during subsequent deliveries of files with the same filename, so if you have scheduled content for repeated delivery, your Drive folder will contain multiple files of the same name.\n\nSwitching Google Accounts\n-------------------------\n\nTo associate a different Google Account with this action, you must delete the account's connection to the Looker instance. To learn more, see [Manage connections between your Google Account and third-parties](https://support.google.com/accounts/answer/13533235)."]]