mc table list
The mc table list command lists all tables in a namespace on a MinIO AIStor cluster.
The following command lists all tables in the prod namespace of the analytics warehouse on the myaistor MinIO AIStor cluster:
mc table list myaistor analytics prodThe command has the following syntax:
mc [GLOBALFLAGS] table list ALIAS WAREHOUSE NAMESPACE- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
ALIAS
Required
The alias of a MinIO AIStor cluster from which to list tables.
NAMESPACE
Required
The name of the namespace from which to list tables.
WAREHOUSE
Required
The name of the warehouse containing the namespace.
Global flags
This command supports any of the global flags.
Examples
List all tables in a namespace
Use mc table list to list all tables:
mc table list ALIAS WAREHOUSE NAMESPACE- Replace
ALIASwith the alias of the MinIO AIStor cluster. - Replace
WAREHOUSEwith the name of the warehouse. - Replace
NAMESPACEwith the name of the namespace.
List tables with JSON output
Use the --json global flag to output the results in JSON format:
mc table list myaistor analytics prod --json