查看导入进度
Retrieves the progress of a specified import task.
该 API 的 Base URL 格式如下:
https://controller.api.${CLOUD_REGION}.zilliz.com.cn
- 你需要将
${CLOUD_REGION}
替换为您的集群所在区域。 - 获取云区域 ID 请参考 Zilliz Cloud 控制台 或使用查看云区域接口。
export CLOUD_REGION="ali-cn-hangzhou"
export BASE_URL="https://controller.api.${CLOUD_REGION}.zilliz.com.cn"
认证令牌,应为具备适当权限的 API 密钥或用冒号分隔的用户名和密码,如 username:password
。
The ID of the import task in concern
The ID of a cluster to which this operation applies.
export TOKEN="YOUR_API_KEY"
curl --request GET \
--url "${BASE_URL}/v1/vector/collections/import/get?jobId=job-xxxxxxxxxxxxxxxxxx&clusterId=inxx-xxxxxxxxxxxxxxx" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json"
响应码。
指定导入任务的进度详情。
The path of the data file object in the object storage.
The size of the data file object.
The indicator of the import progress
The time at which the import task completes. null
indicates that the file import is going on.
The message that explains the reason for an import failure. null
indicates that no error occurs.
The target collection name of the import task.
The ID of an import task.
The import task details
A list of import progress details per data files
The path to a file being imported.
The size of a file being imported.
The import progress of a specific file.
The time at which the import progress ends for a specific file. null
indicates that the file import is going on.
The message that explains the reason for an import failure. null
indicates that no error occurs.
Returns an error message.
响应码。
错误描述。
{
"code": 200,
"data": {
"collectionName": "medium_articles",
"fileName": "1af78216-xxxx-xxxx-xxxx-2b0a73c566ed/1.parquet",
"fileSize": 19599887,
"readyPercentage": 0,
"completeTime": null,
"errorMessage": null,
"jobId": "job-xxxxxxxxxxxxxxxxxxxxxx",
"details": [
{
"fileName": "1af78216-xxxx-xxxx-xxxx-2b0a73c566ed/1.parquet",
"fileSize": 19599887,
"readyPercentage": 0,
"completeTime": null,
"errorMessage": null
}
]
}
}