Search the docs
Menu
Updated Edit on GitHub

Console: policies

Copy as Markdown

These routes are on the console, port 3375. They take an API token as Authorization: Bearer ndt_...; see API tokens.

Organization policies and device attestation.

GET /api/panel/attestation

List what devices reported about their state.

The console asks the server API's /api/attestation and answers an empty list when it has no such route, which is the case for this server: the list is always empty.

Needs an admin role, and a full API token. neodesk policies attestations calls it.

Parameter In Type What it is
limit query integer Whole numbers only; 0 or none takes the default; default 50, at least 1, at most 200
offset query integer default 0, at least 0

200: Done (application/json)

Field Type Required
records array of object yes
total integer yes
Error When
400 limit or offset is given more than once or as a list ("Invalid limit", "Invalid offset")
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

GET /api/panel/attestation/{deviceId}

Show what one device reported about its state.

The console asks the server API's /api/attestation/{id} and answers status unknown when it has no record or no such route, which is always the case for this server.

Needs an admin role, and a full API token. neodesk policies attestation calls it.

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

200: Done (application/json)

Field Type
status string
device_id string
Error When
400 The id has characters a path can't take ("Invalid deviceId")
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

GET /api/panel/policies/{orgId}

Show an organization's policies.

Every group is there, {} when the organization sets none of it. An id no organization has gets five empty groups. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs an admin role, and a full API token. neodesk policies get calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

200: Done (application/json)

OrgPolicies.

Error When
400 An id has characters a path can't take ("Invalid orgId")
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

GET /api/panel/policies/{orgId}/audit

List the changes to an organization's policies.

The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs an admin role, and a full API token. neodesk policies audit calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

200: Done (application/json)

OrgPolicyAudit.

Error When
400 An id has characters a path can't take ("Invalid orgId")
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

PUT /api/panel/policies/{orgId}/connection

Set an organization's connection policy.

Replaces the group with the settings in the body. A setting the group doesn't have, or a value of the wrong kind or out of range, is refused with a reason that names it. {} clears the group. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies connection-set calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

Request body, application/json:

OrgPolicyConnection.

200: Done (application/json)

OrgPolicySaved.

Error When
400 A setting is not valid, the body is not an object, or the id has characters a path can't take
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
404 There is no such organization

DELETE /api/panel/policies/{orgId}/connection

Clear an organization's connection policy: its devices keep their own settings.

Stores the group empty. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies connection-clear calls it. It cannot be undone.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

200: Done (application/json)

OrgPolicySaved.

Error When
400 An id has characters a path can't take ("Invalid orgId")
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
404 There is no such organization

GET /api/panel/policies/{orgId}/effective/{deviceId}

Show the policy one device gets.

The groups the organization stored, as they are. The server API neither checks that the device belongs to the organization nor fills in defaults. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs an admin role, and a full API token. neodesk policies effective calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)
deviceId path string yes The device's id

200: Done (application/json)

OrgPolicyEffective.

Error When
400 An id has characters a path can't take ("Invalid orgId", "Invalid deviceId")
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

PUT /api/panel/policies/{orgId}/features

Set an organization's feature policy.

Replaces the group with the settings in the body. A setting the group doesn't have, or a value of the wrong kind or out of range, is refused with a reason that names it. {} clears the group. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies features-set calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

Request body, application/json:

OrgPolicyFeatures.

200: Done (application/json)

OrgPolicySaved.

Error When
400 A setting is not valid, the body is not an object, or the id has characters a path can't take
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
404 There is no such organization

DELETE /api/panel/policies/{orgId}/features

Clear an organization's feature policy: its devices keep their own settings.

Stores the group empty. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies features-clear calls it. It cannot be undone.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

200: Done (application/json)

OrgPolicySaved.

Error When
400 An id has characters a path can't take ("Invalid orgId")
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
404 There is no such organization

PUT /api/panel/policies/{orgId}/network

Set an organization's network policy.

Replaces the group with the settings in the body. A setting the group doesn't have, or a value of the wrong kind or out of range, is refused with a reason that names it. {} clears the group. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies network-set calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

Request body, application/json:

OrgPolicyNetwork.

200: Done (application/json)

OrgPolicySaved.

Error When
400 A setting is not valid, the body is not an object, or the id has characters a path can't take
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
404 There is no such organization

DELETE /api/panel/policies/{orgId}/network

Clear an organization's network policy: its devices keep their own settings.

Stores the group empty. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies network-clear calls it. It cannot be undone.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

200: Done (application/json)

OrgPolicySaved.

Error When
400 An id has characters a path can't take ("Invalid orgId")
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
404 There is no such organization

GET /api/panel/policies/{orgId}/resolved

Show which policy settings an organization sets and what applies where it sets none.

For each policy group: whether the organization stored anything, who applies it (the server applies the network group within a minute, the device apps the others at their next check), which settings NeoDesk Desktop and NeoDesk Companion apply, and for each setting the stored value and where the value in force comes from. Only block_direct_p2p falls back to a server-wide setting, the connection strategy.

Needs an admin role, and a full API token. neodesk policies resolved calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

200: Done (application/json)

