列出指定Project下的OSS导入任务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
log:ListOSSIngestions |
list |
*全部资源
|
无 | 无 |
请求语法
GET /ossingestions HTTP/1.1
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
offset |
integer |
否 |
查询开始行。默认值为 0。 |
0 |
size |
integer |
否 |
单次查询需要获取的 OSS 导入任务数量 |
10 |
logstore |
string |
否 |
返回参数
名称 |
类型 |
描述 |
示例值 |
headers |
object |
||
Server |
string |
||
Content-Type |
string |
||
Content-Length |
string |
||
Connection |
string |
||
x-log-requestid |
string |
||
object |
Schema of Response |
||
total |
integer |
指定 Project 下 OSS 导入任务数量 |
80 |
count |
integer |
当前列出的 OSS 导入任务数量 |
10 |
results |
array |
具体 OSS 导入任务列表 |
|
OSSIngestion |
OSS 导入任务配置 |
示例
正常返回示例
JSON
格式
{
"total": 80,
"count": 10,
"results": [
{
"name": "ingest-oss-123456",
"description": "oss ingestion",
"displayName": "oss ingestion",
"schedule": {
"type": "Cron",
"cronExpression": "0/5 * * * *",
"runImmediately": false,
"timeZone": "+0800",
"delay": 4,
"interval": "1m"
},
"configuration": {
"logstore": "myLogstore",
"source": {
"endpoint": "oss-cn-hangzhou.aliyuncs.com",
"bucket": "ossbucket",
"compressionCodec": "none",
"encoding": "UTF-8",
"format": {
"key": "{\"type\": \"Line\"}"
},
"interval": "never",
"pattern": ".*",
"prefix": "prefix",
"restoreObjectEnabled": true,
"startTime": 1714274081,
"endTime": 1714360481,
"timeField": "__time__",
"timeFormat": "yyyy-MM-dd HH:mm:ss",
"timePattern": "[0-9]{0,2}\\/[0-9a-zA-Z]+\\/[0-9:,]+",
"timeZone": "GMT+08:00",
"useMetaIndex": false,
"roleARN": "acs:ram::12345:role/aliyunlogdefaultrole",
"tagPackId": true,
"processorId": "ingest-processor-1756802123-953901"
}
},
"createTime": 1714360481,
"lastModifiedTime": 1714360481,
"status": "RUNNING",
"scheduleId": "c7f01719d9feb105fc9d8df92af62010",
"processorId": "ingest-processor-1756802123-953901"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?