最近更新时间:2023-02-21 17:00:55
POST /ListDownloadTasks HTTP/1.1
Authorization: <AuthorizationString>
x-klog-api-version: 0.1.0
Host:klog.api.ksyun.com
x-klog-signature-method: hmac-sha1
Date: <GMT Date>
Content-Type: application/json
Content-MD5: <Content-MD5>
Content-Length: <ContentLength>
Connection: Keep-Alive
{
"Page": 0,
"Size": 50,
"ProjectName": "projectName",
}
该接口无特有请求头。获取更多信息,请参见公共请求头
参数详情具体如下表。
参数名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
Page | int64 | 是 | 页码 |
Size | int64 | 是 | 每页大小 |
ProjectName | String | 是 | 工程名称 |
参数名称 | 类型 | 描述 |
---|---|---|
Toal | int | 任务总数 |
Downloads | array[Download] | 每页返回最大条目,默认 500(最大值) |
Downloads参数说明如下:
参数名称 | 类型 | 描述 |
---|---|---|
DownloadID | String | 任务ID |
From | int64 | 查询起始时间戳 |
To | int64 | 查询结束时间戳 |
LogPoolName | String | 日志池名称 |
Status | String | 任务状态 |
POST /ListDownloadTasks HTTP/1.1
Authorization: <AuthorizationString>
x-klog-api-version: 0.1.0
Host:klog.api.ksyun.com
x-klog-signature-method: hmac-sha1
Date: <GMT Date>
Content-Type: application/json
Content-MD5: <Content-MD5>
Content-Length: <ContentLength>
Connection: Keep-Alive
{
"Page": 0,
"Size": 50,
"ProjectName": "projectName",
}
HTTP/1.1 200
Server: nginx
Content-Length: 0
Connection: close
Access-Control-Allow-Origin: *
Date: Sun, 27 May 2018 07:43:27 GMT
x-klog-requestid: 5B0A619F205DC3F30EDA9322
{
"Total": 100,
"Count": 10,
"Downloads": [
{
"DownloadID": "56129339-0650-4206-8e21-badc36cd657c",
"From": 0,
"To": 1632712166000,
"LogPoolName": "logpool1",
"Status": "Done"
},
{
"DownloadID": "102a6b59-0650-4206-8e21-badc36cd657c",
"From": 0,
"To": 1632712166000,
"LogPoolName": "logpool1",
"Status": "Done"
}
]
}
纯净模式