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
Volume → Get Many
AI-generatedOverview
This node operation retrieves a list of Docker volumes from a specified environment in Portainer. It is useful for managing and monitoring Docker volumes within different environments/endpoints. For example, a user can list all volumes to check storage usage or to identify unused volumes for cleanup.
Use Case Examples
- List all Docker volumes in environment ID 1 to monitor storage usage.
- Retrieve volumes to automate backup or cleanup processes in a Docker environment managed by Portainer.
Properties
| Name | Meaning |
|---|---|
| Environment ID | The ID of the environment/endpoint in Portainer from which to retrieve the volumes. |
| Request Options | Additional options for the request such as batching, SSL certificate validation, proxy settings, and timeout configuration. |
Output
JSON
volumesName- Name of the Docker volume.Driver- Driver used by the Docker volume.Mountpoint- Mount point path of the Docker volume.Labels- Labels associated with the Docker volume.Scope- Scope of the Docker volume (e.g., local, global).
Dependencies
- Portainer API with an API key credential for authentication
Troubleshooting
- Ensure the Environment ID is correct and the environment is accessible in Portainer.
- Check that the API key credential is valid and has sufficient permissions to list volumes.
- If SSL issues occur, consider enabling the option to ignore SSL certificate validation, especially in self-signed certificate environments.
- Verify proxy settings if a proxy is required for network access to the Portainer API.
Links
- Portainer API - Volumes - Official Portainer API documentation for managing Docker volumes.