Queries the information about a pending event.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribePendingMaintenanceAction |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
The region ID of the pending event. You can call the DescribeRegions operation to query the regions and zones that are supported by PolarDB. Note
|
all |
| TaskType |
string |
Yes |
The task type of pending events. Valid values:
Note
If the |
all |
| IsHistory |
integer |
No |
Specifies whether to return the historical tasks. Valid values:
Default value: 0. |
0 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 30, 50, and 100. Default value: 30. |
30 |
| PageNumber |
integer |
No |
The number of the page to return. Specify the parameter to a positive integer that does not exceed the maximum value of the INTEGER data type. Default value: 1. |
1 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-************ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalRecordCount |
integer |
The total number of returned entries. |
1 |
| RequestId |
string |
The ID of the request. |
2F029645-FED9-4FE8-A6D3-488954****** |
| PageSize |
integer |
The number of entries per page. |
30 |
| PageNumber |
integer |
The page number. |
1 |
| Items |
array<object> |
Details about tasks. |
|
|
object |
|||
| Status |
integer |
The status of the pending task.
|
3 |
| PrepareInterval |
string |
The preparation time that is required before the pending event is switched. The time follows the |
04:00:00 |
| Deadline |
string |
The deadline before which the task can be executed. The time is in the |
2020-06-11T15:59:59Z |
| DBType |
string |
The type of the database engine. Valid values:
|
MySQL |
| TaskType |
string |
The type of the pending event. |
DatabaseSoftwareUpgrading |
| StartTime |
string |
The time when the task was executed in the background. The time is in the |
2020-06-09T18:00:00Z |
| DBVersion |
string |
The version of the database engine.
|
8.0 |
| ModifiedTime |
string |
The time when the parameter was modified. The time is in the |
2020-06-09T22:00:42Z |
| DBClusterId |
string |
The ID of the cluster. |
pc-************ |
| Region |
string |
The region ID of the pending event. |
cn-hangzhou |
| ResultInfo |
string |
The execution result of the task. Valid values:
Note
This parameter is returned only when the value of the |
manualCancel |
| CreatedTime |
string |
The time when the task was created. The time is in the |
2020-06-09T22:00:42Z |
| Id |
integer |
The ID of the task. |
111111 |
| SwitchTime |
string |
The time when the pending event was switched. The time is in the |
2020-06-09T22:00:00Z |
Examples
Success response
JSON format
{
"TotalRecordCount": 1,
"RequestId": "2F029645-FED9-4FE8-A6D3-488954******",
"PageSize": 30,
"PageNumber": 1,
"Items": [
{
"Status": 3,
"PrepareInterval": "04:00:00",
"Deadline": "2020-06-11T15:59:59Z",
"DBType": "MySQL",
"TaskType": "DatabaseSoftwareUpgrading",
"StartTime": "2020-06-09T18:00:00Z",
"DBVersion": "8.0",
"ModifiedTime": "2020-06-09T22:00:42Z",
"DBClusterId": "pc-************",
"Region": "cn-hangzhou",
"ResultInfo": "manualCancel",
"CreatedTime": "2020-06-09T22:00:42Z",
"Id": 111111,
"SwitchTime": "2020-06-09T22:00:00Z"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RequiredParam.NotFound | Required input param is not found. | The specified parameter does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.