Queries the information about O\&M tasks.
Debugging
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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| adb:DescribeActiveOperationTasks | list | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | No | The region ID. | cn-shenzhen |
| Region | string | No | The region information. | cn-shenzhen |
| TaskType | string | No | 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 |
| PageSize | integer | No | The number of entries per page. Default value: 25. | 25 |
| PageNumber | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
| ProductId | string | No | The product ID. | ads |
| DbType | string | No | The database type. | analyticdb |
| Status | integer | No | The status of the O&M task. Valid values:
| -1 |
| InsName | string | No | The name of the cluster. | am-2ze307ym37t762hnl |
| AllowChange | integer | No | Specifies whether the execution time of the O&M task can be changed. Valid values:
| -1 |
| AllowCancel | integer | No | Specifies whether the O&M task can be canceled. Valid values:
| -1 |
| ChangeLevel | string | No | The trigger level of the O&M task. Default value: all. Valid values:
| all |
Response parameters
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.
