You are configuring a deployment script running in an OCI Compute Instance that needs to retrieve database credentials stored in OCI Vault. Which OCI CLI command should your script execute to retrieve the secret bundle containing the credentials?
A.
oci vault secret get --secret-id < secret_id >
B.
oci secrets secret-bundle get --secret-id < secret_id >
Oracle separates secret-management operations from retrieval of secret contents. The current OCI CLI command for retrieving a secret bundle is oci secrets secret-bundle get --secret-id < secret_id > . If no specific version, stage, or version name is supplied, Oracle returns the bundle associated with the secret version marked CURRENT. The secrets data-plane command retrieves the actual secret bundle, including its encoded content and version properties. The alternative command paths shown in A, C, and D do not represent the documented OCI CLI operation for obtaining secret contents. Oracle ' s current Secrets Management documentation provides the same command directly when describing how applications and administrators retrieve a secret ' s contents. Therefore, option B is the exact verified command.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit