Lists OSS-HDFS data shipping jobs 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 start row of the query. Default value: 0. |
0 |
| size |
integer |
No |
The number of entries to return. Default value: 10. |
10 |
| logstore |
string |
No |
The Logstore name. |
ali-test-logstore |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| count |
integer |
The number of OSS-HDFS data shipping jobs returned in the current request. |
2 |
| results |
array |
The list of OSS-HDFS data shipping jobs. |
|
| OSSExport |
The detailed configuration of the job. |
||
| total |
integer |
The total number of OSS-HDFS data shipping jobs in the specified project. |
10 |
Examples
Success response
JSON format
{
"count": 2,
"results": [
{
"configuration": {
"fromTime": 1718380800,
"logstore": "my-logstore",
"roleArn": "acs:ram::1234567890:role/aliyunlogdefaultrole",
"sink": {
"bucket": "my-bucket",
"bufferInterval": 300,
"bufferSize": 256,
"compressionType": "snappy",
"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},"
},
"contentType": "csv",
"delaySec": 123,
"delaySeconds": 900,
"endpoint": "https://oss-cn-hangzhou-internal.aliyuncs.com",
"pathFormat": "%Y/%m/%d/%H/%M",
"pathFormatType": "time",
"prefix": "prefix-demo/",
"roleArn": "acs:ram::1234567890:role/aliyunlogdefaultrole",
"suffix": ".json",
"timeZone": "+0800"
},
"sourceSecureTransport": false,
"toTime": 1718380800
},
"createTime": 123456789,
"description": "This is a oss export",
"displayName": "This is a oss export",
"lastModifiedTime": 123456789,
"name": "myossexportjob",
"scheduleId": "c7f01719d9feb105fc9d8df92af62010",
"status": "RUNNING"
}
],
"total": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.