Queries the Function Compute (FC) triggers configured for Alibaba Cloud CDN events.
Operation description
Each account can call this operation up to 100 times per second.
Try it now
RAM authorization
The following table lists the authorization information for this operation. To grant permissions, define the corresponding Resource Access Management (RAM) policy and attach it to the RAM user or RAM role.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| cdn:ListFCTrigger | get | *All Resource * | None | None |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| EventMetaName | string | Yes | The name of the CDN event. Only one event name can be specified per request. | LogFileCreated |
| EventMetaVersion | string | Yes | The version number of the CDN event. Only one version number can be specified per request. | 1.0.0 |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| RequestId | string | The request ID. | EC046C5D-8CB4-4B6B-B7F8-B335E51EF90E |
| FCTriggers | array\<object\> | The Function Compute triggers configured for CDN events. | |
| TriggerARN | string | The ARN of the Function Compute trigger. | acs:fc:cn-beijing: 1234567890:services/FCTestService/functions/printEvent/triggers/testtrigger |
| RoleARN | string | The ARN of the RAM role. | acs:ram:: 1234567890:role/aliyuncdneventnotificationrole |
| SourceArn | string | The resources and filters for event listening. | acs:cdn:*:1234567890:domain/example.com |
| Notes | string | The remarks. | Test |
| EventMetaName | string | The name of the CDN event. | LogFileCreated |
| EventMetaVersion | string | The version of the CDN event. | 1.0.0 |
SourceArn format
SourceArn follows the format acs:cdn:{RegionID}:{AccountID}:{Filter}.
{Filter} identifies the resource and filter conditions in the format {FilterName}/{FilterValue}. When FilterValue contains multiple values, they are enclosed in braces and separated by commas.
Examples:
Single domain:
domain/example.com— triggers Function Compute only forexample.comMultiple domains:
domain/{example.com,aliyundoc.com}— triggers Function Compute for both domains
When multiple filters are present, they are separated by forward slashes (/) and combined with AND logic. The full format is:
acs:cdn:{RegionID}:{AccountID}:{Filter1}/{Filter2}...
Examples
Success response
JSON format
{
"RequestId": "EC046C5D-8CB4-4B6B-B7F8-B335E51EF90E",
"FCTriggers": [
{
"TriggerARN": "acs:fc:cn-beijing: 1234567890:services/FCTestService/functions/printEvent/triggers/testtrigger",
"RoleARN": "acs:ram:: 1234567890:role/aliyuncdneventnotificationrole",
"SourceArn": "acs:cdn:*:1234567890:domain/example.com",
"Notes": "Test",
"EventMetaName": "LogFileCreated",
"EventMetaVersion": "1.0.0"
}
]
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | NotFound.EventMeta | EventMeta not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.