Method: projects.locations.collections.importDataObjects

啟動長時間執行的作業,將 DataObject 匯入 Collection。

HTTP 要求

POST https://vectorsearch.googleapis.com/v1/{name}:importDataObjects

路徑參數

參數
name

string

這是必要旗標,要匯入 DataObject 的 Collection 資源名稱。格式:projects/{project}/locations/{location}/collections/{collection}

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{

  // Union field config can be only one of the following:
  "gcsImport": {
    object (GcsImportConfig)
  }
  // End of list of possible types for union field config.
}
欄位
聯集欄位 config。匯入資料和錯誤結果的設定。config 只能是下列其中一個設定:
gcsImport

object (GcsImportConfig)

輸入內容的 Cloud Storage 位置。

回應主體

如果成功,回應主體會包含 Operation 的執行個體。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱Authentication Overview

IAM 權限

需要 name 資源的下列 IAM 權限:

  • vectorsearch.dataObjects.import

詳情請參閱 IAM 說明文件

GcsImportConfig

匯入作業的 Google Cloud Storage 設定。

JSON 表示法
{
  "contentsUri": string,
  "errorUri": string,
  "outputUri": string
}
欄位
contentsUri

string

這是必要旗標,要匯入的 Cloud Storage DataObject 的 URI 前置字元。

errorUri

string

這是必要旗標,Cloud Storage 位置的 URI 前置字串,用於寫入匯入期間發生的任何錯誤。

outputUri

string

選用。Cloud Storage 位置的 URI 前置字串,用於寫入成功匯入的 DataObject IDsetags。服務會將成功匯入的 DataObject 寫入這個前置字串下的分片檔案。如果這個欄位留空,系統就不會寫入任何輸出內容。