Mengubah informasi tugas di pusat tugas untuk instans Database Apsara for MongoDB.
Deskripsi operasi
The actions performed by this operation for a task vary based on the current state of the task. The supported actions for a task can be obtained from the value of the actionInfo parameter in the DescribeHistoryTasks operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyTaskInfo |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID Wilayah instans. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| TaskId |
string |
Yes |
ID Tugas. Pisahkan beberapa ID dengan koma (,). Anda dapat menentukan hingga 10 ID tugas. |
t-83br18hlpdrw3uxxxx |
| StepName |
string |
Yes |
Nama langkah yang terlihat oleh pengguna. |
exec_task |
| TaskAction |
string |
Yes |
Nama aksi yang sesuai dengan status yang dijelaskan dalam parameter actionInfo pada operasi DescribeHistoryTasks. |
modifySwitchTime |
| ActionParams |
string |
No |
Parameter terkait aksi. Anda dapat memperluas parameter ini berdasarkan kebutuhan bisnis Anda. Nilai parameter bervariasi sesuai dengan nilai parameter TaskAction. |
{\"recoverMode\":\"immediate\"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
6163731A-XXXX-XXXX-B934-3388DE70C217 |
| ErrorTaskId |
string |
The ID of the failed task. The operation returns results after a task fails. |
"" |
| SuccessCount |
string |
The number of successful tasks. |
1 |
| ErrorCode |
string |
The error code for the failed task. It is the same as that of the ModifyTaskInfo operation. |
"" |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6163731A-XXXX-XXXX-B934-3388DE70C217",
"ErrorTaskId": "\"\"",
"SuccessCount": "1",
"ErrorCode": "\"\""
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.