Queries the Function Compute trigger that is set for an Alibaba Cloud CDN event.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ListFCTrigger |
The operation that you want to perform. Set the value to ListFCTrigger. |
EventMetaName | String | Yes | LogFileCreated |
The name of the event for which the Function Compute trigger is set. You can specify only one name. |
EventMetaVersion | String | Yes | 1.0.0 |
The version number of the event. You can specify only one version number. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
FCTriggers | Array of FCTrigger |
The information about the Function Compute trigger returned. |
|
EventMetaName | String | LogFileCreated |
The name of the event for which the Function Compute trigger is set. |
EventMetaVersion | String | 1.0.0 |
The version of the event for which the Function Compute trigger is set. |
Notes | String | Test |
The remarks for the event. |
RoleARN | String | acs:ram:: 1234567890:role/aliyuncdneventnotificationrole |
The Resource Access Management (RAM) role. |
SourceArn | String | acs:cdn:*:1234567890:domain/example.com |
The resources and filters for event listening. |
TriggerARN | String | acs:fc:cn-beijing: 1234567890:services/FCTestService/functions/printEvent/triggers/testtrigger |
The trigger corresponding to the Function Compute service. |
RequestId | String | EC046C5D-8CB4-4B6B-B7F8-B335E51EF90E |
The ID of the request. |
acs:cdn:{RegionID}:{AccountID}:{Filter}
where Filter indicates the resource and filter in the format of {FilterName}/{FilterValue}. If multiple values are returned for FilterValue, the values are enclosed with braces ({}) and separated by commas (,).
domain/{example.com,aliyundoc.com}
acs:cdn:{RegionID}:{AccountID}:{Filter1}/{Filter2}...
Examples
Sample requests
http(s)://cdn.aliyuncs.com/?Action=ListFCTrigger
&EventMetaName=LogFileCreated
&EventMetaVersion=1.0.0
&<Common request parameters>
Sample success responses
XML
format
<ListFCTriggerResponse>
<FCTriggers>
<Notes>Test</Notes>
<SourceArn>acs:cdn:*:1234567890:domain/example.com</SourceArn>
<EventMetaVersion>1.0.0</EventMetaVersion>
<EventMetaName>LogFileCreated</EventMetaName>
<RoleARN>acs:ram:: 1234567890:role/aliyuncdneventnotificationrole</RoleARN>
<TriggerARN>acs:fc:cn-beijing: 1234567890:services/FCTestService/functions/printEvent/triggers/testtrigger</TriggerARN>
</FCTriggers>
<RequestId>EC046C5D-8CB4-4B6B-B7F8-B335E51EF90E</RequestId>
</ListFCTriggerResponse>
JSON
format
{
"FCTriggers": [
{
"Notes": "Test",
"SourceArn": "acs:cdn:*:1234567890:domain/example.com",
"EventMetaVersion": "1.0.0",
"EventMetaName": "LogFileCreated",
"RoleARN": "acs:ram:: 1234567890:role/aliyuncdneventnotificationrole",
"TriggerARN": "acs:fc:cn-beijing: 1234567890:services/FCTestService/functions/printEvent/triggers/testtrigger"
}
],
"RequestId": "EC046C5D-8CB4-4B6B-B7F8-B335E51EF90E"
}
Error codes
For a list of error codes, visit the API Error Center.