Membatalkan tugas agen yang sedang berjalan pada node seluler.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
GET HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TaskIds |
array |
Yes |
Daftar ID tugas. |
|
|
string |
Yes |
The task ID. |
t-bp67acfmxazb4p**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
4B886792-2051-5DB4-8AE6-C8E45D3B4**** |
| Code |
string |
The status code. |
200 |
| Message |
string |
The returned message. |
Success. |
| Tasks |
array<object> |
A list of task objects. |
|
|
object |
A task object. |
||
| TaskId |
string |
The globally unique task ID. |
t-imr0fufqd7cle**** |
| InstanceId |
string |
The mobile node ID. |
acp-ek65k51zoxia3x8xz |
| PreviousStatus |
string |
The task status before cancellation. Valid values include: PENDING: The task is being created. RUNNING: The task is running. |
RUNNING |
| CurrentStatus |
string |
The task status after the cancellation request. Valid values include:
|
COMPLETED |
| CancelAt |
string |
The task cancellation time, in ISO 8601 format. |
2026-04-13T17:42:19Z |
| FailedReason |
string |
The failure reason. |
Task status [COMPLETED] does not support cancellation, only PENDING/RUNNING/CANCELLING tasks can be canceled. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4B886792-2051-5DB4-8AE6-C8E45D3B4****",
"Code": "200",
"Message": "Success.",
"Tasks": [
{
"TaskId": "t-imr0fufqd7cle****",
"InstanceId": "acp-ek65k51zoxia3x8xz",
"PreviousStatus": "RUNNING",
"CurrentStatus": "COMPLETED",
"CancelAt": "2026-04-13T17:42:19Z\n",
"FailedReason": "Task status [COMPLETED] does not support cancellation, only PENDING/RUNNING/CANCELLING tasks can be canceled."
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.