Retrieves the details of an asynchronous task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:DescribeTask |
none |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tasks/{TaskId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
Yes |
The ID of the task. You can call the |
t-0004d9ctt1ii******** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Data |
object |
The returned data. |
|
| TaskId |
string |
The ID of the task. |
t-xxxxxxxx |
| TaskName |
string |
The task name. |
test5566 |
| TaskDescription |
string |
The task description. |
empty |
| TaskType |
string |
The task type. Valid values: |
UPDATE_RESOURCES |
| TaskPriority |
string |
The task priority. Valid values: |
HIGH |
| RequestId |
string |
The ID of the request. |
784076D6-BD6D-5564-9CEA-834EB11F0C62 |
| TaskDetail |
string |
The details of the task execution. |
{"resourceTypes":["ACS::ECS::Instance","ACS::OSS::Bucket","ACS::OTS::Instance","ACS::NAS::FileSystem"]} |
| ExecutionId |
string |
The execution ID. This parameter is deprecated and always returns an empty string. |
empty |
| Progress |
integer |
The task's progress, measured on a scale of 0 to 10,000. |
100 |
| TaskStatus |
string |
The status of the task. Valid values: |
RUNNING |
| ErrorMessage |
string |
The error message returned if the task fails. |
too many requests. |
| StartTime |
integer |
The start time, formatted as a Unix timestamp in seconds. |
1724983927 |
| CompleteTime |
integer |
The completion time, formatted as a Unix timestamp in seconds. |
1724983927 |
| ExpireTime |
integer |
The expiration time, formatted as a Unix timestamp in seconds. |
1719026680 |
| TaskResult |
string |
The result of the task. |
{"resourceCounts":[{"resourceType":"ACS::OSS::Bucket","count":2},{"resourceType":"ACS::NAS::FileSystem","count":3}]} |
| RequestId |
string |
The ID of the request. |
14DFF801-A4E3-5136-AAB8-7D246012CD7A |
Examples
Success response
JSON format
{
"Data": {
"TaskId": "t-xxxxxxxx",
"TaskName": "test5566",
"TaskDescription": " empty",
"TaskType": "UPDATE_RESOURCES",
"TaskPriority": "HIGH",
"RequestId": "784076D6-BD6D-5564-9CEA-834EB11F0C62",
"TaskDetail": "{\"resourceTypes\":[\"ACS::ECS::Instance\",\"ACS::OSS::Bucket\",\"ACS::OTS::Instance\",\"ACS::NAS::FileSystem\"]}",
"ExecutionId": " empty",
"Progress": 100,
"TaskStatus": "RUNNING",
"ErrorMessage": "too many requests.",
"StartTime": 1724983927,
"CompleteTime": 1724983927,
"ExpireTime": 1719026680,
"TaskResult": "{\"resourceCounts\":[{\"resourceType\":\"ACS::OSS::Bucket\",\"count\":2},{\"resourceType\":\"ACS::NAS::FileSystem\",\"count\":3}]}"
},
"RequestId": "14DFF801-A4E3-5136-AAB8-7D246012CD7A"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.