Queries an asynchronous invocation configuration of a specific function in a service.

Request headers

This operation uses only common request headers. For more information, see Common parameters.

Request syntax

GET /services/{serviceName[.qualifier]}/functions/{functionName}/async-invoke-config HTTP/1.1

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 query the asynchronous invocation configuration.

functionName String Path Yes testHelloWorld

The name of the function for which you want to query the asynchronous invocation configuration.

qualifier String Path No alias

The alias or version of the service that contains the function for which you want to query the asynchronous invocation configuration.

Response parameters

Parameter Type Example Description
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 for which you want to query the asynchronous invocation configuration.

lastModifiedTime String 2020-09-10T02:45:02Z

The time when the asynchronous invocation configuration was last modified.

maxAsyncEventAgeInSeconds Long 1

The maximum validity period of messages. Valid values: [1,2592000]. Unit: seconds.

maxAsyncRetryAttempts Long 1

The maximum number of retries after an asynchronous invocation fails. Default value: 3. Valid values: [0,8].

qualifier String alias

The alias or version of the service that contains the function for which you want to query the asynchronous invocation configuration.

serviceName String service_name

The name of the service that contains the function for which you want to query the asynchronous invocation configuration.

statefulInvocation Boolean true

Indicates whether stateful asynchronous invocation is enabled.

  • true: Stateful asynchronous invocation is enabled.
  • false: Stateful asynchronous invocation is disabled.

Examples

Sample requests

GET /2016-08-15/services/service_name.alias/functions/testHelloWorld/async-invoke-config HTTP/1.1
Common request headers

Sample success responses

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "createdTime" : "2020-08-20T02:28:21Z",
  "destinationConfig" : {
    "onFailure" : {
      "destination" : "acs:mns:cn-shanghai:1986***743:/queues/failure/messages"
    },
    "onSuccess" : {
      "destination" : "acs:mns:cn-shanghai:1986***743:/queues/success/messages"
    }
  },
  "functionName" : "testHelloWorld",
  "lastModifiedTime" : "2020-09-10T02:45:02Z",
  "maxAsyncEventAgeInSeconds" : 1,
  "maxAsyncRetryAttempts" : 1,
  "qualifier" : "alias",
  "serviceName" : "service_name",
  "statefulInvocation" : true
}