SHOW VOLUMES
Syntax
Parameters
-
LIKE pattern: Optional parameter for pattern matching and filtering by volume name. Supports case-insensitive matching using SQL wildcards%(matches any number of characters) and_(matches a single character). Example:LIKE '%testing%'. Note: Cannot be used simultaneously with theWHEREclause. -
IN schema_name: Optional parameter for specifying a particular schema name, listing all volumes under that schema. -
WHERE expr: Optional parameter for filtering based on the fields displayed by theSHOW VOLUMEScommand, supporting precise filtering of results using expressions.
Display Fields
| Field | Description |
|---|---|
| volume_name | Volume name |
| create_time | Volume creation time |
| external | Whether it is an external Volume |
| workspace_name | Workspace name to which the Volume belongs |
| url | Volume URL address |
| recursive_file_lookup | Whether recursive file lookup is enabled |
| connection | Volume connection information |
Examples
Query which volumes use xxx.storage_connection:
Description
This command lists all Volume information under the current schema and supports filtering results based on specified conditions via the WHERE clause.
SHOW VOLUME DIRECTORY
View the file listing under an external Volume or Named Volume.
Return Columns
| Column | Description |
|---|---|
relative_path | File relative path |
url | File full URL |
size | File size (bytes) |
last_modified_time | Last modified time |
SHOW USER VOLUME DIRECTORY
View the file listing in the current user's User Volume (personal internal storage).
Return columns are the same as SHOW VOLUME DIRECTORY.
