Mendaftar pemicu untuk fungsi tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListTriggers |
list |
*全部资源
|
None | None |
Sintaks permintaan
GET /2023-03-30/functions/{functionName}/triggers HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
Yes |
Nama fungsi. |
my-func |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| prefix |
string |
No |
Awalan nama pemicu. |
my-trigger |
| nextToken |
string |
No |
Token yang menandai awal halaman hasil berikutnya. |
MTIzNCNhYmM= |
| limit |
integer |
No |
Jumlah pemicu yang akan dikembalikan. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
| ListTriggersOutput |
The list of triggers. |
Contoh
Respons sukses
JSONformat
{
"nextToken": "next_token",
"triggers": [
{
"createdTime": "2020-08-20T02:28:21Z",
"description": "test_description",
"httpTrigger": {
"urlInternet": "https://svc-func-xxxxxxxx.cn-hangzhou.fcapp.run",
"urlIntranet": "https://svc-func-xxxxxxxx.cn-hangzhou-vpc.fcapp.run"
},
"invocationRole": "acs:ram::151641468453****:role/my-role",
"lastModifiedTime": "2020-04-23T06:32:43Z",
"qualifier": "LATEST",
"sourceArn": "acs:oss:cn-hangzhou:151641468453****:my-bucket",
"status": "OK",
"targetArn": "acs:oss:cn-hangzhou:151641468453****:my-bucket",
"triggerConfig": "{\n \"events\": [\n \"oss:ObjectCreated:*\"\n ],\n \"filter\": {\n \"key\": {\n \"prefix\": \"/prefix\",\n \"suffix\": \".zip\"\n }\n }\n}",
"triggerId": "546959b5-ce1a-4991-8891-df7a02b25086",
"triggerName": "defaultTrigger",
"triggerType": "http"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.