Portainer icon

Portainer

Interact with Portainer via API

Actions190

Stacks → Stack Inspect

AI-generated

Overview

This node interacts with the Portainer API to inspect a specific stack by its identifier. It is useful for retrieving detailed information about a stack managed in Portainer, such as its configuration, status, and metadata. Typical use cases include automation workflows that need to monitor or audit stack details, integrate stack data into other systems, or trigger actions based on stack properties.

Properties

Name Meaning
Id Stack identifier (number) used to specify which stack to inspect

Output

The node outputs JSON data representing the detailed information of the inspected stack. This includes all relevant stack attributes returned by the Portainer API, such as stack configuration, deployment status, and metadata. The output does not include binary data.

Dependencies

  • Requires an API key credential to authenticate 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 content.

Troubleshooting

  • Invalid or missing stack ID: Ensure the "Id" property is set to a valid number corresponding to an existing stack.
  • Authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions.
  • Connection issues: Confirm that the Portainer URL is reachable from the n8n environment.
  • Unexpected API responses: Check if the Portainer API version matches the expected schema; update the node or credentials accordingly.

Links and References

Discussion