podman-secret-inspect - Man Page

Display detailed information on one or more secrets

Synopsis

podman secret inspect [options] secret [...]

Description

Inspects the specified secret.

By default, this renders all results in a JSON array. If a format is specified, the given template is executed for each result. Secrets can be queried individually by providing their full name or a unique partial name.

Options

--format, -f=format

Format secret output using Go template.

PlaceholderDescription
.CreatedAtWhen secret was created (relative timestamp, human-readable)
.IDID of secret
.SecretDataSecret Data (Displayed only with --showsecret option)
.Spec ...Details of secret
.Spec.DriverDriver info
.Spec.Driver.NameDriver name (string)
.Spec.Driver.Options ...Driver options (map of driver-specific options)
.Spec.LabelsLabels for this secret
.Spec.NameName of secret
.UpdatedAtWhen secret was last updated (relative timestamp, human-readable)

--help

Print usage statement.

--pretty

Print inspect output in human-readable format

--showsecret

Display secret data

Examples

$ podman secret inspect mysecret
$ podman secret inspect --format "{{.Name} {{.Scope}}" mysecret
$ podman secret inspect --showsecret --format "{{.Name} {{.SecretData}}" mysecret

See Also

podman(1), podman-secret(1)

History

January 2021, Originally compiled by Ashley Cui acui@redhat.com ⟨mailto:acui@redhat.com⟩

Referenced By

podman-secret(1).