All Products
Search
Document Center

Function Compute:GetAsyncTask

最終更新日:Oct 08, 2024

Queries the information about an asynchronous task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /2023-03-30/functions/{functionName}/async-tasks/{taskId} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
functionNamestringYes

The function name.

my-func
taskIdstringYes

The ID of the asynchronous task.

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

The version or alias of the function.

LATEST

Response parameters

ParameterTypeDescriptionExample
AsyncTask

The asynchronous task information. The returnPayload parameter is in beta test. If you want to use this parameter, contact us.

Examples

Sample success responses

JSONformat

{
  "alreadyRetriedTimes": 3,
  "destinationStatus": "Succeeded",
  "durationMs": 1000,
  "endTime": 1633449590000,
  "events": [
    {
      "eventDetail": "body",
      "eventId": 1,
      "status": "Succeeded",
      "timestamp": 1647420449721
    }
  ],
  "functionArn": "acs:fc:cn-shanghai:1234/functions/my-func",
  "instanceId": "D4-*******9FD1-882707E",
  "qualifier": "prod",
  "requestId": "e026ae92-61e5-472f-b32d-1c9e3c4e****",
  "returnPayload": "result",
  "startedTime": 1633449590000,
  "status": "Running",
  "taskErrorMessage": "UnhandledInvocationError",
  "taskId": "e026ae92-61e5-472f-b32d-1c9e3c4e****",
  "taskPayload": "body"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history