Actions86
- Config Actions
- Container Actions
- Edge Group Actions
- Edge Stack Actions
- Environment Actions
- Image Actions
- Network Actions
- Node Actions
- Registry Actions
- Secret Actions
- Service Actions
- Setting Actions
- Stack Actions
- System Actions
- Team Actions
- Template Actions
- User Actions
- Volume Actions
- Webhook Actions
Secret → Get Many
AI-generatedOverview
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
- List all Docker Swarm secrets in environment ID 1 to audit or manage secret data used by services.
- 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
- Portainer API Secrets Documentation - Official documentation for managing Docker Swarm secrets via Portainer API.