获取指定的OSS-HDFS投递任务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /osshdfsexports/{ossExportName} HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
project | string | 是 | Project 名称 | my-project |
ossExportName | string | 是 | 已存在的唯一任务名称 | export-osshdfs-1234567890-123456 |
返回参数
示例
正常返回示例
JSON
格式
{
"name": "export-oss-1234567890-123456",
"description": "my-oss-job",
"displayName": "my-oss-job",
"configuration": {
"logstore": "my-logstore",
"roleArn": "acs:ram::1234567890:role/aliyunlogdefaultrole",
"sink": {
"endpoint": "https://oss-cn-hangzhou-internal.aliyuncs.com",
"bucket": "my-bucket",
"prefix": "prefix-demo/",
"suffix": ".json",
"roleArn": "acs:ram::1234567890:role/aliyunlogdefaultrole",
"pathFormat": "%Y/%m/%d/%H/%M",
"pathFormatType": "time",
"timeZone": "+0800",
"contentType": "csv",
"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",
"bufferInterval": 300,
"bufferSize": 256,
"delaySec": 123,
"delaySeconds": 900
},
"fromTime": 1718380800,
"toTime": 1718380800
},
"createTime": 1718787534,
"lastModifiedTime": 1718787681,
"status": "RUNNING",
"scheduleId": "c7f01719d9feb105fc9d8df92af62010"
}
错误码
访问错误中心查看更多错误码。