mc table share token create
The mc table share token create command generates a new access token for a Delta Sharing configuration.
Tokens allow external consumers to access shared tables using the Delta Sharing protocol.
Parameters
ALIAS
Required
The alias of a MinIO AIStor cluster.
SHARE
Required
The name of the share for which to create a token.
--description
Optional
A description for the token to help identify its purpose or recipient.
--expires
Optional
Token expiration duration. Accepts values in the following formats:
- Days:
365d,90d,30d - Hours:
24h,12h - Minutes:
30m
If not specified, the token does not expire.
Global flags
This command supports any of the global flags.
Examples
Create a token with expiration
Use mc table share token create to generate a token that expires:
mc table share token create ALIAS/SHARE --expires DURATION
- Replace
ALIASwith the alias of the MinIO AIStor cluster. - Replace
SHAREwith the name of the share. - Replace
DURATIONwith the expiration period.
Create a token with description
Use the --description flag to document the token purpose:
mc table share token create myaistor/analytics-share \
--expires 90d \
--description "BI Team Q1 Access"
Create a non-expiring token
Omit the --expires flag to create a token that never expires:
mc table share token create myaistor/analytics-share \
--description "Production integration"