Main Content

listSecrets

List secret names and metadata sizes from MATLAB vault

Since R2024a

Description

listSecrets displays the names and metadata sizes of all secrets in your MATLAB® vault. Your MATLAB vault is accessible only from the exact combination of your operating system account and local machine.

example

t = listSecrets creates a table with the secret names and metadata.

example

Examples

collapse all

List the names and metadata sizes of all the secrets in your MATLAB vault.

listSecrets
       SecretName                       SecretMetadata                 
    ________________    _______________________________________________

    "PDFpassword"       {[dictionary (string ⟼ cell) with 2 entries ]}
    "AWS_access_key"    {[dictionary (string ⟼ cell) with 3 entries ]}
    "Azure_WASB_KEY"    {[dictionary (string ⟼ cell) with 2 entries ]}
    "OAuth_token"       {[dictionary (string ⟼ cell) with 3 entries ]}
    "certificate3"      {[dictionary (string ⟼ cell) with no entries]}
    "SFTPpassword"      {[dictionary (string ⟼ cell) with 4 entries ]}

Assign the names and metadata sizes of all your secrets to a table.

t = listSecrets
t =

  6×2 table

       SecretName                       SecretMetadata                 
    ________________    _______________________________________________

    "PDFpassword"       {[dictionary (string ⟼ cell) with 2 entries ]}
    "AWS_access_key"    {[dictionary (string ⟼ cell) with 3 entries ]}
    "Azure_WASB_KEY"    {[dictionary (string ⟼ cell) with 2 entries ]}
    "OAuth_token"       {[dictionary (string ⟼ cell) with 3 entries ]}
    "certificate3"      {[dictionary (string ⟼ cell) with no entries]}
    "SFTPpassword"      {[dictionary (string ⟼ cell) with 4 entries ]}

Output Arguments

collapse all

Secret names and metadata, returned as a table.

More About

collapse all

Version History

Introduced in R2024a