工作流运行实例任务接口
更新时间:2021-03-22
查询工作流实例任务
接口描述
根据taskId查询工作流运行实例任务信息。
请求(Request)
- 请求语法
GET /v{version}/task/{taskId} HTTP/1.1
x-bce-date: {utc-date-string}
host: bvw.bj.baidubce.com
content-type: application/json
authorization: {bce-authorization-string}
- 请求头域:无特殊Header参数
- 请求参数:无
- 请求示例:
GET /v1/task/tsk-jg0pdvv1k4cj3kcxHTTP/1.1
x-bce-date: 2015-07-03T09:28:13Z
host: bvw.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2015-07-03T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
响应(Response)
- 响应头域:无特殊Header参数
- 响应参数:
字段名称 | 字段类型 | 字段描述 |
---|---|---|
taskId | String | 系统生成的实例任务ID |
instanceId | String | 实例任务对应的实例ID |
status | String | 运行状态,SUCCESS:成功,FAILED:失败 |
stageId | String | 对应的stageId |
name | String | 对应的stageName |
param | Object | 任务参数 |
+ input | String | 任务输入参数 |
+ output | Object | 任务输出参数 |
++ taskId | String | 任务ID |
++ output | String | 任务真正的输出 |
++ beginTime | String | 任务开始运行时间 |
++ endTime | String | 任务结束运行时间 |
++ success | Boolean | 任务是否成功 |
type | String | stage类型 |
- 响应示例:
HTTP/1.1 200 OK
x-bce-request-id: 6d0b0a36-2ffe-49d4-9d81-333a9ab9417e
Date: Tue, 24 Mar 2015 13:06:02 GMT
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
{
"taskId": "tsk-jg0n25fzrvgec9y7",
"instanceId": "ins-jg0neb1ndk2f5arj",
"status": "SUCCESS",
"stageId": "stg-jg0m5cnadmm2sd9t",
"name": "blackBorderDetect",
"param": {
"input": "{\"sourceBucket\":\"videoworks-source\",\"sourceKey\":\"movie1564059236224.mp4\"}",
"output": {
"taskId": "tsk-jg0n25fzrvgec9y7",
"output": "{\"jobId\":\"job-jg0np3rxjdttzvca\",\"doCrop\":false,\"borderArea\":{\"x\":0,\"y\":0,\"width\":320,\"height\":240},\"meta\":{\"width\":320,\"height\":240},\"extraInfo\":\"{\\\"x\\\":0,\\\"y\\\":0,\\\"width\\\":320,\\\"height\\\":240,\\\"type\\\":4,\\\"is_vertical\\\":0,\\\"code\\\":0,\\\"msg\\\":\\\"OK\\\"}\"}",
"beginTime": "2019-07-25T12:54:00Z",
"endTime": "2019-07-25T12:54:02Z",
"success": true
}
},
"type": "BLACK_BORDER_DETECT"
}