Portainer icon

Portainer

Interact with Portainer via API

Actions190

Stacks → Stack File Inspect

AI-generated

Overview

This node interacts with the Portainer API to inspect files within a specific stack. It is useful for users who manage containerized applications using Portainer and need to programmatically retrieve details about stack files. For example, a DevOps engineer might use this node to automate the inspection of stack configurations or troubleshoot deployment issues by examining stack file contents.

Properties

Name Meaning
Id Stack identifier (a numeric value) used to specify which stack's file to inspect. This property is required.

Output

The node outputs JSON data containing the details of the inspected stack file. The exact structure depends on the Portainer API response but typically includes metadata and content related to the stack file. There is no indication that the node outputs binary data.

Dependencies

  • Requires an API key credential for authenticating with the Portainer API.
  • The node expects the base URL of the Portainer instance to be configured in the credentials.
  • The node uses HTTP headers to accept and send JSON-formatted data.

Troubleshooting

  • Common Issues:

    • Invalid or missing stack ID may cause the API call to fail.
    • Incorrect or expired API authentication token will result in authorization errors.
    • Network connectivity problems to the Portainer server can prevent successful requests.
  • Error Messages:

    • Authorization errors typically indicate issues with the provided API key or credentials.
    • "Stack not found" or similar messages suggest the specified stack ID does not exist.
    • Timeout or connection errors imply network or server availability problems.

To resolve these, verify the stack ID, ensure valid API credentials, and confirm network access to the Portainer server.

Links and References

Discussion