osmates agents list
List the agents' programs OSMates has seen, their grants and the questions open now.
osmates agents list [--json]Arguments
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/agents/list.json
clientsarray of objectsRequiredclients[].clientobjectRequiredclients[].firstSeenstring (date-time)Requiredclients[].lastSeenstring (date-time)Requiredclients[].profilestringOne of
read-only,operator,full.creatorAccessarray of objectsRequiredcreatorAccess[].clientstringRequiredcreatorAccess[].machinestring (uuid)RequiredcreatorAccess[].originstring (uuid)creatorAccess[].scopesarray of stringsRequiredEach item is one of
observe,input,exec_user,exec_admin,guest_files,host_transfer,snapshots,lifecycle,network,usb.grantsarray of objectsRequiredgrants[].clientKeystringRequiredgrants[].expiresAtstring (date-time)grants[].foldersarray of objectsRequiredgrants[].grantedAtstring (date-time)Requiredgrants[].idstring (uuid)Requiredgrants[].needsConfirmationbooleanRequiredgrants[].scopesarray of stringsRequiredEach item is one of
observe,input,exec_user,exec_admin,guest_files,host_transfer,snapshots,lifecycle,network,usb.grants[].sessionstringgrants[].targetobject or stringRequiredOne of
newMachines, or an object that holds one key:machine.machineNamesobject with string valuesRequiredquestionsarray of objectsRequiredquestions[].clientobjectRequiredquestions[].createdAtstring (date-time)Requiredquestions[].expiresAtstring (date-time)Requiredquestions[].idstringRequiredquestions[].sequenceintegerRequiredAt least 0.
questions[].sessionstringRequiredquestions[].statestringRequiredOne of
pending,allowed,denied,expired.questions[].subjectobjectRequiredHolds one key:
grant,copy,hostFile,deleteMachine,useAgainorforward.questions[].transportstringRequiredOne of
mcp,command,http,device.
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |