Mengkueri informasi detail tentang tugas instans Database Apsara for MongoDB.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeActiveOperationTask |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
ID Wilayah Instans. Catatan
Jika Anda mengatur parameter Region ke all, semua Tugas yang dibuat dalam akun Alibaba Cloud Anda akan dikueri. Dalam hal ini, Anda harus mengatur parameter taskType ke all. |
cn-shanghai |
| TaskType |
string |
Yes |
Tipe Tugas. Nilai valid:
|
rds_apsaradb_ha |
| IsHistory |
integer |
No |
Apakah akan mengembalikan Tugas historis. Nilai default: 0. Nilai valid:
|
0 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Tentukan nilai lebih besar dari 10. Nilai default: 30. |
30 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai harus berupa integer lebih besar dari 0. Nilai default: 1. |
1 |
| ProductId |
string |
No |
ID Produk. |
MongoDB |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalRecordCount |
integer |
The total number of returned entries. |
0 |
| RequestId |
string |
The request ID. |
6FD47DC4-0750-5524-A89E-E7D559Cxxxxx |
| PageSize |
integer |
The number of entries returned per page. |
30 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| Items |
array<object> |
The list of tasks. |
|
|
object |
|||
| Status |
integer |
The state of the task. Valid values:
|
2 |
| TaskParams |
string |
The task parameters. |
"" |
| PrepareInterval |
string |
The required preparation period between the task start time and the switchover time. The time is displayed in the HH:mm:ss format. |
14:00:00 |
| Deadline |
string |
The deadline before which the time to preform the task can be modified. The time in UTC is displayed in the yyyy-MM-ddTHH:mm:ssZ format. |
2023-03-29T13:59:59Z |
| StartTime |
string |
The time when the task was preformed. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. |
2023-03-20T02:40:00Z |
| TaskType |
string |
The type of the task. Valid values:
|
rds_apsaradb_ha |
| ModifiedTime |
string |
The time when the task was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. |
2023-02-24T08:18:53Z |
| InsName |
string |
The instance ID. |
dds-bp12721xxxx9b914 |
| DbType |
string |
The database type of the instance. |
mongodb |
| Region |
string |
The region of the instance. |
cn-beijing |
| ResultInfo |
string |
The result information. |
"" |
| CreatedTime |
string |
The time when the task was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. |
2024-11-06T13:11:08Z |
| Id |
integer |
The task ID. |
50xx |
| SwitchTime |
string |
The time when the system performs the switchover operation. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. |
2024-11-06T14:11:08Z |
Contoh
Respons sukses
JSONformat
{
"TotalRecordCount": 0,
"RequestId": "6FD47DC4-0750-5524-A89E-E7D559Cxxxxx",
"PageSize": 30,
"PageNumber": 1,
"Items": [
{
"Status": 2,
"TaskParams": "\"\"",
"PrepareInterval": "14:00:00",
"Deadline": "2023-03-29T13:59:59Z",
"StartTime": "2023-03-20T02:40:00Z",
"TaskType": "rds_apsaradb_ha",
"ModifiedTime": "2023-02-24T08:18:53Z",
"InsName": "dds-bp12721xxxx9b914",
"DbType": "mongodb",
"Region": "cn-beijing",
"ResultInfo": "\"\"",
"CreatedTime": "2024-11-06T13:11:08Z",
"Id": 0,
"SwitchTime": "2024-11-06T14:11:08Z\n"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RequiredParam.NotFound | Required input param is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.