Mencantumkan tugas impor OSS dalam Proyek yang ditentukan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:ListOSSIngestions |
list |
*全部资源
|
None | None |
Sintaks permintaan
GET /ossingestions HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
Nama Proyek. |
ali-test-project |
| offset |
integer |
No |
Jumlah entri yang dilewati untuk paginasi. Nilai default adalah 0. |
0 |
| size |
integer |
No |
Jumlah maksimum tugas impor OSS yang dikembalikan dalam satu permintaan. |
10 |
| logstore |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Isi respons. |
||
| total |
integer |
Jumlah total tugas impor OSS dalam Proyek. |
80 |
| count |
integer |
Jumlah tugas impor OSS yang dikembalikan dalam respons ini. |
10 |
| results |
array |
Daftar tugas impor OSS. |
|
| OSSIngestion |
Konfigurasi tugas impor OSS. |
Contoh
Respons sukses
JSONformat
{
"total": 80,
"count": 10,
"results": [
{
"name": "ingest-oss-123456",
"description": "oss ingestion",
"displayName": "oss ingestion",
"schedule": {
"type": "FixedRate",
"cronExpression": "0/5 * * * *",
"runImmediately": false,
"timeZone": "+0800",
"delay": 4,
"interval": "60s"
},
"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"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.