Queries the overview of tasks in the task center.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeHistoryTasksStat |
list |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the pending event. You can call the DescribeRegions operation to query available regions. |
cn-beijing |
| Status |
string |
No |
The task status. Valid values:
Separate multiple values with commas (,). Default value: empty, indicating that tasks in all states are queried. |
Succeed |
| InstanceId |
string |
No |
The instance ID. Separate multiple instance IDs with commas (,). You can specify up to 30 instance IDs. Default value: empty, indicating that tasks of all instances are queried. |
dds-8vb38f0e7933xxxx |
| TaskId |
string |
No |
The task ID. Separate multiple task IDs with commas (,). You can specify up to 30 task IDs. Default value: empty, indicating that all tasks are queried. |
t-0mq1yyhm3ffl2bxxxx |
| TaskType |
string |
No |
The task type. Default value: empty, indicating that all task types are queried. Valid values:
|
DeleteIns |
| FromStartTime |
string |
Yes |
The start time of the O&M task to perform. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. You can query data within the last 30 days. |
2023-04-16T02:46:21Z |
| ToStartTime |
string |
Yes |
The end time of the O&M task to perform. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. You can query data within the last 30 days. |
2023-05-16T02:15:52Z |
| FromExecTime |
integer |
No |
The minimum execution duration. Tasks whose execution duration exceeds this value are returned. Unit: seconds. Default value: 0, indicating no limit. |
0 |
| ToExecTime |
integer |
No |
The maximum execution duration. Tasks whose execution duration is shorter than or equal to this value are returned. Unit: seconds. Default value: 0, indicating no limit. |
0 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmyiu4ekp**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
FC724D23-XXXX-XXXX-ABB1-606C935AE7FD |
| Items |
array<object> |
The task objects. |
|
|
object |
|||
| Status |
string |
The task status. Valid values:
|
Succeed |
| TotalCount |
integer |
The number of tasks in the specified state. |
2 |
Examples
Success response
JSON format
{
"RequestId": "FC724D23-XXXX-XXXX-ABB1-606C935AE7FD",
"Items": [
{
"Status": "Succeed",
"TotalCount": 2
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Param.Invalid | Param invalid | |
| 400 | Param.Invalid.TimeEndBeforeStart | Param invalid. End time before start time |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.