secret_inspect
Inspect a Docker swarm secret's metadata by id or name; returns timestamps, labels, and driver info, but not secret data.
Instructions
Get a swarm secret's metadata by id or name; requires a swarm manager.
The returned attrs never include the secret's actual data (Spec.Data is write-only —
the daemon accepts it on secret_create but never returns it back, by design). Use this
to check a secret's CreatedAt, Labels, or which driver created it, not to read its
contents. To see which services reference it, inspect each service's spec via
service_inspect (there is no server-side filter for "services using this secret").
args: id_or_name - The secret id or name returns: dict - The secret's attrs, excluding the actual secret data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |