查看任务详情
本接口可查看指定控制面任务详情。
GET
/v2/jobs/{JOB_ID}该 API 的 Base URL 格式如下:
https://api.cloud.zilliz.com.cn
📘说明
控制面接口速率限制为单用户单接口每秒最多 20 个请求。
export BASE_URL="https://api.cloud.zilliz.com.cn"
参数
Authorizationstringheaderrequired
认证令牌,应为具备适当权限的 API 密钥。
示例值:Bearer {{TOKEN}}
JOB_IDstringpathrequired
The ID of the job that has been submitted.
示例值:job-xxxxxxxxxxxxxxxxxx
export TOKEN="YOUR_API_KEY"
export JOB_ID="job-xxxxxxxxxxxxxxxxxx"
curl --request GET \
--url "${BASE_URL}/v2/jobs/${JOB_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json"
响应200 - application/json
jobIdstring
The ID of the job that has been submitted.
typestring
The type of the job
statusstring
The status of the job
progressstring
The progress of the job
startTimestring
The time at which the job starts.
endTimestring
The time at which the job end.
reasonstring
The message of why the job failed.
Returns an error message.
codeinteger
响应码。
messagestring
错误描述。
{
"code": 0,
"data": {
"jobId": "job-03e1eefbd82dmo2oeb8pe2",
"type": "MIGRATION",
"status": "SUCCESSFUL",
"progress": "100",
"startTime": "2024-07-30T16:49:50Z",
"endTime": "2024-07-30T17:30:50Z",
"reason": ""
}
}