Actions72
- Image Actions
- Network Actions
- Node Actions
- Registry Actions
- Secret Actions
- Service Actions
- Stack Actions
- Team Actions
- Template Actions
- User Actions
- Volume Actions
- Webhook Actions
- Config Actions
- Container Actions
- Edge Group Actions
- Edge Stack Actions
Overview
This node integrates with the Portainer API to manage Docker-related resources. Specifically, for the Template resource with the Get operation, it retrieves detailed information about a specific application template by its ID. This is useful when you want to fetch metadata or configuration details of a particular template stored in Portainer.
Common scenarios include:
- Automating retrieval of application templates for deployment pipelines.
- Fetching template details to display or process within an n8n workflow.
- Integrating Portainer template data into other systems or dashboards.
Example: You have a template ID and want to get all its details to decide whether to deploy or modify it.
Properties
| Name | Meaning |
|---|---|
| Template ID | The unique identifier of the template to retrieve. This is required to specify which template's details to fetch. |
Output
The node outputs JSON data representing the full details of the requested template as returned by the Portainer API. This typically includes fields such as template name, description, associated stack file content, environment variables, and other metadata related to the application template.
No binary data output is involved in this operation.
Dependencies
- Requires connection to a Portainer instance via its API.
- Needs an API key credential configured in n8n to authenticate requests to the Portainer API.
- The base URL of the Portainer API must be set in the credentials.
Troubleshooting
- Missing or invalid Template ID: Ensure that the Template ID property is provided and correctly references an existing template in Portainer.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions to access templates.
- Network issues: Confirm that the Portainer API endpoint is reachable from the n8n environment.
- Template not found: If the specified Template ID does not exist, the API will return an error; double-check the ID value.