portainer_service_rollback
Roll back a Docker Swarm service to its previous specification. Use after an update to revert changes, then wait for the service to converge.
Instructions
Roll a Swarm service back to its previous spec (docker service rollback).
Works only while Swarm still holds a PreviousSpec (i.e. after at least one update). Follow up with portainer_service_wait.
Args: service_id: Service ID or name endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |