Viewing a Secret's Details
Learn how to get the details for a secret stored in an OCI vault.
- On the Secrets list page, find the secret that you want to work with. If you need help finding the list page, see Listing Secrets.
- Select the name of the secret to open its details page.
The Secret Information section displays the following information:
- OCID: The unique, Oracle-assigned ID of the secret.
- Created: The date and time when you initially created the secret.
- Compartment: The name of the compartment that contains the secret.
- Vault: The name of the vault that contains the secret.
- Auto generation enabled: Specifies whether the secret content was automatically generated or not.
- Auto rotation enabled: Specifies when the secret content was automatically rotated or not.
The Additional Information section displays the following information:
- Target system type: Specifies the configured target system type such as Autonomous Database or Function.
- Target system id: Specifies the configured target system ID. Select Show to view the system ID and select Copy to copy the system ID.
- Last rotation: The date and time when the secret was last successfully rotated.
- Next rotation: The date and time when the next secret rotation is scheduled.
- Generation type: Specifies the configured secret type.
- Generation context: Specifies the configured generation context.
- Secret length: Specifies the configured secret length.
- Secret format: Specifies the configured secret format. Select Show to view the secret format and select Copy to copy the secret format.
The Tags section displays the free-form and defined tags for the secret.
Use the oci vault secret get command to get information about the specified secret. If you need to get the contents of a secret, see Getting a Secret's Contents.
oci vault secret get --secret-id <secret_OCID> [OPTIONS]
For example:
oci vault secret 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 GetSecret API with the Management Endpoint to get the details of a secret. If you need to get the contents of a secret, see Getting a Secret's Contents.
Note
The Management Endpoint is used for management operations including Create, Update, List, Get, and Delete. The Management Endpoint is also called the control plane URL or the KMSMANAGEMENT endpoint.
The Cryptographic Endpoint is used for cryptographic operations including Encrypt, Decrypt, Generate Data Encryption Key, Sign, and Verify. The Cryptographic Endpoint is also called the data plane URL or the KMSCRYPTO endpoint.
You can find the management and cryptographic endpoints in a vault's details metadata. See Getting a Vault's Details for instructions.
For regional endpoints for the Key Management, Secret Management, and Secret Retrieval APIs, see API Reference and Endpoints.