secret_inspect
Inspect a Docker swarm secret's metadata by id or name, returning creation time, labels, and driver details without exposing the secret's actual 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").
Returns: dict: The secret's full document, excluding the actual secret data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |