Portainer icon

Portainer

Work with Portainer API data to manage Docker

Environment → Get Many

AI-generated

Overview

This node interacts with the Portainer API to retrieve a list of all environments (endpoints) available in the Portainer instance. It is useful for scenarios where you need to manage or monitor multiple Docker environments through Portainer, such as listing all Docker endpoints for further automation or reporting.

Use Case Examples

  1. Retrieve all environments to display in a dashboard.
  2. Fetch environments to automate deployment or monitoring tasks across multiple Docker endpoints.

Properties

Name Meaning
Request Options Options to customize the API request behavior, including batching, SSL certificate validation, proxy settings, and request timeout.

Output

JSON

  • body - The JSON response body containing the list of environments retrieved from the Portainer API.

Dependencies

  • Portainer API with an API key credential for authentication

Troubleshooting

  • Ensure the API key credential is correctly configured and has permissions to access environment data.
  • If SSL errors occur, consider enabling the option to ignore SSL certificate validation, especially in self-signed certificate environments.
  • Check network connectivity and proxy settings if requests fail or time out.
  • Common error messages include authentication failures (401 Unauthorized) and request timeouts; verify credentials and increase timeout settings if needed.

Links

Discussion