Show progress of a workflow
How far a workflow is that another route started, by its workflow_token.
manitu_workflow_get on https://mcp.manitu.de/mcpAnnotations as tools/list sends them
Description for the model
Tells how far a workflow is that a manitu tool started in the manitu customer account this connection works in - a restart or snapshot of a virtual server, a database copy and the like - by the workflow_token that tool answered, passed as it is. status pending or running: not done yet - wait and ask again, not more often than about once a minute; some take many minutes. done: finished. error: it failed - tell the customer, do not simply start it again (result.error_list may say why). result has what it left for the customer once finished - an installed application's administrator and where to log in, the versions of an update. Refused (forbidden) when this access may not see the package or server the workflow works on. The token is a secret of this workflow: never show it.
Arguments
workflow_tokenstringrequiredwrite-onlyThe workflow_token the starting tool answered - passed as it is, never built.
Result structuredContent, checked against the schema
workflowstring | nullrequiredWhat is being done, e.g. power_reboot or ngcobalt_site_web_database_copy.
workflow_idstring | nullrequiredThe id of this run, as vserver/workflow/list names it; null for a workflow not kept as tasks.
statusstringrequiredpending: waiting to start; running: started, not finished (can take a while); done: finished, everything went through; error: finished, but it or part of it failed.
created_atstring | nullrequiredWhen it was asked for.
started_atstring | nullrequiredWhen it started; null while pending, and for a workflow that does not record it.
ended_atstring | nullrequiredWhen it finished; null until then.
updated_atstring | nullrequiredWhen it last changed.
resultobject | nullrequiredWhat it left for the customer, when it is finished - null for a workflow that keeps none.
result.adminobject | nullrequiredThe administrator of an application manitu installed.
result.admin.usernamestringrequiredresult.admin.passwordstring | nullrequiredA secret; null where it is withheld (secrets_withheld).
result.admin.mail_addressstringrequiredresult.administration_urlstring | nullrequiredWhere an installed application is administered.
result.versionobject | nullrequiredThe versions of an application update.
result.version.oldstring | nullrequiredresult.version.newstring | nullrequiredresult.dumpobject | nullrequiredThe dump files a database copy wrote, relative to the package.
result.dump.sourcestring | nullrequiredresult.dump.targetstring | nullrequiredresult.error_listarray of stringrequiredWhy it failed, as codes - e.g. quota_exceeded, extra_files_found, nextcloud_too_old.
secrets_withheldbooleanrequiredA secret in result is left out here (an answer to an agent).
Authentication
One of X-API-Key, Authorization: Bearer … - never more than one in a request. More
Request body JSON; unknown fields are refused
workflow_tokenstringrequiredwrite-onlyThe workflow_token the starting tool answered - passed as it is, never built.
Response in data; the rest of the body as on every call
workflowstring | nullrequiredWhat is being done, e.g. power_reboot or ngcobalt_site_web_database_copy.
workflow_idstring | nullrequiredThe id of this run, as vserver/workflow/list names it; null for a workflow not kept as tasks.
statusstringrequiredpending: waiting to start; running: started, not finished (can take a while); done: finished, everything went through; error: finished, but it or part of it failed.
created_atstring | nullrequiredWhen it was asked for.
started_atstring | nullrequiredWhen it started; null while pending, and for a workflow that does not record it.
ended_atstring | nullrequiredWhen it finished; null until then.
updated_atstring | nullrequiredWhen it last changed.
resultobject | nullrequiredWhat it left for the customer, when it is finished - null for a workflow that keeps none.
result.adminobject | nullrequiredThe administrator of an application manitu installed.
result.admin.usernamestringrequiredresult.admin.passwordstring | nullrequiredA secret; null where it is withheld (secrets_withheld).
result.admin.mail_addressstringrequiredresult.administration_urlstring | nullrequiredWhere an installed application is administered.
result.versionobject | nullrequiredThe versions of an application update.
result.version.oldstring | nullrequiredresult.version.newstring | nullrequiredresult.dumpobject | nullrequiredThe dump files a database copy wrote, relative to the package.
result.dump.sourcestring | nullrequiredresult.dump.targetstring | nullrequiredresult.error_listarray of stringrequiredWhy it failed, as codes - e.g. quota_exceeded, extra_files_found, nextcloud_too_old.
secrets_withheldbooleanrequiredA secret in result is left out here (an answer to an agent).
Statuses
200Success.400The request does not match the declared input schema.401No credential was presented, or it was not recognised.403The credential is not permitted to use this operation.500The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.503The channel this operation forwards through is unavailable.