Check Portainer connection and authentication status, including endpoint count and whether the default endpoint is a Swarm cluster, to decide between service-level and container-level operations.
Check the health of a Docker stack by summarizing service replicas, update state, and recent task failures. Works on Swarm stacks and falls back to Compose containers, including cron-driven services.
List Docker containers on an endpoint, with optional filters for name, stack, or including stopped containers. Use for Swarm stacks instead where applicable.
Monitor a service rollout until it converges: polls until the service is healthy and update completes, or detects pause on failure or timeout. Returns summary with converge status, reason, timed_out, and recent task errors.