Queries the status of an asynchronous task.
Operation description
Queries the status of an asynchronous task. To query more details about a task, call the GetTask operation.
The following example queries the task whose ID is t-shfqw1u1edszvxw5****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:GetTaskStatus |
get |
*Directory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
| TaskId |
string |
Yes |
The ID of the task. |
t-shfqw1u1edszvxw5**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned results. |
||
| RequestId |
string |
The request ID. |
005F4623-AE53-504D-830F-44825F7DC211 |
| TaskStatus |
object |
The task status details. |
|
| Status |
string |
The task status. Valid values:
|
Success |
| TaskId |
string |
The ID of the task. |
t-shfqw1u1edszvxw5**** |
| EndTime |
string |
The end time of the task. |
2021-11-05T02:58:08Z |
| TaskType |
string |
The task type. Valid values:
|
DeleteAccessAssignment |
| FailureReason |
string |
The cause of the task failure. Note
This parameter is returned only when the value of |
No Permission. |
| StartTime |
string |
The start time of the task. |
2021-11-05T02:58:07Z |
Examples
Success response
JSON format
{
"RequestId": "005F4623-AE53-504D-830F-44825F7DC211",
"TaskStatus": {
"Status": "Success",
"TaskId": "t-shfqw1u1edszvxw5****",
"EndTime": "2021-11-05T02:58:08Z",
"TaskType": "DeleteAccessAssignment",
"FailureReason": "No Permission.",
"StartTime": "2021-11-05T02:58:07Z"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.