Queries the information about an asynchronous task that meets specific conditions.
Operation Description
The version or alias of the service to which the asynchronous task belongs.
Authorization information
Request syntax
GET /2021-04-06/services/{serviceName}/functions/{functionName}/stateful-async-invocations/{invocationId}
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
serviceName | string | Yes | The event triggered by the asynchronous task. | demo-service |
functionName | string | Yes | The number of retries after the asynchronous task fails. | demo-function |
invocationId | string | Yes | The request ID of the asynchronous task. | e026ae92-61e5-472f-b32d-1c9e3c4e**** |
qualifier | string | No | The ID of the instance that is used to run the asynchronous task. | LATEST |
X-Fc-Account-Id | string | No | The list of events that trigger the asynchronous task. | 188077086902**** |
X-Fc-Code-Checksum | string | No | The structure of the asynchronous task. | 1506052139770049xxxx |
X-Fc-Log-Type | string | No | The latest version of Function Compute API. | Tail |
X-Fc-Invocation-Type | string | No | StatefulAsyncInvocation: asynchronous task. Asynchronous tasks allow you to manage the states on the basis of common asynchronous invocations, which is more suitable for task scenarios. | Async |
X-Fc-Date | string | No | Alibaba Cloud provides SDKs for multiple programming languages to help you integrate Alibaba Cloud services by using APIs. We recommend that you use an SDK to call API operations. This frees you from manual signature verification. | Sat, 14 Jul 2017 07:02:38 GMT |
X-Fc-Trace-Id | string | No | You can search for API operations, call and debug API operations online, and dynamically generate executable sample code for SDKs. | asdf**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"functionName": "functionName",
"serviceName": "serviceName",
"qualifier": "LATEST",
"invocationId": "demo-id",
"status": "Running",
"startedTime": 1633449590000,
"endTime": 1633449599000,
"destinationStatus": "Succeeded",
"invocationErrorMessage": "UnhandledInvocationError",
"invocationPayload": "\"body\"",
"alreadyRetriedTimes": 3,
"requestId": "ABA740D4-********-882707EADC37",
"instanceId": "D4-*******9FD1-882707E",
"events": [
{
"eventId": 1,
"status": "Enqueued",
"timestamp": 1647420449721,
"eventDetail": "{\"Error\":\"UnhandledInvocationError\"}"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-30 | The input parameters of the API operation change. | |||||||||||||||
|