Fleetlayer's pending access requests and open admin windows
const url = 'https://deck.example.com/api/v1/fleetlayer/approvals';const options = {method: 'GET', headers: {cookie: 'qd_auth=<qd_auth>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://deck.example.com/api/v1/fleetlayer/approvals \ --cookie qd_auth=<qd_auth>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”GET /fleetlayer/approvals: the pending requests and the open windows.
GET /fleetlayer/approvals: the pending requests and the open windows.
object
One pending request.
object
Milliseconds since the epoch.
What else Fleetlayer says about it (the call’s arguments, the reason): the asker’s own text, outside data.
When the request lapses, if it does.
Who asks (ops@server-admin).
The request in plain words, built by Fleetlayer from access control’s own names only (“The cookies plugin on laptop wants to send its x set to worker”): shown first. Fleetlayer v0.4.2 and later.
Approving allows one use only.
On what (node:laptop, tool:browser@laptop, window:admin).
What it asks to do (start, use_tool, activate).
It asks to open a role’s window: approving needs the person’s passkey first.
The deck has an approve token. Without one, there’s nothing to show.
Why Fleetlayer couldn’t be read, when it couldn’t.
An open admin window.
object
When it closes by itself, in milliseconds since the epoch.
What went wrong closing an earlier one, if a node reported a problem.
Example generated
{ "approvals": [ { "created_at": 1, "detail": "example", "expires_at": 1, "from": "example", "id": "example", "line": "example", "once": true, "to": "example", "verb": "example", "window": true } ], "configured": true, "error": "example", "windows": [ { "ends_at": 1, "id": "example", "opened_at": 1, "problem": "example", "requested_by": "example", "role": "example" } ]}