Search the docsCtrl K
Menu
Docs / Command line Updated Edit on GitHub

neodesk enrollment

Copy as Markdown

Who may join, and devices waiting for approval.

neodesk enrollment --help lists the same commands in the terminal. The flags every command takes are in the command reference.

neodesk enrollment approve

Approve a waiting device.

neodesk enrollment approve <id> [flags]
Argument What it is
<id> The device ID (see devices list)
Flag What it is
--name NAME its display name
--folder-id N put it into this folder
--tags A,B its tags

Needs enrollment.approve; changes something: needs a token with read and write access. Calls POST /api/enrollment/approve/{id}.

neodesk enrollment history

List approved and rejected devices.

neodesk enrollment history [flags]

Needs enrollment.approve; only reads. Calls GET /api/enrollment/history.

neodesk enrollment mode

Show the enrollment mode: open, managed or locked.

neodesk enrollment mode [flags]

Needs enrollment.manage; only reads. Calls GET /api/panel/enrollment/mode.

neodesk enrollment mode-set

Set the enrollment mode.

neodesk enrollment mode-set --mode open|managed|locked [flags]
Flag What it is
--mode open|managed|locked open, managed or locked (required)

Needs enrollment.manage; changes something: needs a token with read and write access. Calls PUT /api/panel/enrollment/mode.

neodesk enrollment pending

List devices waiting for approval.

neodesk enrollment pending [flags]

Needs enrollment.approve; only reads. Calls GET /api/enrollment/pending.

neodesk enrollment reject

Reject a waiting device.

neodesk enrollment reject <id> [flags]
Argument What it is
<id> The device ID (see devices list)
Flag What it is
--ban also ban it

Needs enrollment.approve; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls POST /api/enrollment/reject/{id}.

neodesk enrollment unreject

Let a rejected device ask again.

Give the request body with -f key=value (text), -F key=json (numbers, true or false, lists) or --data JSON (or --data @file.json). The answer to a wrong body names what is missing.

neodesk enrollment unreject <id> [flags]
Argument What it is
<id> The device ID (see devices list)

Needs enrollment.approve; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls POST /api/enrollment/clear-rejection/{id}.

Type to search pages, sections, commands and settings.