Retrieves the details of a specified asynchronous task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetAsyncTask |
get |
*All Resource
|
None | None |
Request syntax
GET /2023-03-30/functions/{functionName}/async-tasks/{taskId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
Yes |
The function name. |
my-func |
| taskId |
string |
Yes |
The asynchronous task ID. |
e026ae92-61e5-472f-b32d-1c9e3c4e**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
The function version or alias. |
LATEST |
Response elements
|
Element |
Type |
Description |
Example |
| AsyncTask |
The information about the asynchronous task. The returnPayload field is in beta. If you want to use this field, contact us to enable it. |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.