Skip to content

Depot softwaredeploy

Registers the deployment routes on the TENANT mux.

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

GETsoftware:readtenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

List software deployments

NameInTypeRequiredDescription
agentIdquerystringNo
batchIdquerystringNo
dirquerystring, one of asc, descNoSort direction.
packageIdquerystringNo
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
qquerystringNoFree-text search term.
sortquerystring, one of completed, created, package, stateNoSort key.
statequerystringNo
StatusBodyDescription
200application/json, PagedResultSoftwareDeploymentViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold software:read.
500application/problem+json, ProblemDetailsNo client store in request context.

200 response body

FieldTypeDescription
itemsrequiredarray of SoftwareDeploymentView
items[].actionrequiredstring
items[].agentIdrequiredstring
items[].batchIdstring
items[].commandIdrequiredstring
items[].completedAtstring (date-time) or null
items[].createdAtrequiredstring (date-time)
items[].detectionPassedboolean or null
items[].errorDetailstring
items[].exitCodeinteger or null
items[].hostnamerequiredstring
items[].installedVersionstring
items[].originrequiredstring
items[].packageIdrequiredstring
items[].packageNamerequiredstring
items[].packageVersionrequiredstring
items[].publicIdrequiredstring
items[].staterequiredstring
pagerequiredinteger
pageSizerequiredinteger
totalrequiredinteger
Terminal window
# Sign in first. outpost_console 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/v1/software/deployments?agentId=<agentId>&batchId=<batchId>&dir=asc&packageId=<packageId>&page=0&pageSize=0' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTsoftware:deploytenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

Deploy software

Required, sent as application/json.

FieldTypeDescription
actionrequiredstring
packageIdrequiredstring
targetrequiredTarget

Target is a run's endpoint selection, exactly as the console submitted it.

target.agentIdsarray of string
target.groupIdsarray of string
target.includeChildSitesboolean
target.kindrequiredstring
target.siteIdsarray of string
ttlHoursrequiredinteger
versionIdrequiredstring
StatusBodyDescription
202application/json, SoftwareDeployAcceptedAccepted.
400application/problem+json, ProblemDetailsThe request body is not valid JSON.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold software:deploy.
404application/problem+json, ProblemDetailsPackage not found.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
422application/problem+json, ProblemDetailsThis catalog entry records an approval decision for an installed title and has nothing to deploy.
500application/problem+json, ProblemDetailsNo client context in request.

202 response body

FieldTypeDescription
batchIdrequiredstring
dispatchedrequiredinteger
pendingrequiredinteger
totalrequiredinteger
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X POST 'https://depot.example.com/api/v1/software/deployments' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"action": "string",
"packageId": "string",
"target": {
"agentIds": [
"string"
],
"groupIds": [
"string"
],
"includeChildSites": false,
"kind": "string",
"siteIds": [
"string"
]
},
"ttlHours": 0,
"versionId": "string"
}'

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.