Show cronjob of a web hosting package
One cronjob of a web hosting package, with its last runs and what they wrote.
manitu_webhosting_web_cronjob_get on https://mcp.manitu.de/mcpAnnotations as tools/list sends them
Description for the model
Returns one cronjob of a web hosting package of the manitu customer account this connection works in, by site_id and cronjob_id from manitu_webhosting_web_cronjob_list: what it runs, when (schedule, next_run_at, in Europe/Berlin), how it reports - and run_list, its last runs (at most 25, newest first) with exit code, duration and what it wrote (stdout, stderr - the first 1024 characters each). For "why does my cronjob fail?": read run_list - exit code 127 is "command not found", a run stopped at runtime_seconds_max often shows exit code 9 or 137.
Arguments
site_idinteger | stringrequiredThe site_id from manitu_webhosting_list - never guess one.
cronjob_idinteger | stringrequiredThe cronjob_id from manitu_webhosting_web_cronjob_list - never guess one.
Result structuredContent, checked against the schema
cronjob_idintegerrequiredThe cronjob - what the other cronjob tools take.
descriptionstring | nullrequiredWhat the customer wrote about it (his description), null if nothing - not its name or user name.
statusstringrequiredactive, or inactive (switched off by the customer, kept for later).
taskobjectrequiredWhat it runs - type, and only the field(s) that type uses.
task.typestring | nullrequiredcommand (a shell command), url (calls a URL), php_script (a PHP file of the package).
task.commandstring | nullFor type command: the shell command - runs as the package's user, in its root directory.
task.urlstring | nullFor type url: the URL called.
task.script_pathstring | nullFor type php_script: the PHP file, relative to the package.
task.php_versionstring | nullFor type php_script: the PHP version (e.g. "php8.3"); null: the package's default.
schedulestring | nullrequiredWhen it runs - a cron expression (minute hour day-of-month month day-of-week), in Europe/Berlin. null only if what is stored cannot be read.
schedule_typestring | nullrequiredHow the customer panel shows the schedule: minutely, hourly, daily, weekly, monthly, yearly, or crontab (anything else).
runs_per_hour_maxinteger | nullrequiredHow often it runs in one hour at most.
next_run_atstring | nullrequiredWhen it runs next; null if inactive or never.
reportobjectrequiredWhom it tells about a run, and how.
report.reasonstring | nullrequiredWhen the customer is told about a run: never, onerror (exit code not 0), always.
report.typestring | nullrequiredHow: mail, or logfile (a line in logs/cron.log of the package).
report.mailobject | nullrequiredThe report mail - null unless type is mail.
report.mail.recipientstring | nullrequiredWho gets the report mail.
report.mail.subjectstring | nullrequiredIts subject, with placeholders.
report.mail.bodystring | nullrequiredIts text, with placeholders.
last_runobject | nullrequiredIts last run; null if it has not run yet.
last_run.exit_codeinteger | nullrequiredIts exit code - 0 is success, 127 "command not found"; a run stopped at the time limit often shows 9 or 137.
last_run.started_atstring | nullrequiredWhen it started.
last_run.ended_atstring | nullrequiredWhen it ended.
last_run.duration_secondsnumber | nullrequiredHow long it ran.
created_atstring | nullrequiredWhen it was created.
run_listarray of objectrequiredIts last runs, newest first (at most 25) - with what it wrote.
run_list[].exit_codeinteger | nullrequiredIts exit code - 0 is success, 127 "command not found"; a run stopped at the time limit often shows 9 or 137.
run_list[].started_atstring | nullrequiredWhen it started.
run_list[].ended_atstring | nullrequiredWhen it ended.
run_list[].duration_secondsnumber | nullrequiredHow long it ran.
run_list[].stdoutstring | nullrequiredWhat it wrote to standard output - the first 1024 characters.
run_list[].stderrstring | nullrequiredWhat it wrote to standard error - the first 1024 characters.
Authentication
One of X-API-Key, Authorization: Bearer … - never more than one in a request. More
Request body JSON; unknown fields are refused
site_idinteger | stringrequiredThe site_id from manitu_webhosting_list - never guess one.
cronjob_idinteger | stringrequiredThe cronjob_id from manitu_webhosting_web_cronjob_list - never guess one.
Response in data; the rest of the body as on every call
cronjob_idintegerrequiredThe cronjob - what the other cronjob tools take.
descriptionstring | nullrequiredWhat the customer wrote about it (his description), null if nothing - not its name or user name.
statusstringrequiredactive, or inactive (switched off by the customer, kept for later).
taskobjectrequiredWhat it runs - type, and only the field(s) that type uses.
task.typestring | nullrequiredcommand (a shell command), url (calls a URL), php_script (a PHP file of the package).
task.commandstring | nullFor type command: the shell command - runs as the package's user, in its root directory.
task.urlstring | nullFor type url: the URL called.
task.script_pathstring | nullFor type php_script: the PHP file, relative to the package.
task.php_versionstring | nullFor type php_script: the PHP version (e.g. "php8.3"); null: the package's default.
schedulestring | nullrequiredWhen it runs - a cron expression (minute hour day-of-month month day-of-week), in Europe/Berlin. null only if what is stored cannot be read.
schedule_typestring | nullrequiredHow the customer panel shows the schedule: minutely, hourly, daily, weekly, monthly, yearly, or crontab (anything else).
runs_per_hour_maxinteger | nullrequiredHow often it runs in one hour at most.
next_run_atstring | nullrequiredWhen it runs next; null if inactive or never.
reportobjectrequiredWhom it tells about a run, and how.
report.reasonstring | nullrequiredWhen the customer is told about a run: never, onerror (exit code not 0), always.
report.typestring | nullrequiredHow: mail, or logfile (a line in logs/cron.log of the package).
report.mailobject | nullrequiredThe report mail - null unless type is mail.
report.mail.recipientstring | nullrequiredWho gets the report mail.
report.mail.subjectstring | nullrequiredIts subject, with placeholders.
report.mail.bodystring | nullrequiredIts text, with placeholders.
last_runobject | nullrequiredIts last run; null if it has not run yet.
last_run.exit_codeinteger | nullrequiredIts exit code - 0 is success, 127 "command not found"; a run stopped at the time limit often shows 9 or 137.
last_run.started_atstring | nullrequiredWhen it started.
last_run.ended_atstring | nullrequiredWhen it ended.
last_run.duration_secondsnumber | nullrequiredHow long it ran.
created_atstring | nullrequiredWhen it was created.
run_listarray of objectrequiredIts last runs, newest first (at most 25) - with what it wrote.
run_list[].exit_codeinteger | nullrequiredIts exit code - 0 is success, 127 "command not found"; a run stopped at the time limit often shows 9 or 137.
run_list[].started_atstring | nullrequiredWhen it started.
run_list[].ended_atstring | nullrequiredWhen it ended.
run_list[].duration_secondsnumber | nullrequiredHow long it ran.
run_list[].stdoutstring | nullrequiredWhat it wrote to standard output - the first 1024 characters.
run_list[].stderrstring | nullrequiredWhat it wrote to standard error - the first 1024 characters.
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.