You can call this operation to query the Function Compute triggers for an event.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
EventMetaName String Yes LogFileCreated

The name of the event to query Function Compute triggers for.

EventMetaVersion String Yes 1.0.0

The version of the event to query Function Compute triggers for.

Action String No ListFCTrigger

The operation that you want to perform. Set the value to ListFCTrigger.

Response parameters

Parameter Type Example Description
FCTriggers N/A N/A

The Function Compute triggers returned.

EventMetaName String LogFileCreated

The name of the event for which the Function Compute triggers were queried.

EventMetaVersion String 1.0.0

The version of the event for which the Function Compute triggers were queried.

Notes String Test

The additional information.

RoleARN String acs:cdn:*:1234567890:domain/

The assigned RAM role.

SourceArn String acs:ram:: 1234567890:role/aliyuncdneventnotificationrole

The resources and filters for event listening.

TriggerARN String acs:fc:cn-beijing: 1234567890:services/FCTestService/functions/printEvent/triggers/testtrigger

The triggers corresponding to the Function Compute service.

RequestId String EC046C5D-8CB4-4B6B-B7F8-B335E51EF90E

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format

		    <RoleARN>acs:ram:: 1234567890:role/aliyuncdneventnotificationrole</RoleARN>
		    <TriggerARN>acs:fc:cn-beijing: 1234567890:services/FCTestService/functions/printEvent/triggers/testtrigger</TriggerARN>

JSON format

			"RoleARN":"acs:ram:: 1234567890:role/aliyuncdneventnotificationrole",
			"TriggerARN":"acs:fc:cn-beijing: 1234567890:services/FCTestService/functions/printEvent/triggers/testtrigger"

SourceArnformat: 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 are separated with commas (,).

In this example, the LogFileCreated event supports a filter of which FilterName is set to domain. Function Compute can only be triggered by if Filter is domain/ Function Compute can be triggered by multiple domains if Filter is domain/{,}.

If multiple filters are returned, they are separated with forward slashes (/) and have logical AND relations. In this case, the SourceArn parameter is displayed in the format of acs:cdn:{RegionID}:{AccountID}:{Filter1}/{Filter2}....

Error codes

For more information about error codes, visit API Error Center.