Portainer icon

Portainer

Work with Portainer API data to manage Docker

Secret → Get Many

AI-generated

Overview

This node operation retrieves multiple Docker Swarm secrets from a specified environment in Portainer. It is useful for managing and listing all secrets available in a Docker Swarm environment, enabling users to view and handle secret data securely within their container orchestration setup.

Use Case Examples

  1. List all Docker Swarm secrets in environment ID 1 to audit or manage secret data used by services.
  2. Retrieve all secrets to synchronize or back up secret configurations across environments.

Properties

Name Meaning
Environment ID The ID of the environment/endpoint in Portainer from which to retrieve the secrets.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and request timeout to customize the API call behavior.

Output

JSON

  • body - The JSON response body containing the list of Docker Swarm secrets retrieved from the specified environment.

Dependencies

  • Requires an API key credential for Portainer API access, including base URL and SSL validation settings.

Troubleshooting

  • Ensure the Environment ID is correct and accessible in Portainer to avoid authorization or not found errors.
  • If SSL certificate validation fails, consider enabling the 'Ignore SSL Issues' option to bypass certificate errors.
  • Check network proxy settings if requests fail due to connectivity issues.
  • Timeout errors can be resolved by increasing the timeout setting in request options.

Links

Discussion