Récupère les détails d'une table, notamment son schéma et sa date de création.
Notes
Identifiez une table par son ARN avec l'option --table-arn, ou en combinant les options --table-bucket-arn, --namespace et --name.
Syntaxe
ossutil tables-api get-table (--table-arn value | --table-bucket-arn value --namespace value --name value) [flags]
|
Paramètre |
Type |
Description |
|
--name |
string |
Nom de la table. Requiert les options --table-bucket-arn et --namespace. |
|
--namespace |
string |
Espace de noms (namespace) de la table. Requiert les options --table-bucket-arn et --name. |
|
--table-arn |
string |
ARN de la table au format |
|
--table-bucket-arn |
string |
ARN du bucket de table au format |
La commande get-table correspond à l'opération API GetTable.
Toutes les options globales ossutil sont prises en charge.
Exemples
-
Décrire une table par son espace de noms et son nom :
ossutil tables-api get-table --table-bucket-arn acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket --namespace my_namespace --name my_table -
Décrire une table par son ARN :
ossutil tables-api get-table --table-arn acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket/table/my_namespace/my_table