Portainer icon

Portainer

Interact with Portainer via API

Actions190

Edge Jobs → Edge Job Task Logs Inspect

AI-generated

Overview

This node interacts with the Portainer API to inspect logs of specific tasks within Edge Jobs. It is useful for users who manage containerized applications and want to retrieve detailed logs related to particular tasks executed as part of an Edge Job. For example, a DevOps engineer can use this node to fetch logs of a failed task in an Edge Job to diagnose issues or verify successful execution.

Properties

Name Meaning
Id The unique identifier of the Edge Job whose task logs are to be inspected. Must be a number.
Task ID The unique identifier of the specific task within the Edge Job for which logs are requested. Must be a number.

Output

The node outputs JSON data containing the logs of the specified task within the given Edge Job. The structure typically includes log entries such as timestamps, log messages, and possibly status information related to the task execution. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential to authenticate with the Portainer API.
  • The node configuration must include the base URL of the Portainer instance.
  • The node depends on the Portainer API being accessible and the user having sufficient permissions to query Edge Job task logs.

Troubleshooting

  • Common Issues:

    • Invalid or missing Edge Job Id or Task ID will result in errors or empty responses.
    • Network connectivity problems or incorrect Portainer URL configuration may cause request failures.
    • Insufficient permissions or expired API credentials can lead to authorization errors.
  • Error Messages:

    • Errors indicating "not found" usually mean the provided Edge Job Id or Task ID does not exist.
    • Authentication errors suggest invalid or missing API credentials; ensure the API key is correctly configured.
    • Timeout or connection errors indicate network issues or incorrect Portainer endpoint URLs.

Links and References

Discussion