Get Compaction State (V2)
この操作は、指定したコレクションの最新の Compaction タスクの状態を取得します。
POST/v2/vectordb/collections/get_compaction_state
https://${CLUSTER_ENDPOINT}
📘ノート
${CLUSTER_ENDPOINT}を、あなたのZilliz Cloudクラスターのエンドポイントに置き換える必要があります。- エンドポイントを取得するには、Describe Cluster V2 APIを使用してレスポンスから値を抽出してください。
shell
export CLUSTER_ENDPOINT=""
パラメータ
Authorizationstringheader必要
認証トークンは、適切な権限を持つ API キー、またはコロンで連結したユーザー名とパスワード(例: username:password)である必要があります。プロジェクトエンドポイントを使用する場合は、十分な権限を持つ有効な API キーのみが適用されます。
値の例: Bearer {{TOKEN}}
リクエスト・ボディapplication/json
jobIDinteger
Compaction ジョブの ID。
bash
export TOKEN="db_admin:xxxxxxxxxxxxx"
curl --request POST \
--url "${CLUSTER_ENDPOINT}/v2/vectordb/collections/get_compaction_state" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"jobID": "xxxxxxxxxxxxxxxxxxxxxx"
}'
レスポンス200 OK - application/json
Compaction タスクの状態を返します。
codeinteger
レスポンスコード。
dataobject
compactionIDstring
Compaction タスクの ID。
statestring
Compaction タスクの状態。
executingPlanNumbernumber
実行中のプラン数。
timeoutPlanNumbernumber
タイムアウトしたプランの数。
completedPlanNumbernumber
完了したプランの数。
エラーメッセージを返します。
codeinteger
レスポンスコード。
messagestring
エラーメッセージ。
Successjson
{
"code": 0,
"data": {
"compactionID": "xxxxxxxxxxxxxxxxxxxxxx",
"state": "Completed",
"executingPlanNumber": 0,
"timeoutPlanNumber": 0,
"completedPlanNumber": 5
}
}