All Products
Search
Document Center

PolarDB:DescribeActiveOperationTasks

Last Updated:Sep 10, 2026

Queries O&M events by calling the DescribeActiveOperationTasks operation.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardbx:DescribeActiveOperationTasks

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Region

string

No

The region.

cn-hangzhou

TaskType

string

No

The task type. A value of all indicates that all tasks of the user are queried. Set the value to all.

all

ProductId

string

No

The product name. Default value: polarx.

polarx

DbType

string

No

The database type. Set the value to polarx.

polarx

InsName

string

No

The instance name. Default value: empty string.

pxc-xxxxx

ChangeLevel

string

No

The change level. Default value: all. Valid values:

  • all: all levels of exception repair and system O&M.

  • S0: exception repair.

  • S1: system O&M.

all

PageSize

integer

No

The number of entries per page. Default value: 25.

25

PageNumber

integer

No

The page number. The value must be greater than 0. Default value: 1.

1

Status

integer

No

The task status. Valid values:

  • -1: all pending and running tasks.

  • 3: pending.

  • 4: running.

-1

AllowChange

integer

No

Specifies whether the time can be modified. Valid values:

  • -1: allows modification of the time for all O&M events.

  • 0: not allowed.

  • 1: allowed.

-1

AllowCancel

integer

No

Specifies whether cancellation is allowed. Valid values:

  • -1: allows cancellation of all O&M events.

  • 0: not allowed.

  • 1: allowed.

-1

RegionId

string

Yes

The region ID.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

The response parameters.

PageSize

integer

The number of entries per page.

12

RequestId

string

The request ID.

xxxx

PageNumber

integer

The page number.

1

TotalRecordCount

integer

The total number of records.

23

Items

array<object>

The list of parameters.

object

The list of parameters.

AllowCancel

string

Indicates whether cancellation is allowed. Valid values:

  • 0: not allowed.

  • 1: allowed.

0

AllowChange

string

Indicates whether modification is allowed. Valid values:

  • 0: not allowed.

  • 1: allowed.

0

ChangeLevel

string

The change level (can be ignored).

Risk

ChangeLevelEn

string

The change level in English.

Risk repairment

ChangeLevelZh

string

The change level in Chinese.

风险修复

CreatedTime

string

The creation time.

2021-06-15T16:00:00Z

CurrentAVZ

string

The current availability zone.

cn-shanghai-et-a

DbType

string

The database type.

polarx

DbVersion

string

The database version.

2.0

Deadline

string

The deadline.

2021-06-15T16:00:00Z

Id

integer

The task ID.

1

Impact

string

The impact (not output).

--

ImpactEn

string

The impact in English.

Transient instance disconnection

ImpactZh

string

The impact in Chinese.

中断

InsComment

string

The description.

xxx

InsName

string

The instance name.

pxc-dd

ModifiedTime

string

The modification time.

2021-06-15T16:00:00Z

PrepareInterval

string

The preparation interval.

03:00:00

Region

string

The region.

cn-shanghai-et15-b01

ResultInfo

string

The result information (can be ignored).

--

StartTime

string

The start time.

2021-06-15T16:00:00Z

Status

integer

The status. Valid values:

  • 3: pending.

  • 4: running.

3

SubInsNames

array

The list of child instances.

string

The child instance list entry.

pxc-xx

SwitchTime

string

The switchover time.

2021-06-15T16:00:00Z

TaskType

string

The task type.

rds_apsaradb_transfer

TaskTypeEn

string

The task type in English (can be ignored).

--

TaskTypeZh

string

The task type in Chinese (can be ignored).

--

Examples

Success response

JSON format

{
  "PageSize": 12,
  "RequestId": "xxxx",
  "PageNumber": 1,
  "TotalRecordCount": 23,
  "Items": [
    {
      "AllowCancel": "0",
      "AllowChange": "0",
      "ChangeLevel": "Risk",
      "ChangeLevelEn": "Risk repairment",
      "ChangeLevelZh": "风险修复",
      "CreatedTime": "2021-06-15T16:00:00Z",
      "CurrentAVZ": "cn-shanghai-et-a",
      "DbType": "polarx",
      "DbVersion": "2.0",
      "Deadline": "2021-06-15T16:00:00Z",
      "Id": 1,
      "Impact": "--",
      "ImpactEn": "Transient instance disconnection",
      "ImpactZh": "中断",
      "InsComment": "xxx",
      "InsName": "pxc-dd",
      "ModifiedTime": "2021-06-15T16:00:00Z",
      "PrepareInterval": "03:00:00",
      "Region": "cn-shanghai-et15-b01",
      "ResultInfo": "--",
      "StartTime": "2021-06-15T16:00:00Z",
      "Status": 3,
      "SubInsNames": [
        "pxc-xx"
      ],
      "SwitchTime": "2021-06-15T16:00:00Z",
      "TaskType": "rds_apsaradb_transfer",
      "TaskTypeEn": "--",
      "TaskTypeZh": "--"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.