podman-secret-ls - Man Page

List all available secrets

Synopsis

podman secret ls [options]

Description

Lists all the secrets that exist. The output can be formatted to a Go template using the --format option.

Options

--filter, -f=filter=value

Filter output based on conditions given. Multiple filters can be given with multiple uses of the --filter option.

Valid filters are listed below:

FilterDescription
name[Name] Secret name (accepts regex)
id[ID] Full or partial secret ID

--format=format

Format secret output using Go template.

Valid placeholders for the Go template are listed below:

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

--noheading, -n

Omit the table headings from the listing.

--quiet, -q

Print secret IDs only.

Examples

List all secrets.

$ podman secret ls

List the name field of all secrets.

$ podman secret ls --format "{{.Name}}"

List all secrets whose name includes the the specified string.

$ podman secret ls --filter name=confidential

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).