Lists the OSS-HDFS export tasks in a specified project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ListOSSHDFSExports |
list |
*All Resource
|
None | None |
Request syntax
GET /osshdfsexports HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The project name. |
my-project |
| offset |
integer |
No |
The position from which to start the query. Default value: 0. |
0 |
| size |
integer |
No |
The number of entries to return. Default value: 10. |
10 |
| logstore |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| total |
integer |
The total number of OSS-HDFS delivery tasks in the project. |
10 |
| count |
integer |
The number of OSS-HDFS delivery tasks returned in the current response. |
2 |
| results |
array |
The list of OSS-HDFS delivery tasks. |
|
| OSSExport |
The details of the task configuration. |
Examples
Success response
JSON format
{
"total": 10,
"count": 2,
"results": [
{
"name": "myossexportjob",
"description": "This is a oss export",
"displayName": "This is a oss export",
"configuration": {
"logstore": "logstore-demo",
"roleArn": "acs:ram::123456789:role/aliyunlogdefaultrole",
"sink": {
"endpoint": "http://xxxxxxxx",
"bucket": "test-bucket",
"prefix": "prefixxxx/",
"suffix": ".json",
"roleArn": "acs:ram::xxxxxxx",
"pathFormat": "%Y_%m_%d/good/bad",
"pathFormatType": "only support time",
"timeZone": "+0800",
"contentType": "json/parquet/csv/orc",
"contentDetail": {
"key": "{\n \"columns\": [\n \"your log key1\",\n \"your log key2\",\n \"your log key3\",\n ],\n \"delimiter\": \" \",\n \"header\": True,\n \"lineFeed\": \"\\n\",\n \"null\": \"-\",\n \"quote\": \"\\\"\"\n},"
},
"compressionType": "snappy/gizp/zstd/none",
"bufferInterval": 300,
"bufferSize": 256,
"delaySec": 123,
"delaySeconds": 900
},
"fromTime": 123456789,
"toTime": 123456789
},
"createTime": 123456789,
"lastModifiedTime": 123456789,
"status": "RUNNING",
"scheduleId": "c7f01719d9feb105fc9d8df92af62010"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.