service_inspect
Get the full specification and rollout status of a Docker swarm service by ID or name, including desired state and update status.
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 |