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 Yes DescribePendingMaintenanceActions

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

RegionId String Yes cn-hangzhou

The region ID of the cluster.

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.

ResourceGroupId String No rg-************

The ID of the resource group.

Response parameters

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

The ID of the request.

TypeList Array of Items

Details about 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

HTTP status code Error code Error message Description
400 RequiredParam.NotFound Required input param is not found. The error message returned because the specified parameter does not exist.

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