Queries the details of O\&M events.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeMaintenanceAction |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
The region ID. Valid values:
|
cn-hangzhou |
| TaskType |
string |
Yes |
The type of the O&M event. Valid values:
|
rds_apsaradb_upgrade |
| IsHistory |
integer |
No |
Specifies whether to return pending or historical O&M events. Valid values:
If you do not specify this parameter, pending O&M events are returned. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 30, 50, and 100. Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Default value: 1. |
1 |
| RegionId |
string |
Yes |
The ID of the region where the O&M event occurs. Note
You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| PageNumber |
integer |
The page number. |
1 |
| RequestId |
string |
The request ID. |
E774C8A9-8819-4A09-9E91-07C078****** |
| PageSize |
integer |
The number of entries per page. |
30 |
| TotalRecordCount |
integer |
The total number of entries returned. |
2 |
| Items |
array<object> |
The queried O&M events. |
|
|
object |
|||
| Status |
string |
The state of the event.
|
SUCCESS |
| Deadline |
string |
The deadline before which the event can be executed. The time follows the ISO 8601 standard in the |
2021-07-04T15:59:59Z |
| PrepareInterval |
string |
The preparation time required before the pending O&M event can be switched. The time is in the |
02:00:00 |
| DBType |
string |
The database engine. |
analyticdb |
| StartTime |
string |
The time when the task was executed in the backend. The time follows the ISO 8601 standard in the |
2021-07-03T04:00:00Z |
| TaskType |
string |
The type of the O&M event. |
rds_apsaradb_upgrade |
| DBVersion |
string |
The version of the database engine. |
3.0 |
| DBClusterId |
string |
The cluster ID associated with the O&M event. |
am-**************** |
| ModifiedTime |
string |
The time when the switchover time of the O&M event was last modified. The time follows the ISO 8601 standard in the |
2021-07-03T06:33:00Z |
| Region |
string |
The ID of the region where the O&M event occurs. |
cn-hangzhou |
| ResultInfo |
string |
The result of the O&M event. Note
This parameter is returned only when the value of |
autoCancel |
| CreatedTime |
string |
The time when the O&M event was created. The time follows the ISO 8601 standard in the |
2021-06-30T02:44:27Z |
| Id |
integer |
The ID of the O&M event. |
11111 |
| SwitchTime |
string |
The time when the pending O&M event is switched. The time follows the ISO 8601 standard in the |
2021-07-03T06:00:00Z |
Examples
Success response
JSON format
{
"PageNumber": 1,
"RequestId": "E774C8A9-8819-4A09-9E91-07C078******",
"PageSize": 30,
"TotalRecordCount": 2,
"Items": [
{
"Status": "SUCCESS",
"Deadline": "2021-07-04T15:59:59Z",
"PrepareInterval": "02:00:00",
"DBType": "analyticdb",
"StartTime": "2021-07-03T04:00:00Z",
"TaskType": "rds_apsaradb_upgrade",
"DBVersion": "3.0",
"DBClusterId": "am-****************",
"ModifiedTime": "2021-07-03T06:33:00Z",
"Region": "cn-hangzhou",
"ResultInfo": "autoCancel",
"CreatedTime": "2021-06-30T02:44:27Z",
"Id": 11111,
"SwitchTime": "2021-07-03T06:00:00Z"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RequiredParam.NotFound | Required input param is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.