You can call this operation to view all asynchronous invocation configurations of a function in a service. If the number of configurations exceeds the value of the Limit parameter, the nextToken parameter is returned. You can use this parameter to paginate subsequent query results.
Request headers
This operation uses only common request headers. For more information, see Common parameters.
Request syntax
GET /services/{serviceName}/functions/{functionName}/async-invoke-configs
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
serviceName | String | Path | Yes | service_name |
The name of the service that contains the function for which you want to create or update the asynchronous invocation configuration. |
functionName | String | Path | Yes | testHelloWorld |
The name of the function. |
limit | Integer | Query | No | 20 |
The maximum number of resources to return. Default value: 20. Maximum value: 100. The number of returned resources is smaller than or equal to the specified number. |
nextToken | String | Query | No | caeba0be03****f84eb48b699f0a4883 |
The token used to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. Include this parameter in subsequent invocations to obtain more results. You do not need to provide this parameter in the first invocation. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
configs | Array |
The list of configurations. |
|
createdTime | String | 2020-08-20T02:28:21Z |
The time when the asynchronous invocation configuration was created. |
destinationConfig | DestinationConfig |
The configuration structure of the destination for asynchronous invocation. |
|
functionName | String | testHelloWorld |
The name of the function. |
lastModifiedTime | String | 2020-09-10T02:45:02Z |
The time when the asynchronous invocation configuration was last updated. |
maxAsyncEventAgeInSeconds | Long | 1 |
The validity period of requests. Valid values: 1 to 2592000. Unit: seconds. |
maxAsyncRetryAttempts | Long | 1 |
The maximum number of retries after an asynchronous invocation fails. Default value: 3. Valid values: 0 to 8. |
qualifier | String | alias |
The alias or version of the service. |
serviceName | String | service_name |
The name of the service that contains the function for which you want to create or update the asynchronous invocation configuration. |
nextToken | String | caeba0be03****f84eb48b699f0a4883 |
The token used to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. Include this parameter in subsequent invocations to obtain more results. You do not need to provide this parameter in the first invocation. |
Examples
Sample requests
GET /2016-08-15/services/service_name.alias/functions/testHellowWorld/async-invoke-configs? NextToken=caeba0be03*******b699f0a4883&Limit=20 HTTP/1.1
Common request headers
Sample success responses
JSON
format
HTTP/1.1 200 OK
Common response headers
{
"configs":[
{
"serviceName":"service_name",
"functionName":"testHelloWorld",
"createdTime":"2020-08-20T02:28:21Z",
"qualifier":"alias",
"lastModifiedTime":"2020-09-10T02:45:02Z",
"destinationConfig":{
"onSuccess":{
"destination":"acs:mns:cn-shanghai:1986***743:/queues/queue_name/messages"
},
"onFailure":{
"destination":"acs:fc:cn-hangzhou:1986***743:services/service_name.alias/functions/testHelloWorld"
}
},
"maxAsyncEventAgeInSeconds":1,
"maxAsyncRetryAttempts":1
}
],
"nextToken":"caeba0be03****f84eb48b699f0a4883"
}