Listing Secrets in a Vault
A list of secrets created in a vault.
Use the list command to list all the secrets in a specified vault and compartment.
Open a command prompt and run
oci vault secret list
to list secrets in a vault:oci vault secret list --compartment-id <target_compartment_id>
For example:
oci vault secret list --compartment-id ocid1.compartment.oc1..example1example25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ListSecrets operation to list secrets.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.