All Products
Search
Document Center

Cloud Phone:CancelAgentTask

Last Updated:Jun 10, 2026

Membatalkan tugas agen yang sedang berjalan pada node seluler.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

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:

CANCELLING or CANCELED: The task is being canceled or has been canceled.

COMPLETED: The task was already complete and could not be canceled.

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.