Canceling the Scheduled Deletion of a Secret
Learn how to cancel the scheduled deletion of a secret stored in an OCI vault. You can only perform this operation during the 7-day waiting period that starts when the deletion is scheduled.
- Open the navigation menu , select Identity & Security, and then select Vault.
- Under List scope, select a compartment that contains the secret that you want to cancel the deletion.
-
On the Vaults page, select the name of the vault to open its details page.
- Under Resources, select Secrets and then select the name of the secret to open its details page.
- Select Cancel Deletion.
- Confirm that you want to cancel the secret's deletion by selecting Cancel Deletion. Access to the secret and any resources or services that used the contents of the secret is restored after the secret returns to active state.
Open a command prompt and run
oci vault secret cancel-secret-deletion
to cancel the scheduled deletion of a secret:oci vault secret cancel-secret-deletion --secret-id <target_secret_id>
For example:
oci vault secret cancel-secret-deletion --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 CancelSecretDeletion API with the Management Endpoint to cancel the deletion of a vault secret.
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 KMSMANAGMENT 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.