github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-secret-inspect.1.md (about)

     1  % podman-secret-inspect 1
     2  
     3  ## NAME
     4  podman\-secret\-inspect - Display detailed information on one or more secrets
     5  
     6  ## SYNOPSIS
     7  **podman secret inspect** [*options*] *secret* [...]
     8  
     9  ## DESCRIPTION
    10  
    11  Inspects the specified secret.
    12  
    13  By default, this renders all results in a JSON array. If a format is specified, the given template is executed for each result.
    14  Secrets can be queried individually by providing their full name or a unique partial name.
    15  
    16  ## OPTIONS
    17  
    18  #### **--format**, **-f**=*format*
    19  
    20  Format secret output using Go template.
    21  
    22  | **Placeholder**          | **Description**                                                   |
    23  |--------------------------|-------------------------------------------------------------------|
    24  | .CreatedAt ...           | When secret was created (relative timestamp, human-readable)      |
    25  | .ID                      | ID of secret                                                      |
    26  | .SecretData              | Secret Data (Displayed only with --showsecret option)		       |
    27  | .Spec ...                | Details of secret                                                 |
    28  | .Spec.Driver ...         | Driver info                                                       |
    29  | .Spec.Driver.Name        | Driver name (string)                                              |
    30  | .Spec.Driver.Options ... | Driver options (map of driver-specific options)                   |
    31  | .Spec.Labels ...         | Labels for this secret                                            |
    32  | .Spec.Name               | Name of secret                                                    |
    33  | .UpdatedAt ...           | When secret was last updated (relative timestamp, human-readable) |
    34  
    35  #### **--help**
    36  
    37  Print usage statement.
    38  
    39  #### **--pretty**
    40  
    41  Print inspect output in human-readable format
    42  
    43  #### **--showsecret**
    44  
    45  Display secret data
    46  
    47  ## EXAMPLES
    48  
    49  Inspect the secret mysecret.
    50  ```
    51  $ podman secret inspect mysecret
    52  ```
    53  
    54  Inspect the secret mysecret and display the Name and Scope field.
    55  ```
    56  $ podman secret inspect --format "{{.Name} {{.Scope}}" mysecret
    57  ```
    58  
    59  Inspect the secret mysecret and display the Name and SecretData fields. Note this will display the secret data to the screen.
    60  ```
    61  $ podman secret inspect --showsecret --format "{{.Name} {{.SecretData}}" mysecret
    62  ```
    63  
    64  ## SEE ALSO
    65  **[podman(1)](podman.1.md)**, **[podman-secret(1)](podman-secret.1.md)**
    66  
    67  ## HISTORY
    68  January 2021, Originally compiled by Ashley Cui <acui@redhat.com>