任务详情
请求包
GET /tasks/<taskID>
Host: pili-pub.qiniuapi.com
Authorization: <QiniuToken>
参数名称 | 必填 | 说明 |
---|---|---|
taskId | 是 | 字符串,任务Id。 |
返回包
200 {
"taskID": "123",
"name": "",
"runType":"seek",
"sourceUrls": [
{
"url":<URL>,
"isp":<ISP>
}
],
"forwardUrls": [
{
"url":<URL>,
"isp":<ISP>
}
],
"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 | 字符串 | 任务名称。 |
runType | 是 | 字符串,任务类型, normal: 普通转推,seek: seek转推。 |
sourceUrls | 对象数组 | 源地址。 |
forwardUrls | 对象数组 | 转推地址。 |
filter | 对象 | 任务过滤条件。 |
status | 字符串 | 任务状态,pending 初始状态, running, stopped, failed, finished。 |
deliverStartTime | 整型 | 任务定时开始时间,单位:ms。 |
deliverStopTime | 整型 | 任务定时关闭时间,单位:ms。 |
startTime | 整型 | 任务开始时间,单位:ms。 |
stopTime | 整型 | 任务停止时间,单位:ms。 |
- 详细参数说明见参数说明
文档反馈
(如有产品使用问题,请提交工单)