Queries the numbers of pending events in different task types.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No DescribePendingMaintenanceActions

The operation that you want to perform. Set the value to DescribePendingMaintenanceActions.

RegionId String Yes cn-hangzhou

The ID of the region.

Note If the database engine of the PolarDB cluster is PolarDB O Edition or the ApsaraDB PolarDB PostgreSQL-compatible edition, this parameter is required. If the database engine of the PolarDB cluster is the ApsaraDB PolarDB MySQL-compatible edition, this parameter is optional.
IsHistory Integer No 1

Specifies whether to return the historical tasks. Valid values:

  • 0: returns the current task.
  • 1: returns the historical tasks.

Default value: 0.

Response parameters

Parameter Type Example Description
RequestId String 314127C2-B6C1-4F58-B1F6-E6B645******

The ID of the request.

TypeList Array of Items

The details of pending events.

TaskType String DatabaseSoftwareUpgrading

The task type of pending events. Valid values:

  • DatabaseSoftwareUpgrading: database software upgrades
  • DatabaseHardwareMaintenance: hardware maintenance and upgrades
  • DatabaseStorageUpgrading: database storage upgrades
  • DatabaseProxyUpgrading: minor version upgrades of the proxy
Count Integer 1

The number of pending events.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/?Action=DescribePendingMaintenanceActions
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribePendingMaintenanceActionsResponse>
<RequestId>314127C2-B6C1-4F58-B1F6-E6B645******</RequestId>
<TypeList>
    <TaskType>DatabaseSoftwareUpgrading</TaskType>
    <Count>1</Count>
</TypeList>
</DescribePendingMaintenanceActionsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "314127C2-B6C1-4F58-B1F6-E6B645******",
  "TypeList" : [ {
    "TaskType" : "DatabaseSoftwareUpgrading",
    "Count" : 1
  } ]
}

Error codes

For a list of error codes, visit the API Error Center.