Request an invite
Docs menu

osmates agents list

List the agents' programs OSMates has seen, their grants and the questions open now.

Usage
osmates agents list [--json]

Arguments

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/agents/list.json

clientsarray of objectsRequired
clients[].clientobjectRequired
clients[].firstSeenstring (date-time)Required
clients[].lastSeenstring (date-time)Required
clients[].profilestring

One of read-only, operator, full.

creatorAccessarray of objectsRequired
creatorAccess[].clientstringRequired
creatorAccess[].machinestring (uuid)Required
creatorAccess[].originstring (uuid)
creatorAccess[].scopesarray of stringsRequired

Each item is one of observe, input, exec_user, exec_admin, guest_files, host_transfer, snapshots, lifecycle, network, usb.

grantsarray of objectsRequired
grants[].clientKeystringRequired
grants[].expiresAtstring (date-time)
grants[].foldersarray of objectsRequired
grants[].grantedAtstring (date-time)Required
grants[].idstring (uuid)Required
grants[].needsConfirmationbooleanRequired
grants[].scopesarray of stringsRequired

Each item is one of observe, input, exec_user, exec_admin, guest_files, host_transfer, snapshots, lifecycle, network, usb.

grants[].sessionstring
grants[].targetobject or stringRequired

One of newMachines, or an object that holds one key: machine.

machineNamesobject with string valuesRequired
questionsarray of objectsRequired
questions[].clientobjectRequired
questions[].createdAtstring (date-time)Required
questions[].expiresAtstring (date-time)Required
questions[].idstringRequired
questions[].sequenceintegerRequired

At least 0.

questions[].sessionstringRequired
questions[].statestringRequired

One of pending, allowed, denied, expired.

questions[].subjectobjectRequired

Holds one key: grant, copy, hostFile, deleteMachine, useAgain or forward.

questions[].transportstringRequired

One of mcp, command, http, device.

Fields nested deeper are in the schema.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page