Queries the information about an asynchronous task.
Debugging
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
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
functionName | string | Yes | The function name. | my-func |
taskId | string | Yes | The ID of the asynchronous task. | e026ae92-61e5-472f-b32d-1c9e3c4e**** |
qualifier | string | No | The version or alias of the function. | LATEST |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 time | Summary of changes | Operation |
---|
No change history