Calls this operation to query a specified asynchronous task.
Operation description
GET /api/v1/tasks/{taskId}.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /api/v1/tasks/{taskId} HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| taskId | string | Yes | The ID of the task. | task-433aead756057fff8189a7ce5**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"task": {
"createTime": "2022-10-09T00:46:03Z",
"error": {
"code": "OperationFailure.OperationFailed",
"message": "{\n \"requestId\": \"123****\",\n \"errorCode\": \"InvalidRamUser.NoPermission\",\n \"errorMsg\": \"Ram user is not authorized to perform the operation.\"\n}"
},
"product": "ECS",
"regionId": "cn-beijing",
"resourceId": "i-8vbascjthm7kzhp3****\n",
"resourcePath": "Instance/i-8vbascjthm7kzhp3****\nInstance/r-8vbf5abe31c9c4d4/Account/cctest",
"resourceType": "Instance",
"status": "Succeeded",
"taskAction": "Create",
"taskId": "task-433aead756057fff8189a7ce5****"
}
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2023-07-04 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
