All Products
Search
Document Center

GetTrigger

Last Updated: May 31, 2022

Queries the information about a trigger.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

nameTypes ofRequireddescribeexample value
serviceNamestringYes

The name of the service.

demoService
functionNamestringYes

The name of the function.

demoFunction
triggerNamestringYes

The name of the trigger.

demoTrigger
X-Fc-Account-IdstringNo

The ID of your Alibaba Cloud account.

188077086902****
X-Fc-DatestringNo

The start time when the function is invoked. Specify the time in the yyyy-mm-ddhh:mm:ss format.

2022-01-0112:00:00
X-Fc-Trace-IdstringNo

The custom request ID.

my-test-trace-id

Response parameters

nameTypes ofdescribeexample value
headersObject
ETagstring

The ETag value of the trigger. This value is used to ensure that the modified trigger is consistent with the trigger to be modified.

object

The details of the trigger.

createdTimestring

The time when the trigger was created.

2016-08-15T15:00:00.000+0000
invocationRolestring

The ARN of the RAM role that is used by the event source to invoke the function.

acs:ram::123456xxxx:role/fc-test
lastModifiedTimestring

The time when the trigger was last modified.

016-08-15T17:00:00.000+0000
qualifierstring

The version or alias of the service.

LATEST
sourceArnstring

The ARN of the event source for the trigger.

acs:oss:cn-shanghai:123456xxxx:mybucket
triggerConfigstring

The configurations of the trigger. The configurations vary based on the trigger type. For more information about the format, see the following topics:

{"events": ["oss:ObjectCreated:*"], "filter": {"key": {"prefix": "/prefix", "suffix": ".zip"}}}
triggerNamestring

The name of the trigger.

demoTrigger
triggerTypestring

The type of the trigger. Valid values: oss, log, tablestore, timer, http, cdn_events, and mns_topic.

oss
descriptionstring

The description of the trigger.

trigger for test
triggerIdstring

The unique ID of the trigger.

3e270f2f-cef2-421a-bc86-ff4e8088476a
domainNamestring

The domain name used to invoke the function by using HTTP. You can add this domain name as the prefix to the endpoint of Function Compute. This way, you can invoke the function that corresponds to the trigger by using HTTP. Example: {domainName}.cn-shanghai.fc.aliyuncs.com.

demo-service-demo-function-jkhksh

Error codes

For a list of error codes, visit the API Error Center.