Portainer icon

Portainer

Work with Portainer API data to manage Docker

Config → Get

AI-generated

Overview

This node operation retrieves a specific Docker Swarm config by its ID from a specified environment in Portainer. It is useful for managing and inspecting configuration data used in Docker Swarm services, allowing users to fetch details of a config for monitoring or automation purposes.

Use Case Examples

  1. Fetch a Docker Swarm config by its ID to inspect its details before updating or deleting it.
  2. Retrieve configuration data from a specific environment to use in deployment automation workflows.

Properties

Name Meaning
Environment ID The ID of the environment/endpoint in Portainer where the config resides.
Config ID The ID of the Docker Swarm config to retrieve.
Request Options Additional request options such as batching, SSL certificate validation, proxy settings, and timeout configuration to customize the API request behavior.

Output

JSON

  • id - The unique identifier of the Docker Swarm config.
  • name - The name of the Docker Swarm config.
  • data - Base64 encoded data content of the config.
  • labels - Labels associated with the config for categorization or metadata.
  • createdAt - Timestamp when the config was created.
  • updatedAt - Timestamp when the config was last updated.

Dependencies

  • Portainer API with an API key credential for authentication

Troubleshooting

  • Ensure the Environment ID and Config ID are correct and exist in the Portainer instance to avoid 'not found' errors.
  • Check network connectivity and proxy settings if requests time out or fail to reach the Portainer API.
  • If SSL certificate validation fails, enable the 'Ignore SSL Issues' option to bypass certificate errors, but be aware of security risks.

Links

Discussion