Retrieves the details of a specified trigger.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetTrigger |
get |
*All Resource
|
None | None |
Request syntax
GET /2023-03-30/functions/{functionName}/triggers/{triggerName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
Yes |
The name of the function. |
my-func |
| triggerName |
string |
Yes |
The name of the trigger. |
my-trigger |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
| Trigger |
The trigger configuration. |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.