Skip to content
Endpoint ManagementMarkdown

Device records

One record for each enrolled device, with its standing, its operating system, and whether it's connected now.

AvailableAPI

Every enrolled device has a record in your realm. It’s the list you check to see which devices you have, which of them are online right now, and which have been revoked. It also notes the users who approved each device for AI governance, and the AI agents you’ve recorded as running there.

  • Privilege: listing and reading need READ on the realm’s endpoint settings, which RealmViewer and RealmOwner hold; recording an agent on a device needs MODIFY, which RealmOwner holds (Who can call).
  • Where: the API.

The record is made at Device enrollment and goes at Device removal. The users who approve a device for AI governance are added to its record as they do (see AI governance sign-in). A user stays in users once added: dropping the device from the AI fleet, or another user’s approval, doesn’t take them off.

A device is known by two ids, and you’ll meet both:

  • The device id is the record’s id. Every call on this page about one device takes it.
  • The sensor id is dar.agentId on the record. The security log and response calls take it, under the name the API gives sensors, agent (agent=<sensor id>, "agents": [...]). See the Detection & Response API.

The record holds standing, not last contact. It says whether the device is allowed in (status), not when it was last heard from. connected is the one live signal: whether the device holds a session right now.

List the realm’s devices (Call the API):

Terminal window
curl https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1 \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
[
{
"id": "<device id>",
"uid": "maya-laptop",
"status": "active",
"os": "linux",
"enrolledAt": "<RFC 3339 time>",
"dar": { "agentId": "<sensor id>" },
"connected": true
}
]

Read one, and ask whether it’s connected:

Terminal window
curl https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/<device id> \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
curl https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/<device id>/connected \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

A read answers with an ETag, the record’s revision. connected answers { "connected": true } or false.

Record that the agent invoice-agent runs on the device, by the agent’s id, and take it off again:

Terminal window
curl -X PUT https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/<device id>/agents/<agent id> \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
curl -X DELETE https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/<device id>/agents/<agent id> \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

Both answer 204.

StatusWhenWhat to do
401No session, or it endedSign in again (Call the API)
403You lack READ (or MODIFY, to change) on the realm’s endpoint settingsAsk a realm administrator to grant it
404No device with that id in this realm, or it has been removedList the realm’s devices for its id
400The agent id isn’t one of the realm’s agentsUse the agent’s id from AI agents
WhatValue
Devices listedEvery device of the realm, in one answer
Records per deviceOne; enrolling a device again makes a new one
Last contactNot kept; connected is the state now
SymptomCauseFix
connected reads false for a device you know is onUnder heavy load it can briefly read falseAsk again
The same device appears twiceIt was enrolled again, which made a new recordRemove the older record (Enroll a device again)
users is emptyNo one has approved the device for AI governanceNothing to fix: users isn’t who signs in on the device

Changes to a device’s record are recorded on the realm’s audit trail with who made them: the record made at enrollment (CREATED), an agent added or taken off (UPDATED), a revoke, restore or removal (PATCHED), and the record going (DELETED). See What is recorded. Reads are not recorded.

  • Each realm sees its own. A realm lists only its own devices. An administrator of a realm above it can reach the realms below; no one reaches another tree’s.
  • Connected means now. connected is the device’s state now. Under heavy load it can briefly read false for a device that is connected; ask again.
  • Users are written by the AI fleet. A user is added to users when they approve the device for AI governance, never by hand. It doesn’t list everyone who signs in on the device.
FieldWhat it holds
idThe device id
uidThe device’s name, as its certificate carries it
revThe record’s revision, also its ETag
statusactive, revoked or removing
statusChangedAtWhen the status last changed
revokedBy, reasonWho revoked it and why, while it’s revoked
osThe operating system it reported at enrollment
enrolledAtWhen it was enrolled
darThe security sensor: its sensor id (agentId) and its group
usersThe users who approved it for AI governance
agentsThe AI agents an administrator has recorded as running on it
ppmReserved for device policy, which is planned; not set today
connectedIn a listing: whether its session is live right now