Scripts and wall screens
Settings > Tokens makes two things that use qKVM without a person signing in: a link for a wall screen, and a token for a script.
Both are shown once, and qKVM keeps only what it needs to know them again. An admin can take either back at any moment. Neither can change settings, accounts, devices or other tokens: that takes a person.
A link for a wall screen
- In Settings > Tokens, make a display link: the machines it shows, and how long it works.
- Open it once in the browser of the screen.
- The screen shows the wall as a display, and after a restart or a power cut it comes back by itself.
A link may look at the machines it was made for, and never act on them. A viewer account with Keep this browser signed in asks for its password again after 30 days; a link asks for nothing.
A token for a script
| Option | What it does | Default |
|---|---|---|
| Role | viewer: look; operator: look and act on machines. Never admin | viewer |
| Machines | groups, single machines, or all | all |
| Works for | 1 to 3650 days | until taken back |
The script sends the token with every request:
curl -H "Authorization: Bearer qkvm_..." https://qkvm.example:8787/api/v1/status
A viewer token may read GET /api/v1/wall, /status and a picture. An operator token may also list and run actions: GET /api/v1/actions and POST /api/v1/devices/{id}/actions.
Answers
Every answer is JSON. A refusal is {"code": "...", "message": "..."}:
| Status | Means |
|---|---|
| 401 | no valid token |
| 403 | the role does not allow it |
| 404 | a machine the token is not for |
409 busy | something else is being done to that machine |
| 502 | the device refused or did not answer |
503 locked | started with --locked-start, and nobody has signed in yet |
After a restart, a token works as before. With --locked-start it is refused until someone signs in, so do not start a wall that way where scripts run unattended.
What a token never does
- Open a server's console, or type a saved text (it could read the text back off the screen).
- Mount virtual media, or take over another holder's keyboard and mouse.
What a token did is in the activity log under its name.