DescribeProcessList

更新时间:
复制 MD 格式

Describes currently running queries.

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

clickhouse:DescribeProcessList

list

*EnterpriseDBCluster

acs:clickhouse:{#regionId}:{#accountId}:enterprisedbcluster/{#DBInstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID.

cn-beijing

DBInstanceId

string

Yes

The cluster ID.

cc-xxxxx

QueryDurationMs

string

No

The minimum query execution duration, in milliseconds (ms). Only queries that run for this duration or longer are returned. The minimum value is 1,000.

1000

InitialUser

string

No

The query user.

testuser

Keyword

string

No

The keyword in the query statement.

SELECT

InitialQueryId

string

No

The query ID.

1

QueryOrder

integer

No

The criteria by which to sort the results. The results are sorted in descending order. Valid values:

  • 0: Sorts by query_duration_ms.

  • 1: Sorts by query_duration_ms and query_start_time.

  • 2: Sorts by query_duration_ms, query_start_time, and user.

0

PageSize

integer

No

The number of entries to return on each page.

30

PageNumber

integer

No

The page number.

1

ComputingGroupId

string

No

The computing group ID.

cc-gs5j3sua77******-clickhouse

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

The request ID.

xxx-xxx-xxx

Data

object

The data object.

DBInstanceID

integer

The cluster ID.

cc-xxxx

DBInstanceName

string

The cluster name.

测试使用

TotalCount

integer

The total number of entries that match the filter criteria.

1

ResultSet

array<object>

The result set.

object

The details of a query.

InitialQueryId

string

The query ID.

'79f7e40b-87e2-4ef4-b6df-21889a3a030e'

QueryStartTime

string

The start time of the query. The time is in UTC and follows the yyyy-MM-ddTHH:mm:ssZ format.

2023-07-23T10:13:23Z

InitialAddress

string

The address from which the query was initiated.

0:0:0:0:0:ffff:1edd65ea

Query

string

The query statement.

select * from test

InitialUser

string

The user who initiated the query.

bany

QueryDurationMs

integer

The execution duration of the query, in milliseconds (ms).

1000

Examples

Success response

JSON format

{
  "RequestId": "xxx-xxx-xxx",
  "Data": {
    "DBInstanceID": 0,
    "DBInstanceName": "测试使用",
    "TotalCount": 1,
    "ResultSet": [
      {
        "InitialQueryId": "'79f7e40b-87e2-4ef4-b6df-21889a3a030e'",
        "QueryStartTime": "2023-07-23T10:13:23Z",
        "InitialAddress": "0:0:0:0:0:ffff:1edd65ea",
        "Query": "select * from test",
        "InitialUser": "bany",
        "QueryDurationMs": 1000
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.