直播云 >
API 文档 >
Pub API >
任务详情
任务详情
最近更新时间:2020-12-15 15:22:05
请求包
GET /tasks/<taskID>
Host: pili-pub.qiniuapi.com
Authorization: <QiniuToken>
参数名称 |
必填 |
说明 |
taskId |
是 |
字符串,任务Id。 |
返回包
200 {
"taskID": "123",
"name": "",
"sourceUrls": [],
"forwardUrls": [],
"filter": {},
"status": "",
"deliverStartTime": 123,
"deliverStopTime": 123,
"startTime": 123
"stopTime": 123
}
400 {
"error": "invalid parameter"
}
404 {
"error": "not fond"
}
500 {
"error": "query task fail"
}
返回参数
参数名称 |
类型 |
说明 |
taskID |
字符串 |
任务ID。 |
name |
字符串 |
任务名称。 |
sourceUrls |
对象数组 |
源地址。 |
forwardUrls |
对象数组 |
转推地址。 |
filter |
对象 |
任务过滤条件。 |
status |
字符串 |
任务状态,pending 初始状态, running, stopped, failed, finished。 |
deliverStartTime |
整型 |
任务定时开始时间,单位:ms。 |
deliverStopTime |
整型 |
任务定时关闭时间,单位:ms。 |
startTime |
整型 |
任务开始时间,单位:ms。 |
stopTime |
整型 |
任务停止时间,单位:ms。 |