Description
This command is used to query detailed information about all computing clusters in the current workspace.
Syntax
Parameter Description
-
LIKE PATTERN (optional): Filter by object name, supports case-insensitive pattern matching. SQL wildcards
%
and_
can be used. For example,LIKE '%testing%'
. Note that the LIKE clause cannot be used simultaneously with the WHERE clause. -
WHERE expr (optional): Apply conditional filtering to the compute clusters based on specific attributes, supporting the following attributes:
- vcluster_size: Compute cluster specification code, such as XSMALL, SMALL, etc., using uppercase letters.
- vcluster_type: Compute cluster type, such as ANALYTICS, GENERAL, using uppercase letters.
- max_concurrency: Filter by the number of concurrent connections, input a number.
- state: Compute cluster state, such as RESUMING, SUSPENDED, etc., using uppercase letters.
- createor: The username of the user who created the compute cluster, using lowercase letters.
- create_time: Creation time, formatted as "yyyy-mm-dd hh:mm:ss", stored as a string, supports comparison operators.
- min_replicas: Minimum number of compute instances, input a number.
- max_replicas: Maximum number of compute instances, input a number.
- preload_table: List of table names in the cache, stored as a string, can use the LIKE clause to match specific table names.
- current_replicas: Current number of compute instances in the compute cluster, input a number.
- auto_suspend_in_second: Number of seconds for the compute cluster to auto-suspend, input a number.
Example
- Query all compute clusters in the current workspace:
- Query the compute clusters in the current workspace whose names start with the first two letters "CZ":
Through the above examples, you can flexibly query and filter computing cluster information as needed. Please ensure that when using the WHERE clause, you use the correct case and operators to obtain accurate query results.