Lists log download tasks in a specified project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ListDownloadJobs |
list |
*All Resource
|
None | None |
Request syntax
GET /downloadjobs HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The project name. |
ali-test-project |
| offset |
integer |
No |
The start row of the query. Default value: 0. |
0 |
| size |
integer |
No |
The number of log download tasks to retrieve in a single query. |
10 |
| logstore |
string |
No |
The Logstore name. |
ali-test-logstore |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The information about all log download tasks. |
||
| total |
integer |
The total number of records. |
10 |
| count |
integer |
The number of log download tasks returned in the current request. |
10 |
| results |
array<object> |
The list of log download tasks. |
|
|
array<object> |
The log download task information. |
||
| description |
string |
The description of the log download task. |
a download job |
| configuration |
object |
The download configuration. |
|
| logstore |
string |
The source Logstore. |
ali-test-logstore |
| fromTime |
integer |
The start timestamp, in seconds. |
1722409260 |
| toTime |
integer |
The end timestamp, in seconds. |
1722411060 |
| query |
string |
The query statement. |
* | select * |
| powerSql |
boolean |
Indicates whether PowerSQL is enabled. |
true |
| allowInComplete |
string |
Specifies whether to allow downloading incomplete results. |
false |
| sink |
object |
The log download task configuration. |
|
| compressionType |
string |
The compression format. |
none |
| contentType |
string |
The download file format. |
csv |
| roleArn |
string |
The ARN of the RAM role used for the download. |
acs:ram::123456:role/aliyunlogimportossrole |
| bucket |
string |
The OSS bucket. |
ali-test-oss-bucket |
| prefix |
string |
The file prefix used when downloading to the user's OSS bucket. |
download/ |
| type |
string |
Fixed value: AliyunOSS. |
AliyunOSS |
| displayName |
string |
The display name. |
download-123 |
| executionDetails |
object |
The execution details. |
|
| progress |
integer |
The download progress. |
100 |
| filePath |
string |
The download result link. |
https://sls-downloaded-xxxx.csv.gzip?Expiresxxx |
| fileSize |
integer |
The download file size. |
123456 |
| executeTime |
integer |
The download execution time. |
123 |
| logCount |
integer |
The number of downloaded log entries. |
123 |
| errorMessage |
string |
The download error message. |
timeout |
| checkSum |
string |
The file ETag. |
ETASFGASDASQWDasd |
| notice |
string |
The notification information. |
test |
| name |
string |
The name of the log download task. |
download-123 |
| createTime |
string |
The creation time of the log download task. |
1722411060 |
| status |
string |
The task status. |
STARTING、RUNNING、SUCCEEDED、ERROR |
Examples
Success response
JSON format
{
"total": 10,
"count": 10,
"results": [
{
"description": "a download job",
"configuration": {
"logstore": "ali-test-logstore",
"fromTime": 1722409260,
"toTime": 1722411060,
"query": "* | select *",
"powerSql": true,
"allowInComplete": "false",
"sink": {
"compressionType": "none",
"contentType": "csv",
"roleArn": "acs:ram::123456:role/aliyunlogimportossrole",
"bucket": "ali-test-oss-bucket",
"prefix": "download/",
"type": "AliyunOSS"
}
},
"displayName": "download-123",
"executionDetails": {
"progress": 100,
"filePath": "https://sls-downloaded-xxxx.csv.gzip?Expiresxxx",
"fileSize": 123456,
"executeTime": 123,
"logCount": 123,
"errorMessage": "timeout",
"checkSum": "ETASFGASDASQWDasd",
"notice": "test"
},
"name": "download-123",
"createTime": "1722411060",
"status": "STARTING、RUNNING、SUCCEEDED、ERROR"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.