infomaniak_nodejs_app_logs
Gets a one-shot JWT and endpoint to consume the live stdout/stderr stream of a Node.js application through Server-Sent Events.
Instructions
Get credentials to consume the LIVE stdout/stderr stream of a Node.js application. Returns a one-shot JWT (valid ~1h) and the endpoint URL on manager-logs-01.hosting-ik.com. The stream itself is Server-Sent Events: consume with curl -N -H 'Authorization: Bearer <jwt>' <endpoint>. To fetch a single snapshot, kill the curl after a few lines. Manager-private.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosting_id | Yes | ||
| vhost_route_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | URL of the live log stream — Server-Sent Events on manager-logs-01.hosting-ik.com. | |
| jwt_token | Yes | Short-lived bearer JWT (~1h) — pass as `Authorization: Bearer <token>` when connecting to the endpoint. | |
| expires_at_iso | Yes | ISO timestamp of JWT expiry, decoded from the token's `exp` claim. | |
| consumer_hint | Yes | Suggested consumer: `curl -N -H 'Authorization: Bearer <jwt>' <endpoint>` or an EventSource with a custom header. |