メインコンテンツまでスキップ

Get Import Job Progress (V2)

ノート

非推奨の互換ルートです。指定されたインポートジョブの進行状況を取得するには、代わりに /v2/vectordb/jobs/import/describe を使用してください。

POST/v2/vectordb/jobs/import/get_progress
接続エンドポイント

https://api.cloud.zilliz.com

shell
export BASE_URL="https://api.cloud.zilliz.com"
パラメータ
Authorizationstringheader必要

認証トークンは、適切な権限を持つAPIキーである必要があります。

値の例: Bearer {{TOKEN}}
Acceptstringheader

application/json を使用してください。

値の例: application/json
リクエスト・ボディ
jobIdstring必要

対象のインポートジョブのID。

clusterIdstring必要

この操作が適用されるクラスターのID。

jobIdstring必要

対象のインポートジョブのID。

projectIdstring必要

この操作が適用されるプロジェクトのID。

regionIdstring必要

この操作が適用されるリージョンのID。

Serving Clusterbash
export TOKEN="YOUR_API_KEY"

curl --request POST \
--url "${BASE_URL}/v2/vectordb/jobs/import/get_progress" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"jobId": "job-xxxxxxxxxxxxxxxxxxxxx",
"clusterId": "inxx-xxxxxxxxxxxxxxx"
}'
レスポンス

指定されたインポートジョブの進行状況を返します。

codestring

応答コード。

dataobject

応答ペイロード。

jobIdstring

インポートジョブのID。

collectionNamestring

インポートジョブの対象コレクション名。

fileNamestring

オブジェクトストレージ内のデータファイルオブジェクトのパス。

fileSizeinteger

データファイルオブジェクトのサイズ。

statestring

このインポートジョブの状態。

progressinteger

現在のインポートジョブの進行状況(パーセント)。

completeTimestring

インポートジョブが完了した時刻を示すタイムスタンプ。

reasonstring

データのインポートに失敗した理由。インポートジョブが成功した場合、この値は空文字列になります。

totalRowsinteger

指定されたコレクション内の行数。

detailsarray

データファイル単位のデータインポートの統計。

[]detailsobject

ソースデータファイルの処理に関する詳細情報。

fileNamestring

データファイルの名前。

fileSizeinteger

データファイルのサイズ。

statestring

データファイルの処理状態。

progressinteger

進行状況(パーセント)。

completeTimestring

ファイルが処理された時刻を示すタイムスタンプ。

reasonstring

データのインポートに失敗した理由。データファイルが正常に処理された場合、この値は空文字列になります。

totalRowsinteger

このファイルから挿入された行数。

エラーメッセージを返します。

codeinteger

応答コード。

messagestring

エラーメッセージ。

Successjson
{
"code": 0,
"data": {
"jobId": "job-xxxxxxxxxxxxxxxxxxxxx",
"collectionName": "medium_articles",
"fileName": "medium_articles_2020_dpr.json",
"fileSize": 3279917,
"state": "Completed",
"progress": 100,
"completeTime": "2024-04-01T06:17:55Z",
"reason": "",
"totalRows": 100000,
"details": [
{
"fileName": "medium_articles_2020_dpr.json",
"fileSize": 3279917,
"state": "Completed",
"progress": 100,
"completeTime": "2024-04-01T06:17:53Z",
"reason": ""
}
]
}
}
Ctrl I