Mengambil detail tugas asinkron.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:DescribeTask |
none |
*全部资源
|
None | None |
Sintaks permintaan
GET /api/v1/tasks/{TaskId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
Yes |
ID task. Anda dapat memanggil operasi |
t-0004d9ctt1ii******** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
badan respons. |
||
| Data |
object |
Data yang dikembalikan. |
|
| TaskId |
string |
ID task. |
t-xxxxxxxx |
| TaskName |
string |
Nama task. |
test5566 |
| TaskDescription |
string |
Deskripsi task. |
empty |
| TaskType |
string |
Tipe task. Nilai yang valid: |
UPDATE_RESOURCES |
| TaskPriority |
string |
Prioritas task. Nilai yang valid: |
HIGH |
| RequestId |
string |
ID permintaan. |
784076D6-BD6D-5564-9CEA-834EB11F0C62 |
| TaskDetail |
string |
Detail eksekusi task. |
{"resourceTypes":["ACS::ECS::Instance","ACS::OSS::Bucket","ACS::OTS::Instance","ACS::NAS::FileSystem"]} |
| ExecutionId |
string |
ID eksekusi. Parameter ini sudah tidak digunakan lagi dan selalu mengembalikan string kosong. |
empty |
| Progress |
integer |
Kemajuan task, diukur dalam skala 0 hingga 10.000. |
100 |
| TaskStatus |
string |
Status task. Nilai yang valid: |
RUNNING |
| ErrorMessage |
string |
Pesan error yang dikembalikan jika task gagal. |
too many requests. |
| StartTime |
integer |
Waktu mulai, diformat sebagai Unix timestamp dalam satuan detik. |
1724983927 |
| CompleteTime |
integer |
Waktu penyelesaian, diformat sebagai Unix timestamp dalam satuan detik. |
1724983927 |
| ExpireTime |
integer |
Waktu kedaluwarsa, diformat sebagai Unix timestamp dalam satuan detik. |
1719026680 |
| TaskResult |
string |
Hasil task. |
{"resourceCounts":[{"resourceType":"ACS::OSS::Bucket","count":2},{"resourceType":"ACS::NAS::FileSystem","count":3}]} |
| RequestId |
string |
ID permintaan. |
14DFF801-A4E3-5136-AAB8-7D246012CD7A |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.