neodesk sites
Als Markdown kopierenStandorte mit ihren Netzen und Relay-Knoten, und Geräte und Ordner, die fest zu einem Standort gehören.
Die Befehle stehen hier auf Englisch, so wie die Kommandozeile sie mit neodesk sites --help zeigt. Die Flags, die jeder Befehl kennt, stehen in der Befehlsreferenz.
Create a site.
neodesk sites create --name NAME [flags]| Flag | What it is |
|---|---|
--name NAME |
the name, 1 to 100 characters (required) |
--org-id ORG_ID |
the organization the site belongs to; leave out for an account in one organization or for no organization |
--vpn-group VPN_GROUP |
a label shared by sites a VPN connects |
Needs server.config or org.edit; changes something: needs a token with read and write access. Calls POST /api/sites.
Delete a site with its networks and pins. Its relay nodes are refused from then on.
neodesk sites delete <id> [flags]| Argument | What it is |
|---|---|
<id> |
The site ID (see sites list) |
Needs server.config or org.edit; 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 DELETE /api/sites/{id}.
List sites with their networks, relay nodes and device counts.
--json shows the networks and each relay node with its online state, version, addresses, active sessions and traffic.
neodesk sites list [flags]Needs device.view; only reads. Calls GET /api/sites.
Replace the networks of a site.
Give the list with --data, each network as {"cidr":"10.1.0.0/16","kind":"private"} or kind public. One wrong entry changes nothing; the answer names it.
neodesk sites networks-set <id> [flags]| Argument | What it is |
|---|---|
<id> |
The site ID (see sites list) |
Needs server.config or org.edit; changes something: needs a token with read and write access. Calls PUT /api/sites/{id}/networks.
neodesk sites networks-set <id> --data '{"networks":[{"cidr":"10.1.0.0/16","kind":"private"}]}'Rename a relay node.
neodesk sites node-rename <id> --name NAME [flags]| Argument | What it is |
|---|---|
<id> |
The relay node ID (see sites list --json) |
| Flag | What it is |
|---|---|
--name NAME |
new name (required) |
Needs server.config or org.edit; changes something: needs a token with read and write access. Calls PATCH /api/relay-nodes/{id}.
Revoke a relay node: it gets no more sessions and can't connect again.
neodesk sites node-revoke <id> [flags]| Argument | What it is |
|---|---|
<id> |
The relay node ID (see sites list --json) |
Needs server.config or org.edit; 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/relay-nodes/{id}/revoke.
Make an enrollment string that adds one relay node to a site within 24 hours.
The answer holds the string and the install commands for Linux, Docker and Windows. It is shown once.
neodesk sites node-token <id> [flags]| Argument | What it is |
|---|---|
<id> |
The site ID (see sites list) |
Needs server.config or org.edit; changes something: needs a token with read and write access; the answer holds secrets or private content. Calls POST /api/sites/{id}/enrollment-tokens.
Pin a device to a site, or take its pin away.
neodesk sites pin-device <id> [flags]| Argument | What it is |
|---|---|
<id> |
The device ID (see devices list) |
| Flag | What it is |
|---|---|
--site-id SITE_ID |
the site ID; leave out or empty to take the pin away |
Needs device.edit; changes something: needs a token with read and write access. Calls PATCH /api/devices/{id}/site.
Pin a folder's devices to a site, or take the pin away.
neodesk sites pin-folder <id> [flags]| Argument | What it is |
|---|---|
<id> |
The folder ID |
| Flag | What it is |
|---|---|
--site-id SITE_ID |
the site ID; leave out or empty to take the pin away |
Needs device.edit; changes something: needs a token with read and write access. Calls PATCH /api/folders/{id}/site.
Show which relay nodes reach each other.
neodesk sites reachability [flags]Needs device.view; only reads. Calls GET /api/sites/reachability.
Rename a site or change its VPN group.
neodesk sites update <id> [flags]| Argument | What it is |
|---|---|
<id> |
The site ID (see sites list) |
| Flag | What it is |
|---|---|
--name NAME |
new name |
--vpn-group VPN_GROUP |
new VPN group, empty for none |
Needs server.config or org.edit; changes something: needs a token with read and write access. Calls PATCH /api/sites/{id}.