Queries the details of all scheduled tasks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeScheduleTasks |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Status |
string |
No |
The status of the task. Valid values:
Note
If you do not specify this parameter, scheduled tasks in all states are returned. |
finish |
| DBClusterId |
string |
No |
The cluster ID. Note
|
pc-************** |
| RegionId |
string |
No |
The region ID. Note
|
cn-hangzhou |
| PageNumber |
integer |
No |
The page number. The value must be an integer that is greater than 0. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 30 (default), 50, or 100. |
30 |
| TaskAction |
string |
No |
The type of the task. Valid values:
Note
|
CreateDBNodes |
| DBClusterDescription |
string |
No |
The cluster description. |
testdb |
| OrderId |
string |
No |
The order ID. Note
The ID can contain only digits from 0 to 9. |
20951253014**** |
| PlannedStartTime |
string |
No |
The earliest start time of the task. The time is in UTC. |
2021-01-28T12:00Z |
| PlannedEndTime |
string |
No |
The latest start time of the task. The time is in UTC. |
2021-01-28T12:30Z |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-************ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
object |
The response data. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries on the current page. |
30 |
| TimerInfos |
array<object> |
The details of the scheduled tasks. |
|
|
object |
|||
| Action |
string |
The task type. |
CreateDBNodes |
| CrontabJobId |
string |
The ID of the scheduled O&M task. |
86293c29-a03d-4872-b625-*********** |
| DBClusterId |
string |
The cluster ID. |
pc-************** |
| DbClusterDescription |
string |
The cluster description. |
test_cluster |
| DbClusterStatus |
string |
The cluster status. |
Running |
| OrderId |
string |
The order ID. Note
This parameter is returned only when |
208161753****** |
| PlannedEndTime |
string |
The latest start time of the task. The time is in UTC. |
2021-01-28T12:30Z |
| PlannedFlashingOffTime |
string |
||
| PlannedStartTime |
string |
The earliest start time of the task. The time is in UTC. |
2021-01-28T12:00Z |
| PlannedTime |
string |
The expected start time of the task. The time is in UTC. |
2021-01-28T12:16Z |
| Region |
string |
The region ID of the scheduled task. |
cn-hangzhou |
| Status |
string |
The status of the task. |
finish |
| TaskCancel |
boolean |
Indicates whether the scheduled task can be canceled. Valid values:
|
true |
| TaskId |
string |
The task ID. |
53879cdb-9a00-428e-acaf-ff4cff****** |
| TotalRecordCount |
integer |
The total number of entries. |
1 |
| Message |
string |
The response message. Note
If the request is successful, "Successful" is returned. If the request fails, an error message is returned. |
Successful |
| RequestId |
string |
The request ID. |
936C7025-27A5-4CB1-BB31-540E1F0CCA12 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"Data": {
"PageNumber": 1,
"PageSize": 30,
"TimerInfos": [
{
"Action": "CreateDBNodes",
"CrontabJobId": "86293c29-a03d-4872-b625-***********",
"DBClusterId": "pc-**************",
"DbClusterDescription": "test_cluster",
"DbClusterStatus": "Running",
"OrderId": "208161753******",
"PlannedEndTime": "2021-01-28T12:30Z",
"PlannedFlashingOffTime": "",
"PlannedStartTime": "2021-01-28T12:00Z",
"PlannedTime": "2021-01-28T12:16Z",
"Region": "cn-hangzhou",
"Status": "finish",
"TaskCancel": true,
"TaskId": "53879cdb-9a00-428e-acaf-ff4cff******"
}
],
"TotalRecordCount": 1
},
"Message": "Successful",
"RequestId": "936C7025-27A5-4CB1-BB31-540E1F0CCA12",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidOrderId.Malformed | The specified parameter OrderId is not valid. | The specified order ID is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.