查询作业状态
本页目录
https://www.cloudam.cn/c3ce/cloud-bursting/job
请求方式:GET
查询作业状态
URL Parameters
| Parameter | Type | Description |
|---|---|---|
| masterId | String | Slurm集群管理节点Id |
| jobId | String | 作业id |
Request(请求)
Headers(HTTP头)
注: 请首先联系Cloudam获取API Token,token相当于密码,请妥善保护。
{
"Authorization": "Bearer ${token}",
"Content-Type": "application/json"
}
Response(响应) - 200
Headers(响应头)
{
"Content-Type": "application/json"
}
Body(响应体JSON) -- 正确响应
{
"errorCode": "0",
"status": "DONE",
"message": "Success",
"jobStatus": "RUNNING"
}
Response Body Attributes(响应Body属性)
| Attribute | Type | Description |
|---|---|---|
| status | String | 作业取消请求状态,DONE 已完成;RUNNING 执行中 |
| errorCode | String | 错误代码,0表示成功 |
| jobStatus | String | Slurm作业状态 |
| message | String | 错误信息描述 |