列出s3导入任务
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /s3ingestions HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| project |
string |
否 |
project 名称。 |
testproject |
| offset |
string |
否 |
返回结果在全部数据集中的偏移位置, 默认为 0 。 |
0 |
| size |
string |
否 |
分页查询时,设置的每页行数。 |
100 |
| logstore |
string |
否 |
Logstore 名称 |
test |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| total |
integer |
符合查询条件的总数。 |
3 |
| count |
integer |
当前页返回的任务个数。 |
3 |
| results |
array |
任务配置详细 |
|
| S3Ingestion |
任务配置详细 |
示例
正常返回示例
JSON格式
{
"total": 3,
"count": 3,
"results": [
{
"name": "ingest-s3-123456",
"description": "s3 ingestion",
"displayName": "s3 ingestion",
"schedule": {
"type": "Cron",
"cronExpression": "0/5 * * * *",
"runImmediately": false,
"timeZone": "+0800",
"delay": 4,
"interval": "1m"
},
"configuration": {
"awsRegion": "ap-northeast-1",
"awsAccessKey": "AKIxxxxxxxxxxYJE",
"awsAccessKeySecret": "123xxxxxxxxxxfjf",
"bucket": "s3bucket",
"compressionCodec": "none",
"encoding": "UTF-8",
"format": {
"key": "{\"type\": \"line\"}"
},
"interval": "30m",
"pattern": ".*",
"prefix": "prefix",
"awsUseSQS": false,
"awsSQSQueueUrl": "https://sqs.ap-northeast-1.amazonaws.com/123456788/chifan",
"useAwsSQSOnly": false,
"tagPackId": false,
"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",
"processorId": "ingest-processor-1756802123-953901",
"endpoint": "s3.us-east-1.amazonaws.com"
},
"createTime": 1714360481,
"lastModifiedTime": 1714360481,
"status": "RUNNING",
"scheduleId": "c7f01719d9feb105fc9d8df92af62010",
"processorId": "ingest-processor-1756802123-953901"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?