獲取指定OSS導(dǎo)入任務(wù)。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無(wú)授權(quán)信息透出。
請(qǐng)求語(yǔ)法
GET /ossingestions/{ossIngestionName} HTTP/1.1
請(qǐng)求參數(shù)
名稱(chēng) | 類(lèi)型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
project | string | 是 | Project 名稱(chēng) | ali-test-project |
ossIngestionName | string | 是 | OSS 導(dǎo)入任務(wù)名稱(chēng) | ingest-oss-123456 |
返回參數(shù)
示例
正常返回示例
JSON
格式
{
"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"
}
},
"createTime": 1714360481,
"lastModifiedTime": 1714360481,
"status": "RUNNING",
"scheduleId": "c7f01719d9feb105fc9d8df92af62010"
}
錯(cuò)誤碼
訪(fǎng)問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。