service_inspect
Retrieve a Docker swarm service's desired-state spec and rollout status by id or name. Use to verify configuration and monitor update progress.
Instructions
Get a swarm service by id or name.
Must run against a swarm manager. Returns the desired-state spec and rollout status — for the
actually-running tasks use service_ps, or the service-tasks://{id_or_name} resource for a
computed rollout summary.
args: id_or_name - The service id or name insert_defaults - Merge default values into the output returns: dict - The full service document ({"ID", "Version", "Spec", "Endpoint", ...}; "UpdateStatus" during a rolling update)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes | ||
| insert_defaults | No |