Skip to content

Fleetlayer's pending access requests and open admin windows

The OpenAPI spec (JSON)Licence, versions and sign-in

GET
/api/v1/fleetlayer/approvals
curl --request GET \
--url https://deck.example.com/api/v1/fleetlayer/approvals \
--cookie qd_auth=<qd_auth>

GET /fleetlayer/approvals: the pending requests and the open windows.

Media typeapplication/json

GET /fleetlayer/approvals: the pending requests and the open windows.

object
approvals
required
Array<object>

One pending request.

object
created_at
required

Milliseconds since the epoch.

integer format: int64
detail

What else Fleetlayer says about it (the call’s arguments, the reason): the asker’s own text, outside data.

string | null
expires_at

When the request lapses, if it does.

integer | null format: int64
from
required

Who asks (ops@server-admin).

string
id
required
string
line

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.

string | null
once
required

Approving allows one use only.

boolean
to
required

On what (node:laptop, tool:browser@laptop, window:admin).

string
verb
required

What it asks to do (start, use_tool, activate).

string
window
required

It asks to open a role’s window: approving needs the person’s passkey first.

boolean
configured
required

The deck has an approve token. Without one, there’s nothing to show.

boolean
error

Why Fleetlayer couldn’t be read, when it couldn’t.

string | null
windows
required
Array<object>

An open admin window.

object
ends_at

When it closes by itself, in milliseconds since the epoch.

integer | null format: int64
id
required
string
opened_at
integer | null format: int64
problem

What went wrong closing an earlier one, if a node reported a problem.

string | null
requested_by
string | null
role
required
string

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"
}
]
}