Revoke
Revoke a join token, so it admits no agent.
osapi controller join token revoke [flags]
Examples
osapi controller join token revoke --id 1a2b3c4d
Result
The command prints:
$ osapi controller join token revoke --id 1a2b3c4d Join token: ID: 1a2b3c4d
With --json, the command prints:
{
"id": "1a2b3c4d"
}
Flags
| Flag | Description | Default |
|---|---|---|
--id | The token, as token list shows it (required) |
Global flags
| Flag | Description | Default |
|---|---|---|
-d, --debug | Enable or disable debug mode | |
-j, --json | Enable JSON output | |
-f, --osapi-file | Path 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.