Memanggil CancelTask untuk membatalkan tugas yang sedang berjalan. Saat ini, Anda hanya dapat membatalkan tugas yang sedang berjalan untuk mengimpor citra (ImportImage) dan mengekspor citra (ExportImage).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:CancelTask |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region. Anda dapat memanggil DescribeRegions untuk menanyakan daftar region Alibaba Cloud terbaru. |
cn-hangzhou |
| TaskId |
string |
Yes |
ID tugas. Anda dapat memanggil DescribeTasks untuk menanyakan daftar ID tugas. |
t-bp198jigq7l0h5ac**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Respons error
JSONformat
{
"RequestId": "4BE2C7FE-C7A4-4675-A153-174E032AABFB"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | An input parameter "RegionId" that is mandatory for processing the request is not supplied. | |
| 400 | InvalidRegionId.NotFound | The specified RegionId does not exist. | |
| 400 | InvalidTaskId.NotFound | The specified "TaskId" is not found. | |
| 403 | InvalidTaskId.TaskActionNotSupport | The specified task action not support. | |
| 403 | InvalidTaskId.IncorrectTaskStatus | The specified task status is invalid. | |
| 403 | CancelTaskFailed | The task is failed to cancel, Please contact the administrator. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.