DescribeInspectionTasks

Updated at:

Queries the list of intelligent inspection tasks.

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

kvstore:DescribeInspectionTasks

get

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

PageNum

string

No

The page number.

1

PageSize

string

No

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

10

InstanceId

string

Yes

The ID of the assistant instance.

ta-bp1zxszhcgatnx****

Type

string

No

The task type. Valid values:

  • 1: Manual task.

  • 2: Scheduled task.

1

LevelSummary

string

No

The summary of risk levels for inspection results. You can specify multiple values. Valid values:

  • Normal: Normal.

  • Warning: Warning.

  • Error: High-risk.

  • Failed: Failed.

Error

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

2D9F3768-EDA9-4811-943E-42C8006E****

Success

boolean

Indicates whether the request is successful.

true

Data

object

The task data.

Items

array<object>

The list of task data.

object

The task data details.

CreateTime

string

The creation time of the task. The time is displayed in UTC in the YYYY-MM-DDTHH:mm:ssZ format.

2024-07-01T02:06:34Z

EndTime

string

The end time of the task. The time is displayed in UTC in the YYYY-MM-DDTHH:mm:ssZ format.

2025-09-23T00:00:00Z

FinishTime

string

The completion time of the task. The time is displayed in UTC in the YYYY-MM-DDTHH:mm:ssZ format.

2026-01-09T02:13:01Z

InspectionItems

string

The specified inspection items. Supported inspection items:

  • RESOURCE_USAGE

  • BIGKEY

  • HOTKEY

  • PERFORMANCE_METRICS

  • SLOWLOG

PERFORMANCE_METRICS

InstanceIds

string

The list of associated instance IDs.

r-uf6ns8txov3mp9jxxx

ScheduleId

string

The ID of the timed scheduling.

sch-4dfb08ddf9f84855bacca35axxx

Source

string

The source of the task.

scheduler|

StartTime

string

The start time of the task. The time is displayed in UTC in the YYYY-MM-DDTHH:mm:ssZ format.

2026-05-30T02:11:01Z

Status

string

The status.

SUCCEEDED

TaskId

string

The task ID.

tit-dca42f85c73644e0ab5c80ef641xxx

ReportLanguage

string

The language of the report.

zh-CN

PageNum

integer

The page number.

1

PageSize

integer

The number of entries per page.

10

Total

integer

The total number of entries.

6

Examples

Success response

JSON format

{
  "RequestId": "2D9F3768-EDA9-4811-943E-42C8006E****",
  "Success": true,
  "Data": {
    "Items": [
      {
        "CreateTime": "2024-07-01T02:06:34Z",
        "EndTime": "2025-09-23T00:00:00Z",
        "FinishTime": "2026-01-09T02:13:01Z",
        "InspectionItems": "PERFORMANCE_METRICS",
        "InstanceIds": "r-uf6ns8txov3mp9jxxx",
        "ScheduleId": "sch-4dfb08ddf9f84855bacca35axxx",
        "Source": "scheduler|",
        "StartTime": "2026-05-30T02:11:01Z",
        "Status": "SUCCEEDED",
        "TaskId": "tit-dca42f85c73644e0ab5c80ef641xxx",
        "ReportLanguage": "zh-CN"
      }
    ],
    "PageNum": 1,
    "PageSize": 10,
    "Total": 6
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.