跳到主要内容

查看批量任务详情 (V2)

本接口用于查看指定项目中的批量任务详情。

GET/v2/projects/{projectId}/jobs/{jobId}
连接端点

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com.cn

📘说明

控制面接口速率限制为单用户单接口每秒最多 20 个请求。

shell
export BASE_URL="https://api.cloud.zilliz.com.cn"
参数
Authorizationstringheader必填项

认证令牌,应为具备适当权限的 API 密钥。

示例值:Bearer {{TOKEN}}
projectIdstringpath必填项

项目 ID。

示例值:proj-xxxxxxxxxxxxxxxxxxx
jobIdstringpath必填项

批量任务 ID。

示例值:job-xxxxxxxxxxxxxxxxxx
bash
export TOKEN="YOUR_API_KEY"
export projectId="proj-xxxxxxxxxxxxxxxxxxx"
export jobId="job-xxxxxxxxxxxxxxxxxx"

curl --request GET \
--url "${BASE_URL}/v2/projects/${projectId}/jobs/${jobId}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
响应

返回批量任务详情。

响应体可能采用的备选对象结构之一;每次响应仅适用一种结构。

codeinteger<int32>

响应码。

dataobject

Spark 任务的公开详细信息。

resultobject

完全搜索结果,仅在成功完成后出现。

volumeNamestring

结果 Volume 名称,与创建请求中的 output.volumeName 一致。

manifestPathstring

已完成 manifest 相对 Volume 的路径。

formatstring

结果文件格式。

queryCountstring

查询总数(十进制字符串),包含无命中的查询。

hitCountstring

命中总数(十进制字符串)。

progressobject

完成计数。运行中该进度为 null,请以任务状态为准。

phasestring

已完成的执行阶段。

queryCountstring

查询总数(十进制字符串)。

completedQueriesstring

已完成 top-K 结果的查询数(十进制字符串)。

jobIdstring

Spark 任务的 ID。

projectIdstring

Spark 任务所属项目的 ID。

typestring

Spark 任务的类型。

descriptionstring

Spark 任务的描述。

statusstring

Spark 任务的状态。

regionIdstring

Spark 任务运行所在地域的 ID。

clusterIdstring

Spark 任务关联集群的 ID。

artifactobject

任务产生的输出产物。

volumeNamestring

存储产物的存储卷名称。

pathstring

产物在存储卷内的路径。

detailsobject

回填任务的详细信息。

dbNamestring

数据库名称。

collectionNamestring

集合名称。

inputobject

任务输入或输出数据的引用。

typestring

数据引用类型。

volumeNamestring

存储卷名称。

pathstring

数据在存储卷内的路径。

formatstring

数据格式。

fieldsarray

目标字段。

[]fieldsstring
(待补充)
columnMappingobject

源到目标的列映射。

modestring

回填模式。

resourceSizestring

资源规格。

failureReasonobject

任务失败的原因。

codestring

错误码。

示例值:SPARK_EXECUTION_FAILED
messagestring

错误消息。

retryableboolean

任务是否可重试。

precheckReportobject

回填任务的预检报告。

passedboolean

预检是否通过。

dbNamestring

数据库名称。

collectionNamestring

集合名称。

inputstring

输入描述。

fieldsarray

目标字段。

[]fieldsstring
(待补充)
columnMappingobject

源到目标的列映射。

requiredSourceColumnsarray

必需的源列。

[]requiredSourceColumnsstring
(待补充)
errorsarray

预检错误。

[]errorsobject

单条预检错误。

codestring

错误码。

示例值:SOURCE_COLUMN_MISSING
sourceColumnstring

源列。

示例值:source_embedding
targetFieldstring

目标字段。

示例值:embedding
expectedTypestring

期望类型。

示例值:FloatVector
actualTypestring

实际类型。

示例值:string
messagestring

错误消息。

示例值:source column is missing: source_embedding
checkedRowsinteger<int64>

已检查的行数。

createdAtstring

Spark 任务的创建时间。

submittedAtstring

Spark 任务的提交时间。

startedAtstring

Spark 任务的开始运行时间。

finishedAtstring

Spark 任务的结束时间。

durationSecondsinteger<int64>

Spark 任务的运行时长,单位为秒。

返回错误消息。

codeinteger

响应码。

messagestring

错误描述。

Successjson
{
"code": 0,
"data": {
"jobId": "job-xxxxxxxxxxxxxxxxxx",
"type": "SPARK",
"description": "daily-vector-etl",
"status": "RUNNING",
"regionId": "ali-cn-hangzhou",
"clusterId": "in01-xxxxxxxxxxxxxxx",
"createdAt": "2026-05-20T10:00:00Z",
"startedAt": "2026-05-20T10:01:00Z",
"finishedAt": null,
"durationSeconds": 300,
"artifact": {
"volumeName": "stg-xxxxxxxxxxxxxxxxxxx",
"path": "/jars/example-job.jar",
"artifactUri": "volume://my-volume/jars/example-job.jar"
},
"submittedAt": "2026-05-20T10:00:30Z",
"projectId": "proj-xxxxxxxxxxxxxxxxxxxx"
}
}