All Products
Search
Document Center

Function Compute:GetStatefulAsyncInvocation

Last Updated:Jun 02, 2023

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

There is currently no authorization information disclosed in the API.

Request syntax

GET /2021-04-06/services/{serviceName}/functions/{functionName}/stateful-async-invocations/{invocationId}

Request parameters

ParameterTypeRequiredDescriptionExample
serviceNamestringYes

The event triggered by the asynchronous task.

demo-service
functionNamestringYes

The number of retries after the asynchronous task fails.

demo-function
invocationIdstringYes

The request ID of the asynchronous task.

e026ae92-61e5-472f-b32d-1c9e3c4e****
qualifierstringNo

The ID of the instance that is used to run the asynchronous task.

LATEST
X-Fc-Account-IdstringNo

The list of events that trigger the asynchronous task.

188077086902****
X-Fc-Code-ChecksumstringNo

The structure of the asynchronous task.

1506052139770049xxxx
X-Fc-Log-TypestringNo

The latest version of Function Compute API.

Tail
X-Fc-Invocation-TypestringNo

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-DatestringNo

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-IdstringNo

You can search for API operations, call and debug API operations online, and dynamically generate executable sample code for SDKs.

asdf****

Response parameters

ParameterTypeDescriptionExample
StatefulAsyncInvocation

It is a tool used to manage and configure Alibaba Cloud resources. After simple installation and configuration, you can use Alibaba Cloud CLI to manage multiple Alibaba Cloud services and migrate your data and business to the cloud with ease.

Alibaba Cloud CLI

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
2021-06-30The 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-06-30The 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-06-30The 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