Canceling Deletion of a Secret Version

Cancel deletion of a secret version in OCI Vault service,

    1. Open the navigation menu, click Identity & Security, and then click Vault.
    2. Under List Scope, in the Compartment list, click the name of the compartment that contains the vault that has the secret with the secret version you no longer want to delete.
    3. From the list of vaults in the compartment, click the vault name.

    4. Click Secrets, locate the secret with the secret version for which you want to cancel deletion, and then click the secret name. (If needed, first change the list scope to the compartment that contains the secret.)
    5. Under Secret Versions List, locate the secret version, and then click the Actions menu (Actions Menu) for that secret version.
    6. In the Actions menu (Actions Menu), click Cancel Deletion.
    7. Confirm that you want to cancel the secret version's deletion by clicking Cancel Deletion. Access to the secret version and any resources or services that used its contents can be restored after the secret version returns to active, current use.
  • Open a command prompt and run oci vault secret-version cancel-deletion to cancel the scheduled deletion of a secret version:

    oci vault secret-version cancel-deletion --secret-id <target_secret_id> --secret-version-number <target_secret_version_number>

    For example:

    
    oci vault secret-version cancel-deletion --secret-id ocid1.vaultsecret.oc1.iad.exampleaz5qacpqahuecvbjqzql4qmpbrtd7pprafhivcfik6wuitexample --secret-version-number 1

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CancelSecretVersionDeletion operation to cancel the deletion of a secret version.

    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.