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

インポートジョブを一覧表示します (V2)

この操作は、特定のクラスターのすべてのインポートジョブを一覧表示します。

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

このAPIのBase URLは以下の形式です:

https://api.cloud.zilliz.com

📘ノート

コントロールプレーンのエンドポイントは現在、ユーザーごと・エンドポイントごとに毎秒最大20リクエストまでサポートしています。

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

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

値の例: Bearer {{TOKEN}}
Acceptstringheader

application/json を使用します。

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

インポートジョブを一覧表示するためのリクエストボディ。クラスターを対象とする場合、clusterId は必須です。

clusterIdstring必要

Zilliz Cloud 上の特定のクラスターの ID。

projectIdstring

データベースおよびコレクションが属する project の ID です。 存在しない project を指定するとエラーになります。project ID は /v2/projects エンドポイントを呼び出して取得するか、Zilliz Cloud console からコピーできます。

注
これは Zilliz Cloud 上の on-demand compute cluster およびデータベースにのみ適用されます。
値の例: proj-xxxxxxxxxxxxxxxx
regionIdstring

データベースおよびコレクションが属する region の ID です。 存在しない region を指定するとエラーになります。region ID は /v2/regions エンドポイントを呼び出して取得するか、Zilliz Cloud console からコピーできます。

注
これは Zilliz Cloud 上の on-demand compute cluster およびデータベースにのみ適用されます。
値の例: aws-us-west-2
pageSizeinteger<int32>

リクエストごとに返されるレコード数。

currentPageinteger<int32>

現在のページ番号。

dbNamestring

このインポートジョブが属するデータベースの名前。

bash
export TOKEN="YOUR_API_KEY"

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

インポートジョブの一覧を返します

インポートジョブ一覧リクエストの成功時のレスポンスボディ。

codeinteger<int32>

レスポンスコード。

dataobject

レスポンスペイロード。インポートジョブの詳細一覧です。

recordsarray

現在のページのインポートタスクレコード。

[]recordsobject

単一のインポートタスクの概要。

collectionNamestring

ターゲット Collection の名前。

jobIdstring

インポートジョブの ID。

statestring

インポートタスクの状態。

countinteger<int32>

インポートタスクの総数。

currentPageinteger<int32>

現在のページ番号。

pageSizeinteger<int32>

1ページあたりのレコード数。

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

codeinteger

レスポンスコード。

messagestring

エラーメッセージ。

Successjson
{
"code": 0,
"data": {
"count": 1,
"currentPage": 1,
"pageSize": 10,
"records": [
{
"collectionName": "test_collection",
"jobId": "job-xxxxxxxxxxxxxxxxxxxxx",
"state": "Completed"
}
]
}
}