Skip to main content

List

List the join tokens, with their expiry and uses left.

osapi controller join token list

Examples​

osapi controller join token list
osapi controller join token list --json

Result​

The command prints:

$ osapi controller join token list
Join tokens (1):
  ID        EXPIRES              USES LEFT  LABELS
  1a2b3c4d  2026-11-25 13:00:00  1          group:web

With --json, the command prints:

{
"items": [
{
"id": "1a2b3c4d",
"created_at": "2026-11-25T12:00:00Z",
"expires_at": "2026-11-25T13:00:00Z",
"uses_left": 1,
"labels": {
"group": "web"
}
}
]
}

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file; without one at the default path, osapi runs on the defaults/etc/osapi/osapi.yaml

Output tells how the result is printed, and what --json gives.