infomaniak_nodejs_app_action
Manage a Node.js app lifecycle with two-phase commit: start, stop, restart, or build. Plan first, confirm with token to prevent accidental changes.
Instructions
Start, stop, restart, or build a Node.js application. Two-phase commit: first call returns a plan + token, second call (with the token + same args) applies. stop causes downtime until next start. build triggers a build job and returns its log_stream so you can tail the output. Manager-private.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosting_id | Yes | ||
| vhost_route_id | Yes | ||
| action | Yes | `start` — start a Stopped app; `stop` — stop a Running app (causes downtime until next start/restart!); `restart` — gracefully restart the app (a few seconds of downtime); `build` — trigger a build job (runs `build_command` + relaunches the app); returns a `resource_id` + log_stream | |
| confirmation_token | No | Token from the prior plan response. Required on the apply phase. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||