Queries the number of pending events in different 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 No cn-hangzhou

The ID of the region.

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 about pending events.

Count Integer 1

The number of pending events.

TaskType String DatabaseSoftwareUpgrading

The type of pending events. Valid values:

  • DatabaseSoftwareUpgrading: database software upgrades
  • DatabaseHardwareMaintenance: hardware maintenance and upgrades
  • DatabaseStorageUpgrading: database storage upgrades

Examples

Sample requests

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

Sample success responses

XML format

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

JSON format

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

Error codes

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