All Products
Search
Document Center

AnalyticDB:DescribeActiveOperationTasks

Last Updated:Jan 08, 2026

Queries the information about O\&M tasks.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adb:DescribeActiveOperationTaskslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

cn-shenzhen
RegionstringNo

The region information.

cn-shenzhen
TaskTypestringNo

The type of the O&M tasks that you want to query. Set the value to all to query all O&M tasks configured by the Alibaba Cloud account.

all
PageSizeintegerNo

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

25
PageNumberintegerNo

The page number. Pages start from page 1. Default value: 1.

1
ProductIdstringNo

The product ID.

ads
DbTypestringNo

The database type.

analyticdb
StatusintegerNo

The status of the O&M task. Valid values:

  • -1: all statuses.
  • 3: pending.
  • 4: executing.
-1
InsNamestringNo

The name of the cluster.

am-2ze307ym37t762hnl
AllowChangeintegerNo

Specifies whether the execution time of the O&M task can be changed. Valid values:

  • -1: yes for all O&M tasks.
  • 0: no.
  • 1: yes.
-1
AllowCancelintegerNo

Specifies whether the O&M task can be canceled. Valid values:

  • -1: yes for all O&M tasks.
  • 0: no.
  • 1: yes.
-1
ChangeLevelstringNo

The trigger level of the O&M task. Default value: all. Valid values:

  • all: all task levels.
  • S0: exception fixing.
  • S1: system O&M.
all

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

421794A3-72A5-5D27-9E8B-A75A4C503E17
PageNumberinteger

The page number.

12
PageSizeinteger

The number of entries per page.

10
TotalRecordCountinteger

The total number of entries returned.

20
Itemsarray<object>

The queried O&M tasks.

Itemsobject

The queried O&M task.

Statusinteger

The status of the O&M task. Valid values:

  • 3: pending.
  • 4: executing.
3
ChangeLevelEnstring

The trigger level of the O&M task.

Risk repairment
TaskTypestring

The type of the O&M task.

rds_apsaradb_upgrade
InsNamestring

The name of the cluster.

am-2ze307ym37t762hnl
Regionstring

The region ID.

cn-hangzhou
ImpactZhstring

The impact of the O&M task in Chinese.

Service interruption and minor version update
CreatedTimestring

The time when the O&M task was created.

2021-06-15T16:00:00Z
SwitchTimestring

The time when the switchover was performed.

2021-06-15T16:00:00Z
ChangeLevelZhstring

The trigger level of the O&M task in Chinese.

System maintenance
Deadlinestring

The end time of the O&M task.

2021-06-15T16:00:00Z
PrepareIntervalstring

The preparation time period for the O&M task.

03:00:00
Impactstring

The impact of the O&M task.

TransientDisconnectionAndMinorVersionUpgrade
TaskTypeZhstring

The type of the O&M task in Chinese.

Minor version update
CurrentAVZstring

The zone ID.

cn-beijing-k
AllowChangestring

Indicates whether the execution time of the O&M task can be changed. Valid values:

  • 0: no.
  • 1: yes.
0
DbVersionstring

The database version.

3.0
ImpactEnstring

The impact of the O&M task.

Transient instance disconnection, minor version upgrade
InsCommentstring

The description of the O&M task.

xxx
StartTimestring

The start time of the O&M task.

2021-06-15T16:00:00Z
ModifiedTimestring

The time when the O&M task was modified.

2021-06-15T16:00:00Z
AllowCancelstring

Indicates whether the O&M task can be canceled. Valid values:

  • 0: no.
  • 1: yes.
1
DbTypestring

The database type.

analyticdb
ChangeLevelstring

The trigger level of the O&M task.

all
TaskTypeEnstring

The type of the O&M task.

Minor version update
ResultInfostring

The response message.

xxx
Idinteger

The O&M task ID.

2389899
SubInsNamesarray

The child instance IDs.

SubInsNamesstring

The child instance ID.

am-xxxxxx
TaskParamsstring

The parameters of the O&M task.

{\"outer_user_params\":{\"TargetMinorVersion\":\"3.2.2.6\",\"detailCode\":\"OldKernelVersionUpgrade\",\"cancelCode\":\"OutOfNewFeatureAndStability\"},\"params\":{},\"internal_params\":{\"instanceInfo\":[],\"destHostInfo\":[]}}

Examples

Sample success responses

JSONformat

{
  "RequestId": "421794A3-72A5-5D27-9E8B-A75A4C503E17",
  "PageNumber": 12,
  "PageSize": 10,
  "TotalRecordCount": 20,
  "Items": [
    {
      "Status": 3,
      "ChangeLevelEn": "Risk repairment",
      "TaskType": "rds_apsaradb_upgrade",
      "InsName": "am-2ze307ym37t762hnl",
      "Region": "cn-hangzhou",
      "ImpactZh": "Service interruption and minor version update",
      "CreatedTime": "2021-06-15T16:00:00Z",
      "SwitchTime": "2021-06-15T16:00:00Z",
      "ChangeLevelZh": "System maintenance",
      "Deadline": "2021-06-15T16:00:00Z",
      "PrepareInterval": "03:00:00",
      "Impact": "TransientDisconnectionAndMinorVersionUpgrade",
      "TaskTypeZh": "Minor version update",
      "CurrentAVZ": "cn-beijing-k",
      "AllowChange": 0,
      "DbVersion": 3,
      "ImpactEn": "Transient instance disconnection, minor version upgrade",
      "InsComment": "xxx",
      "StartTime": "2021-06-15T16:00:00Z",
      "ModifiedTime": "2021-06-15T16:00:00Z",
      "AllowCancel": 1,
      "DbType": "analyticdb",
      "ChangeLevel": "all",
      "TaskTypeEn": "Minor version update",
      "ResultInfo": "xxx",
      "Id": 2389899,
      "SubInsNames": [
        "am-xxxxxx"
      ],
      "TaskParams": "{\\\"outer_user_params\\\":{\\\"TargetMinorVersion\\\":\\\"3.2.2.6\\\",\\\"detailCode\\\":\\\"OldKernelVersionUpgrade\\\",\\\"cancelCode\\\":\\\"OutOfNewFeatureAndStability\\\"},\\\"params\\\":{},\\\"internal_params\\\":{\\\"instanceInfo\\\":[],\\\"destHostInfo\\\":[]}}"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.