Getting a Secret's Contents
Get the content of a secret stored in an OCI vault.
- On the Secret's Versions list page, find the secret version that you want to work with. If you need help finding the list page, see Listing Secret Versions
- Select Actions menu (three dots) and then select View Secret Contents.
- In the View Secret Contents panel, enable the Show decoded Based64 digit option to read a base64 format secret in plain text. Select Copy secret to copy the contents to your clipboard.
- Select Close to return to the Versions page for the secret.
 
- Use the oci secrets secret-bundle get or oci secrets secret-bundle get-secret-bundle-by-name command and required parameters to get the contents of a secret and its secret versions: - oci secrets secret-bundle get --secret-id <secret_ocid> [OPTIONS]- For example: - oci secrets secret-bundle get --secret-id ocid1.vaultsecret.oc1.iad.exampleaz5qacpqahuecvbjqzql4qmpbrtd7pprafhivcfik6wuitexample- For a complete list of parameters and values for CLI commands, see the CLI Command Reference. 
- Use the GetSecretBundle or GetSecretBundleByName API with the Secrets Endpoint to get the contents of a secret and its secret versions. - 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.