Retrieves the list of event sources for Function Compute invocations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListEventSources |
get |
*All Resource
|
None | None |
Request syntax
GET /2021-04-06/services/{serviceName}/functions/{functionName}/event-sources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
The service name. |
demo-service |
| functionName |
string |
Yes |
The function name. |
demo-function |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
The alias or version. |
LATEST |
| X-Fc-Account-Id |
string |
No |
Your Alibaba Cloud account ID. |
188077086902**** |
| X-Fc-Date |
string |
No |
The start date of the function invocation, in the format of EEE,d MMM yyyy HH:mm:ss GMT. |
Sat, 14 Jul 2017 07:02:38 GMT |
| X-Fc-Trace-Id |
string |
No |
The trace ID of the Function Compute invocation request. |
asdf**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct of the event source list. |
||
| eventSources |
array<object> |
The event source list. |
|
|
object |
The event source struct. |
||
| sourceArn |
string |
The event source resource identifier. |
acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc |
| createdTime |
string |
The time when the event source was created. |
2016-08-15T16:06:05.000+0000 |
Examples
Success response
JSON format
{
"eventSources": [
{
"sourceArn": "acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc",
"createdTime": "2016-08-15T16:06:05.000+0000"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.