Promoting an Existing Secret Version to Current
Promote an pending version of a secret to current version in the OCI Vault service.
- Open the navigation menu, click Identity & Security, and then click Vault.
- Under List scope, select the compartment that contains the secret that you must promote to current version.
- On the Vaults page, click the name of the vault to open the its details page
- Under Resources, click Secrets, and then click the name of a secret to open its details page.
- Under Table Scope, click Versions.
- Find a secret version in pending state, click the Action menu and then select Promote to Current.
- Confirm the promotion by clicking Promote to Confirm.
The version status is set as "Current" and is in active use.
Open a command prompt and run
oci vault secret update
to promote a secret version to current, active use:oci vault secret update --secret-id <target_secret_id> --current-version-number <target_secret_version_number>
For example:
oci vault secret update --secret-id ocid1.vaultsecret.oc1.iad.exampleaz5qacpqahuecvbjqzql4qmpbrtd7pprafhivcfik6wuitexample --current-version-number 3
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
This task cannot be performed using the API.