Mengkueri status Tugas asinkron.
Deskripsi operasi
You can call the GetTaskStatus operation to query the status of an asynchronous task. If you want to query more information about an asynchronous task, call the GetTask operation.
This topic provides an example on how to query the information about the task whose ID is t-shfqw1u1edszvxw5****.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:GetTaskStatus |
get |
*Directory
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
ID direktori. |
d-00fc2p61**** |
| TaskId |
string |
Yes |
ID Tugas. |
t-shfqw1u1edszvxw5**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned results. |
||
| RequestId |
string |
The request ID. |
005F4623-AE53-504D-830F-44825F7DC211 |
| TaskStatus |
object |
The status information about the task. |
|
| Status |
string |
The task status. Valid values:
|
Success |
| TaskId |
string |
The task ID. |
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. Catatan
This parameter is returned only when the value of |
No Permission. |
| StartTime |
string |
The start time of the task. |
2021-11-05T02:58:07Z |
Contoh
Respons sukses
JSONformat
{
"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"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.