Doku durchsuchen
Menü
Geändert am Auf GitHub bearbeiten

Konsole: cross-platform

Als Markdown kopieren

Diese Routen liegen auf der Konsole, Port 3375. Sie nehmen ein API-Token als Authorization: Bearer ndt_...; siehe API-Tokens. Die Beschreibungen stehen auf Englisch, wie in der OpenAPI-Beschreibung.

What each device platform supports.

GET /api/panel/cross-platform/capabilities/{deviceId}

Show a device's record with its capabilities.

Answers the server API's record of the device, as GET /api/peers/{id} there gives it.

Needs device.view. neodesk cross-platform device calls it.

Parameter In Type Required What it is
deviceId path string yes The device's ID

200: Done (application/json)

The server API's device record, passed on as it is

Object.

Error When
400 The device ID is not valid
401 No session or API token, or one that is not valid (code session_required or token_invalid)
403 The account may not do this, or does not see the device
404 The server API does not know the device

GET /api/panel/cross-platform/distribution

Count devices by platform, architecture and client version.

Counts the devices the account sees. Platforms are grouped as windows, linux, macos, android, ios and chromeos; others keep their name in lower case, and devices without one count as other.

Needs device.view. neodesk cross-platform distribution calls it.

200: Done (application/json)

Field Type Required What it is
total integer yes
platforms object yes Devices per platform
archs object yes Devices per architecture, unknown for none
versions object yes Devices per client version, unknown for none
Error When
401 No session or API token, or one that is not valid (code session_required or token_invalid)
403 The account or the token may not do this, or a write from a browser came without a good CSRF token
500 The device list could not be read (Failed to fetch platform data)

GET /api/panel/cross-platform/protocols

Count the codecs and features of online devices.

Counts, over the online devices the account sees, the codecs and features each one reports.

Needs device.view. neodesk cross-platform protocols calls it.

200: Done (application/json)

Field Type Required What it is
totalOnline integer yes
codecs object yes Online devices per supported codec
features object yes Online devices per supported feature
Error When
401 No session or API token, or one that is not valid (code session_required or token_invalid)
403 The account or the token may not do this, or a write from a browser came without a good CSRF token
500 The device list could not be read (Failed to fetch protocol data)

Durchsucht Seiten, Abschnitte, Befehle und Einstellungen.