Skip to content

Depot wake

Registers the wake routes.

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

POSTendpoint:actiontenant facehosteditmspremote

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

Source: [object Object]

wakeEndpoint asks an online agent on the endpoint’s network to send it a Wake-on-LAN packet.

NameInTypeRequiredDescription
agentIDpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
forcerequiredboolean
StatusBodyDescription
202application/json, WakeAcceptedAccepted.
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 endpoint:action.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client context in request.
503application/problem+json, ProblemDetailsThis Depot has no agent connection service, so nothing can be dispatched.

202 response body

FieldTypeDescription
sendersrequiredarray of WakeSenderView
senders[].agentIdrequiredstring
senders[].commandIdrequiredstring
senders[].deliveredrequiredboolean
senders[].hostnamerequiredstring
senders[].networkKeyrequiredstring
staterequiredstring
wakeRequestIdrequiredstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/endpoints/<agentID>/wake' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"force": false
}'

GET /api/v1/endpoints/{agentID}/wake-status

Section titled “GET /api/v1/endpoints/{agentID}/wake-status”

GETendpoint:readtenant facehosteditmspremoteIdempotent

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

Source: [object Object]

wakeStatus answers whether Wake is offered for one endpoint, and why not.

NameInTypeRequiredDescription
agentIDpathstringYesA uuid.
StatusBodyDescription
200application/json, WakeBlockSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold endpoint:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client context in request.

200 response body

FieldTypeDescription
armedboolean or null
availablerequiredboolean
fastStartupboolean or null
forceablerequiredboolean
lastRequestWakeRequestView

wakeRequestView is a WakeRequest as the wake block's lastRequest.

lastRequest.createdAtrequiredstring (date-time)
lastRequest.originrequiredstring
lastRequest.reasonstring or null
lastRequest.resolvedAtstring (date-time) or null
lastRequest.returnOutcomestring or null
lastRequest.returnReasonstring or null
lastRequest.returnToSleeprequiredboolean
lastRequest.staterequiredstring
lastRequest.wakeRequestIdrequiredstring
reasonstring or null
senderCountrequiredinteger
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/endpoints/<agentID>/wake-status' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTendpoint:actiontenant facehosteditmspremote

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

Source: [object Object]

wakeBulk wakes the offline, armed endpoints of a selection, and lists the rest with the reason each was skipped.

Required, sent as application/json.

FieldTypeDescription
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
StatusBodyDescription
202application/json, WakeBulkAcceptedAccepted.
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 endpoint:action.
500application/problem+json, ProblemDetailsNo client context in request.
503application/problem+json, ProblemDetailsThis Depot has no agent connection service, so nothing can be dispatched.

202 response body

FieldTypeDescription
batchIdrequiredstring
requestsrequiredarray of WakeBulkRequest
requests[].agentIdrequiredstring
requests[].wakeRequestIdrequiredstring
sentrequiredinteger
skippedrequiredarray of WakeSkipped
skipped[].agentIdrequiredstring
skipped[].hostnamerequiredstring
skipped[].reasonrequiredstring
totalrequiredinteger
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/wake' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"target": {
"agentIds": [
"string"
],
"groupIds": [
"string"
],
"includeChildSites": false,
"kind": "string",
"siteIds": [
"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.