Skip to content

Depot portal assets

This page is generated from the Depot route table. Every operation carries the permission it needs and the anchor an agent can link to.

GETportal:assets:readportal facemspIdempotent

Source: [object Object]

listAssets pages the in-service devices by name (?page, ?pageSize, and ?siteId to narrow to one site).

NameInTypeRequiredDescription
clientIDpathstringYes
pagequerystringNo
pageSizequerystringNo
siteIdquerystringNo
StatusBodyDescription
200application/json, PageAssetSuccess.
400NoneThe request was refused.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold portal:assets:read.
404application/problem+json, ProblemDetailsNo resource matches that id.

200 response body

FieldTypeDescription
itemsrequiredarray of Asset
items[].ageDaysrequiredinteger
items[].ageSourcerequiredstring
items[].agentIdrequiredstring
items[].assignedUserstring or null
items[].firstSeenAtrequiredstring (date-time)
items[].hostnamerequiredstring
items[].lastSeenAtstring (date-time) or null
items[].manufacturerrequiredstring
items[].modelrequiredstring
items[].namerequiredstring
items[].osrequiredstring
items[].osFamilyrequiredstring
items[].siteIdstring or null
items[].siteNamestring or null
items[].typerequiredstring
items[].warrantyEndsAtstring or null
pagerequiredinteger
pageSizerequiredinteger
totalrequiredinteger
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/portal/v1/orgs/<clientID>/assets?page=<page>&pageSize=<pageSize>&siteId=<siteId>' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

GET /api/portal/v1/orgs/{clientID}/assets/{agentID}

Section titled “GET /api/portal/v1/orgs/{clientID}/assets/{agentID}”

GETportal:assets:readportal facemspIdempotent

Source: [object Object]

Get asset

NameInTypeRequiredDescription
agentIDpathstringYes
clientIDpathstringYes
StatusBodyDescription
200application/json, AssetDetailSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold portal:assets:read.
404application/problem+json, ProblemDetailsNo resource matches that id.

200 response body

FieldTypeDescription
ageDaysrequiredinteger
ageSourcerequiredstring
agentIdrequiredstring
assetTagrequiredstring
assignedUserstring or null
assignedUsersrequiredarray of AssetUser
assignedUsers[].assignmentKindrequiredstring
assignedUsers[].namerequiredstring
backuprequiredAssetBackupSummary

AssetBackupSummary is the device's last backup.

backup.lastRunAtstring (date-time) or null
backup.lastSuccessAtstring (date-time) or null
backup.statusrequiredstring
cpuModelrequiredstring
firstSeenAtrequiredstring (date-time)
hostnamerequiredstring
lastSeenAtstring (date-time) or null
manufacturerrequiredstring
modelrequiredstring
namerequiredstring
osrequiredstring
osFamilyrequiredstring
patchesrequiredAssetPatchSummary

AssetPatchSummary counts the device's updates.

patches.failedrequiredinteger
patches.outstandingrequiredinteger
patches.statusrequiredstring
serialNumberrequiredstring
siteIdstring or null
siteNamestring or null
totalMemoryBytesrequiredinteger

int64.

typerequiredstring
warrantyEndsAtstring or null
Terminal window
# Sign in first. __Host-portal_session is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/portal/v1/orgs/<clientID>/assets/<agentID>' \
-H 'X-Csrf-Token: <portal-csrf>' \
-H 'Accept: application/json' \
-b '__Host-portal_session=<portal-session>'

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either license.