取消作业
请求方式:DELETE
https://www.bkunyun.com/c3ce/cloud-bursting/job
Body Attributes(Body属性)
| Parameter | Type | Description | 
|---|---|---|
| reqeustId | String | 请求Id可以被用来查询取消作业请求的结果。若请求Id为空,则本次请求会再次取消作业。 | 
| 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",
    "jobId": "22"
}
Response Body Attributes(响应Body属性)
| Attribute | Type | Description | 
|---|---|---|
| status | String | 作业取消请求状态,DONE 已完成;RUNNING 执行中 | 
| errorCode | String | 错误代码,0表示成功 | 
| jobId | String | 被取消作业id | 
| message | String | 错误信息描述 |