Skip to content

NodeOps

Defined in: packages/core/src/ops.ts:9

delete(id): Promise<void>

Defined in: packages/core/src/ops.ts:53

Removes the node from the control plane.

string

Promise<void>

Risk: breaking. Irreversible. The machine loses its addresses and has to register from scratch.


expire(id): Promise<void>

Defined in: packages/core/src/ops.ts:44

Expires the node’s key.

string

Promise<void>

Risk: breaking. The machine drops off the tailnet and cannot rejoin until someone logs in on it again.


fetch(): Promise<TailnetNode[]>

Defined in: packages/core/src/ops.ts:11

Lists every node on the tailnet.

Promise<TailnetNode[]>

fetch(id): Promise<TailnetNode>

Defined in: packages/core/src/ops.ts:14

Resolves one node by id.

string

Promise<TailnetNode>


optional rename(id, newName): Promise<void>

Defined in: packages/core/src/ops.ts:65

Renames a node.

Optional because Tailscale has no rename endpoint: a device’s name comes from the machine itself. Check for the method before offering it.

string

string

Promise<void>

Risk: write. The MagicDNS name changes, so anything addressing the node by its old name stops resolving.


setRoutes(id, routes): Promise<void>

Defined in: packages/core/src/ops.ts:35

Replaces the set of approved subnet routes.

A route only carries traffic once the node advertises it and an administrator enables it here.

string

string[]

Promise<void>

Risk: write. Enabling a route sends every tailnet member’s traffic for that subnet through this node.


setTags(id, tags): Promise<void>

Defined in: packages/core/src/ops.ts:23

Replaces the node’s tags. Pass the full set; an empty array clears them.

string

string[]

Promise<void>

Risk: write. Tags drive ACL matching, so this grants or revokes access across the tailnet.