Mengambil informasi pemicu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:GetTrigger |
get |
*Trigger
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
Nama proyek. Untuk informasi tentang cara mendapatkan nama proyek, lihat CreateProject. |
test-project |
| Id |
string |
Yes |
ID ingesti data. Untuk informasi tentang cara mendapatkan ID, lihat CreateTrigger. |
trigger-9f72636a-0f0c-4baf-ae78-38b27b****** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| Trigger | DataIngestion |
Informasi ingesti data. |
|
| RequestId |
string |
ID permintaan. |
4A7A2D0E-D8B8-4DA0-8127-EB32C6****** |
Contoh
Respons sukses
JSONformat
{
"Trigger": {
"Id": "trigger-9f72636a-0f0c-4baf-ae78-38b27bfe****",
"Input": {
"OSS": {
"Bucket": "test-bucket",
"Prefix": "test-object",
"MatchExpressions": [
"key prefix (abc)"
]
}
},
"Actions": [
{
"Name": "doc/convert",
"Parameters": [
"pages=3"
],
"FastFailPolicy": {
"Action": "abort"
}
}
],
"Notification": {
"Endpoint": "http://1111111111.mns.cn-hangzhou.aliyuncs.com",
"Topic": "topic1",
"MNS": {
"TopicName": "topic1",
"Endpoint": "http://1111111111.mns.cn-hangzhou.aliyuncs.com"
},
"RocketMQ": {
"Endpoint": "http://11111111111.mqrest.cn-hangzhou.aliyuncs.com",
"TopicName": "topic1",
"InstanceId": "MQ_INST_11111111111_BYcNy2Nc"
}
},
"Statistic": {
"SubmitSuccess": 10,
"SubmitFailure": 1,
"SkipFiles": 0
},
"State": "Succeeded",
"Marker": "MTIzNDU2Nzg6aW1tdGVzdDpleGFtcGxlYnVja2V0OmRhdGFzZXQwMDE6b3NzOi8vZXhhbXBsZWJ1Y2tldC9zYW1wbGVvYmplY3QxLmpw****",
"CreateTime": "2020-11-10T03:50:28Z",
"UpdateTime": "2021-12-18T07:40:29Z",
"Tags": {
"test": "test",
"test2": 1
},
"Error": "api returns error: SDKError: StatusCode: 404 Code: ResourceNotFound",
"Phase": "IncrementalScanning",
"ServiceRole": "AliyunIMMBatchTriggerRole"
},
"RequestId": "4A7A2D0E-D8B8-4DA0-8127-EB32C6******"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.