A workflow's computer

A workflow's computer

Returns the computer that holds the workflow's box, creating its row on first use in the workflow's space. The box is not started or copied; the row adopts it so its app deploys through /api/apps like any computer's. Devices lists skip it and it cannot be deleted. Requires space read on the workflow and Enterprise.

POST/api/workflows/{id}/computer
Path parameters
idstringrequired

Request

curl
curl -X POST https://trickest.io/api/workflows/{id}/computer \
  -H "Authorization: Token $TRICKEST_TOKEN"

Responses

200The workflow's computer
kindenumrequired

One of: linux, android

androidVariantobjectrequired
idstringrequired
spaceIdstringrequired
namestringrequired
stateenumrequired

One of: creating, active, deleting, unconfirmed, deleted

statusenumrequired

One of: pending, running, stopping, stopped, snapshotting, failed, aborted, unavailable

createdBystringrequired
createdAtstringrequired
updatedAtstringrequired
deletedAtstringrequired
nativeobjectrequired

idstringrequired
runtimestring
vcpusnumber
memorynumber
portsnumber[]
timeoutnumber
permissionsobject

writebooleanrequired
sourceobjectrequired

computerIdstringrequired
snapshotIdstringrequired
workflowIdstring
activityobjectrequired

stateenumrequired

One of: working, idle

lastStateenumrequired

One of: running, completed, failed, unconfirmed

sourceenumrequired

One of: agent, workflow, user

operationenumrequired

One of: command, write, start, stop, restore, capture, create

sessionIdstringrequired
runIdstringrequired
workflowIdstringrequired
toolNamestringrequired
observedAtstringrequired
goalobjectrequired
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.