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
Service → Get
AI-generatedOverview
This node operation retrieves detailed information about a specific Docker Swarm service within a given environment in Portainer. It is useful for users who want to fetch the current state, configuration, and metadata of a Docker Swarm service by specifying the environment and service IDs. For example, it can be used to monitor service status or inspect service details for management or automation purposes.
Use Case Examples
- Fetch details of a Docker Swarm service by providing the environment ID and the service ID to monitor its configuration and status.
- Use it in workflows that require service inspection before performing updates or scaling operations.
Properties
| Name | Meaning |
|---|---|
| Environment ID | The ID of the environment/endpoint in Portainer where the Docker Swarm service is running. |
| Service ID | The ID of the Docker Swarm service to retrieve information about. |
| Request Options | Additional HTTP request options such as batching, SSL certificate validation, proxy settings, and timeout configuration to customize the API call behavior. |
Output
JSON
id- The unique identifier of the Docker Swarm service.name- The name of the Docker Swarm service.spec- The specification object describing the service configuration, including task template, mode, and endpoint specifications.updateStatus- Status information about the last update operation on the service.endpoint- Details about the service endpoint, including ports and virtual IPs.version- The version object representing the current version of the service for concurrency control.
Dependencies
- Portainer API with an API key credential for authentication
Troubleshooting
- Ensure the Environment ID and Service ID are correct and correspond to existing resources in Portainer.
- Check that the API key credential has sufficient permissions to access service details.
- If SSL issues occur, consider enabling the 'Ignore SSL Issues' option if appropriate for your environment.
- Verify network connectivity and proxy settings if requests fail or time out.
Links
- Portainer API - Docker Services - Official Portainer API documentation for managing Docker Swarm services, including retrieving service details.