設定及管理 Storage Intelligence 30 天入門試用方案

本頁說明如何設定及停用 Storage Intelligence 30 天入門試用方案

設定 Storage Intelligence 30 天入門試用方案後,系統會啟用試用方案並建立 Storage Insights 資料集設定。如要瞭解如何使用資料集,請參閱「使用儲存空間分析資料集」。

必要的角色

下表列出設定 Storage Intelligence 作業 30 天試用期所需的 IAM 角色和權限:

需要角色 必要權限

請管理員在Google Cloud資源階層的專案、資料夾或機構中,授予您下列任一 IAM 角色:

  • 擁有者 (roles/owner)
  • Storage 管理員 (roles/storage.admin)
storage.intelligenceConfigs.update

請要求管理員在來源專案中授予您下列 IAM 角色:

  • 儲存空間洞察管理員 (roles/storageinsights.admin)
storageinsights.datasetConfigs.create

您也可以透過自訂角色取得這些權限。如要查看哪些角色與哪些權限相關聯,請參閱 Cloud Storage 的 IAM 角色

如要授予、變更或撤銷專案、資料夾和機構的存取權,請參閱「管理專案、資料夾和機構的存取權」。

設定 Storage Intelligence 30 天入門試用方案

控制台

  1. 前往 Google Cloud 控制台的「Storage Intelligence Configuration」(儲存空間智慧設定) 頁面。

    前往「設定」

  2. 按一下「開始入門試用 30 天」

  3. 在「設定 Storage Intelligence 30 天入門試用方案」對話方塊中,選取要啟用 Storage Intelligence 30 天入門試用方案的資源

  4. 按一下「繼續」,然後完成以下各節的步驟。

設定試用設定

在「Storage Intelligence 試用期設定」頁面中,執行下列操作:

  1. 選用:如要在 Storage Intelligence 設定中納入或排除特定值區,請按一下 展開箭頭,展開「Apply trial only to certain buckets」(僅將試用期套用至特定值區) 區段,然後執行下列操作:

    1. 如要依位置篩選值區,請按照下列步驟操作:

      1. 如要納入或排除值區,請使用「選取篩選器類型」選單。

      2. 從「位置」選單中選取位置。

    2. 如要依名稱篩選 bucket,請執行下列操作:

      1. 如要納入或排除值區,請使用「選取篩選器類型」選單。

      2. 在「規則運算式 1」欄位中輸入規則運算式。

      3. 如要新增多個規則運算式,請按一下「+ 新增規則運算式」

  2. 在「為資料集命名」欄位中,輸入資料集名稱。如需命名規範,請參閱「資料集設定屬性」。

  3. 在「Specify project to store dataset」(指定儲存資料集的專案) 欄位中,按一下「Browse」(瀏覽),然後選取要儲存資料集的專案。

  4. 點選「下一步」

完成設定程序

如要完成設定,請按照下列步驟操作:

  1. 如要啟用 Storage Insights API,請按「Next」(下一步)
  2. 如要選取儲存已設定資料集的 BigQuery 位置,請使用「選取儲存已設定資料集的 BigQuery 位置」下拉式選單。
  3. 點選「下一步」
  4. 如要授予服務代理 IAM 角色,請按「Next」(下一步)
  5. 按一下「啟用試用」

指令列

  1. In the Google Cloud console, activate Cloud Shell.

    Activate Cloud Shell

    At the bottom of the Google Cloud console, a Cloud Shell session starts and displays a command-line prompt. Cloud Shell is a shell environment with the Google Cloud CLI already installed and with values already set for your current project. It can take a few seconds for the session to initialize.

  2. 如要設定 Storage Intelligence 30 天入門試用方案,請執行 gcloud alpha storage intelligence-configs enable --trial-edition 指令:

    gcloud alpha storage intelligence-configs enable RESOURCE_FLAG --trial-edition

    其中:

    RESOURCE_FLAG 是下列其中一個旗標,視您要設定 Storage Intelligence 30 天入門試用方案的資源而定:

    • --project=PROJECT_ID:其中 PROJECT_ID專案 ID。例如:my-project

    • --sub-folder=FOLDER_ID:其中 FOLDER_ID資料夾 ID。例如:1234567890

    • --organization=ORGANIZATION_ID:其中 ORGANIZATION_ID機構 ID。例如:9876546738

    舉例來說,下列指令會為名為 my-project 的專案設定 Storage Intelligence 30 天入門試用方案:

    gcloud alpha storage intelligence-configs enable --project=my-project --trial-edition

    如需設定 Storage Intelligence 30 天入門試用方案的完整設定清單,請參閱「Storage Intelligence 設定」。

REST API

JSON API

如要設定 Storage Intelligence 30 天入門試用方案,請參閱「設定 Storage Intelligence」。

停用 Storage Intelligence 30 天入門試用方案

在 30 天內,您隨時可以停用 Storage Intelligence 30 天入門試用版。如需操作說明,請參閱「停用儲存空間智慧功能」。

30 天入門試用期結束

30 天入門試用期結束後,Storage Intelligence 會自動升級至 STANDARD 版本。自動升級至 STANDARD 版本後,您就能繼續使用所有儲存空間智慧功能。如要瞭解 STANDARD 版本的詳細定價資訊,請參閱「Storage Intelligence 定價」。

後續步驟