Field Type Required What it is
connection object
connection.set boolean yes Whether the organization stored anything in the group
connection.applied_by string, one of server, device, server_and_device yes Who applies the group: the server, the devices, or each some of its settings (the network group)
connection.device_app_applies boolean yes Whether NeoDesk Desktop applies every setting of the group
connection.desktop_app_applies array of string yes The settings NeoDesk Desktop applies
connection.receiver_applies array of string yes The settings NeoDesk Companion applies
connection.headless_applies array of string The settings NeoDesk on a server without a desktop applies, with the server's shell check
connection.server_applies array of string The settings the server applies itself
connection.timing string, one of server_minute, device_next_check, server_minute_and_device_next_check yes
connection.fields object yes Every setting of the group by name
features object
features.set boolean yes Whether the organization stored anything in the group
features.applied_by string, one of server, device, server_and_device yes Who applies the group: the server, the devices, or each some of its settings (the network group)
features.device_app_applies boolean yes Whether NeoDesk Desktop applies every setting of the group
features.desktop_app_applies array of string yes The settings NeoDesk Desktop applies
features.receiver_applies array of string yes The settings NeoDesk Companion applies
features.headless_applies array of string The settings NeoDesk on a server without a desktop applies, with the server's shell check
features.server_applies array of string The settings the server applies itself
features.timing string, one of server_minute, device_next_check, server_minute_and_device_next_check yes
features.fields object yes Every setting of the group by name
security object
security.set boolean yes Whether the organization stored anything in the group
security.applied_by string, one of server, device, server_and_device yes Who applies the group: the server, the devices, or each some of its settings (the network group)
security.device_app_applies boolean yes Whether NeoDesk Desktop applies every setting of the group
security.desktop_app_applies array of string yes The settings NeoDesk Desktop applies
security.receiver_applies array of string yes The settings NeoDesk Companion applies
security.headless_applies array of string The settings NeoDesk on a server without a desktop applies, with the server's shell check
security.server_applies array of string The settings the server applies itself
security.timing string, one of server_minute, device_next_check, server_minute_and_device_next_check yes
security.fields object yes Every setting of the group by name
network object
network.set boolean yes Whether the organization stored anything in the group
network.applied_by string, one of server, device, server_and_device yes Who applies the group: the server, the devices, or each some of its settings (the network group)
network.device_app_applies boolean yes Whether NeoDesk Desktop applies every setting of the group
network.desktop_app_applies array of string yes The settings NeoDesk Desktop applies
network.receiver_applies array of string yes The settings NeoDesk Companion applies
network.headless_applies array of string The settings NeoDesk on a server without a desktop applies, with the server's shell check
network.server_applies array of string The settings the server applies itself
network.timing string, one of server_minute, device_next_check, server_minute_and_device_next_check yes
network.fields object yes Every setting of the group by name
update object
update.set boolean yes Whether the organization stored anything in the group
update.applied_by string, one of server, device, server_and_device yes Who applies the group: the server, the devices, or each some of its settings (the network group)
update.device_app_applies boolean yes Whether NeoDesk Desktop applies every setting of the group
update.desktop_app_applies array of string yes The settings NeoDesk Desktop applies
update.receiver_applies array of string yes The settings NeoDesk Companion applies
update.headless_applies array of string The settings NeoDesk on a server without a desktop applies, with the server's shell check
update.server_applies array of string The settings the server applies itself
update.timing string, one of server_minute, device_next_check, server_minute_and_device_next_check yes
update.fields object yes Every setting of the group by name
Error When
400 An id has characters a path can't take ("Invalid orgId")
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

PUT /api/panel/policies/{orgId}/security

Set an organization's security policy.

Replaces the group with the settings in the body. A setting the group doesn't have, or a value of the wrong kind or out of range, is refused with a reason that names it. {} clears the group. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies security-set calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

Request body, application/json:

OrgPolicySecurity.

200: Done (application/json)

OrgPolicySaved.

Error When
400 A setting is not valid, the body is not an object, or the id has characters a path can't take
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
404 There is no such organization

DELETE /api/panel/policies/{orgId}/security

Clear an organization's security policy: its devices keep their own settings.

Stores the group empty. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies security-clear calls it. It cannot be undone.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

200: Done (application/json)

OrgPolicySaved.

Error When
400 An id has characters a path can't take ("Invalid orgId")
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
404 There is no such organization

PUT /api/panel/policies/{orgId}/update

Set an organization's update policy.

Replaces the group with the settings in the body. A setting the group doesn't have, or a value of the wrong kind or out of range, is refused with a reason that names it. {} clears the group. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies update-set calls it.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

Request body, application/json:

OrgPolicyUpdate.

200: Done (application/json)

OrgPolicySaved.

Error When
400 A setting is not valid, the body is not an object, or the id has characters a path can't take
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
404 There is no such organization

DELETE /api/panel/policies/{orgId}/update

Clear an organization's update policy: its devices keep their own settings.

Stores the group empty. The server API writes the change to its audit log. The console passes the call on to the server API and answers what it said, errors as {"error": "..."}.

Needs org.edit. neodesk policies update-clear calls it. It cannot be undone.

Parameter In Type Required What it is
orgId path string yes The organization's id (a UUID)

200: Done (application/json)

OrgPolicySaved.

Error When
400 An id has characters a path can't take ("Invalid orgId")
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
404 There is no such organization

Type to search pages, sections, commands and settings.