Viewing Secret Versions
View secret versions using the Console, CLI and API interfaces.
- Open the navigation menu, click Identity & Security, and then click Vault.
- Under List Scope, in the Compartment list, click the name of the compartment that contains the vault that has the secret that you want to update.
-
From the list of vaults in the compartment, click the vault name.
- Click Secrets, and then click the name of the secret for which you want to see a list of secret versions. (If needed, first change the list scope to the compartment that contains the secret, and then click the secret name.)
- Under Versions, you can see all versions that exist for the selected secret with the following information:
- Version Number: The version number assigned to that version.
- Status: The lifecycle management state of the secret. For example, Current, Previous, Pending, Deprecated.
- Content auto generated: Specifies whether the secret content is automatically generated or not.
- Created: The date and time when the secret was initially created.
Use the list command to list all the secret versions for the specified secret.
Open a command prompt and run
oci vault secret-version list
to view a list of secret versions for a specific secret:oci vault secret-version list --secret-id <secret_OCID>
For example:
oci vault secret-version list --secret-id ocid1.vaultsecret.oc1.iad.exampleaz5qacpqahuecvbjqzql4qmpbrtd7pprafhivcfik6wuitexample
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ListSecretVersions operation to view information about the specified version of a secret..
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.