Queries O&M tasks.

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 DescribeActiveOperationTasks

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

Region String No cn-hangzhou

The region ID of the O&M task. You can call the DescribeRegions operation to query the most recent region list.

TaskType String No rds_apsaradb_upgrade

The task type. Set the value to rds_apsaradb_upgrade, which specifies a minor version upgrade task.

PageSize Integer No 30

The number of entries to return on each page. Specify a value greater than 10. Default value: 30.

PageNumber Integer No 1

The number of the page to return. The value must be an integer that is greater than 0 and less than or equal to the maximum value supported by the integer data type. Default value: 1.

ProductId String No hbase

The name of the service. Default value: hbase.

DbType String No hbaseue

The type of the instance. Valid values:

  • hbaseue: an ApsaraDB for HBase instance of Performance-enhanced Edition
  • hbase: an ApsaraDB for HBase instance of Standard Edition
  • bds: a Big DataHub Service (BDS) instance
Status Integer No 5

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

  • 2: waiting for users to specify a switchover time.
  • 3: waiting to be performed.
  • 4: being performed.
  • 5: performed.
  • 6: failed.
  • 7: canceled.
InsName String No ld-bp150tns0sjxs****

The ID of the ApsaraDB for HBase instance.

AllowChange Integer No 1

Specifies whether the switchover time of the O&M task can be modified.

  • 0: no
  • 1: yes
AllowCancel Integer No 1

Specifies whether the O&M task can be canceled.

  • 0: no
  • 1: yes
ChangeLevel String No S1

The change level of the O&M task. Valid values:

  • S0: exception fix
  • S1: system O&M

Response parameters

Parameter Type Example Description
Items Array of Items

The list of O&M tasks.

AllowCancel String 1

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

  • 0: no
  • 1: yes
AllowChange String 1

Indicates whether the switchover time of the O&M task can be modified. Valid values:

  • 0: no
  • 1: yes
ChangeLevel String all

The change level of the O&M task.

ChangeLevelEn String Risk repairment

The name of the change level in English.

ChangeLevelZh String Risk repairment

The name of the change level in Chinese.

CreatedTime String 2022-02-15 23:59:59

The time when the O&M task was created.

CurrentAVZ String cn-shanghai-et-a

The zone.

DbType String hbaseue

The type of the instance. Valid values:

  • hbaseue: an ApsaraDB for HBase instance of Performance-enhanced Edition
  • hbase: an ApsaraDB for HBase instance of Standard Edition
  • bds: a BDS instance
DbVersion String 2.0

The database version of the instance.

Deadline String 2022-02-19 23:59:59

The deadline for performing the O&M task.

Id Integer 111111

The ID of the O&M task.

ImpactEn String Transient instance disconnection

The impact on business in English.

ImpactZh String Transient instance disconnection

The impact on business in Chinese.

InsComment String --

The description of the instance.

InsName String ld-bp150tns0sjxs****

The ID of the ApsaraDB for HBase instance.

ModifiedTime String 2022-02-19 14:00:00

The time when the O&M task was modified.

PrepareInterval String 14:00:00

The preparation time required between the start time of the O&M task and the switchover time.

Region String cn-hanghzou

The region ID.

ResultInfo String --

The description of the O&M task that was performed.

StartTime String 2022-02-19 10:00:00

The time when the O&M task started to be performed.

Status Integer 5

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

  • 2: waiting for users to specify a switchover time.
  • 3: waiting to be performed.
  • 4: being performed.
  • 5: performed.
  • 6: failed.
  • 7: canceled.
SubInsNames List ld-bp150tns0sjxs****

The list of child instances.

SwitchTime String 2022-02-19 14:00:00

The time when the system performs the switchover.

TaskType String rds_apsaradb_upgrade

The task type. rds_apsaradb_upgrade is returned, which indicates a minor version upgrade task.

TaskTypeEn String rds_apsaradb_upgrade

The task type in English.

TaskTypeZh String rds_apsaradb_upgrade

The task type in Chinese.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 30

The maximum number of entries returned per page.

RequestId String C634E813-42FA-53D2-A7EB-B881C4B264CC

The ID of the request.

TotalRecordCount Integer 1

The total number of returned entries.

Examples

Sample requests

http(s)://hbase.aliyuncs.com/?Action=DescribeActiveOperationTasks
&Region=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DescribeActiveOperationTasksResponse>
  <TotalRecordCount>1</TotalRecordCount>
  <PageSize>30</PageSize>
  <RequestId>C634E813-42FA-53D2-A7EB-B881C4B264CC</RequestId>
  <PageNumber>1</PageNumber>
  <Items>
        <Status>5</Status>
        <CreatedTime>2022-02-15 23:59:59</CreatedTime>
        <CurrentAVZ>cn-shanghai-et-a</CurrentAVZ>
        <Deadline>2022-02-19 23:59:59</Deadline>
        <StartTime>2022-02-19 10:00:00</StartTime>
        <InsName>ld-bp150tns0sjxs****</InsName>
        <ChangeLevel>all</ChangeLevel>
        <DbType>hbaseue</DbType>
        <ImpactEn>Transient instance disconnection</ImpactEn>
        <InsComment>--</InsComment>
        <AllowCancel>1</AllowCancel>
        <ChangeLevelEn>Risk repairment</ChangeLevelEn>
        <ModifiedTime>2022-02-19 14:00:00</ModifiedTime>
        <DbVersion>2.0</DbVersion>
        <TaskTypeEn>rds_apsaradb_upgrade</TaskTypeEn>
        <AllowChange>1</AllowChange>
        <TaskType>rds_apsaradb_upgrade</TaskType>
        <PrepareInterval>14:00:00</PrepareInterval>
        <Region>cn-hanghzou</Region>
        <Id>111111</Id>
        <SwitchTime>2022-02-19 14:00:00</SwitchTime>
        <SubInsNames>ld-bp150tns0sjxs****</SubInsNames>
  </Items>
</DescribeActiveOperationTasksResponse>

JSON format

{
    "TotalRecordCount":"1",
    "PageSize":"30",
    "RequestId":"C634E813-42FA-53D2-A7EB-B881C4B264CC",
    "PageNumber":"1",
    "Items":[{
        "Status":"5",
        "CreatedTime":"2022-02-15 23:59:59",
        "CurrentAVZ":"cn-shanghai-et-a",
        "Deadline":"2022-02-19 23:59:59",
        "StartTime":"2022-02-19 10:00:00",
        "InsName":"ld-bp150tns0sjxs****",
        "ChangeLevel":"all",
        "DbType":"hbaseue",
        "ImpactEn":"Transient instance disconnection",
        "InsComment":"--",
        "AllowCancel":"1",
        "ChangeLevelEn":"Risk repairment",
        "ModifiedTime":"2022-02-19 14:00:00",
        "DbVersion":"2.0",
        "TaskTypeEn":"rds_apsaradb_upgrade",
        "AllowChange":"1",
        "TaskType":"rds_apsaradb_upgrade",
        "PrepareInterval":"14:00:00",
        "Region":"cn-hanghzou",
        "Id":"111111",
        "SwitchTime":"2022-02-19 14:00:00",
        "SubInsNames":["ld-bp150tns0sjxs****"]
        }]
    }

Error codes

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