ti fs list-file-system-tokens
Lists non-secret token metadata for one Filesystem. The response never contains token plaintext.
Syntax
ti fs list-file-system-tokens
[--file-system-id <string>]
[--fs-token <string>]
[--include-expired]
[--limit <int32>]
[--offset <int32>]
Options
--file-system-id <string>: Specify the Filesystem whose tokens are listed. Required when using TiDB Cloud API credentials; optional when--fs-tokenorTI_FS_TOKENsupplies an owner token, becausetiderives the ID from that token.--fs-token <string>: Authorize the request with an owner FS token. Defaults toTI_FS_TOKEN; when neither is present, the command uses configured TiDB Cloud API keys. Scoped tokens cannot list token metadata.--include-expired: Include expired token metadata. Revoked tokens are not returned by the service.--offset <int32>: Set the zero-based token offset [default: 0].--limit <int32>: Set the maximum number of tokens to return, from 1 through 200 [default: 50].
For options shared by all commands, see Global options.
Examples
List current token metadata as text:
# Use token_id, not the non-unique token name, for later mutations. ti fs list-file-system-tokens \ --file-system-id "<file-system-id>" \ --output textInspect expired token metadata with pagination:
# Request up to 100 rows starting at offset 0. ti fs list-file-system-tokens \ --file-system-id "<file-system-id>" \ --include-expired \ --offset 0 \ --limit 100List token metadata with an owner token:
# The owner token identifies the Filesystem, so --file-system-id is not needed. TI_FS_TOKEN="<owner-fs-token>" ti fs list-file-system-tokens --output text