All Products
Search
Document Center

Function Compute:ListEventSources

Last Updated:Jun 02, 2023

Queries all the event sources of a function.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /2021-04-06/services/{serviceName}/functions/{functionName}/event-sources

Request parameters

ParameterTypeRequiredDescriptionExample
serviceNamestringYes

The ARN of the event source.

demo-service
functionNamestringYes

The trace ID of the invocation request of Function Compute.

demo-function
qualifierstringNo

$.parameters[7].schema.example

LATEST
X-Fc-Account-IdstringNo

$.parameters[7].schema.enumValueTitles

188077086902****
X-Fc-DatestringNo

$.parameters[8].schema.description

Sat, 14 Jul 2017 07:02:38 GMT
X-Fc-Trace-IdstringNo

$.parameters[8].schema.example

asdf****

Response parameters

ParameterTypeDescriptionExample
object

$.parameters[8].schema.enumValueTitles

eventSourcesobject []

Queries all the event sources of a function.

sourceArnstring

Jianyi

acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc

Examples

Sample success responses

JSONformat

{
  "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

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-10-26The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
    Added Input Parameters: X-Fc-Code-Checksum
    Added Input Parameters: X-Fc-Log-Type
    Added Input Parameters: X-Fc-Invocation-Type
    Added Input Parameters: X-Fc-Date
    Added Input Parameters: X-Fc-Trace-Id
2021-10-26The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
2021-10-26The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    delete Input Parameters: X-Fc-Account-Id