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.

    1. 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.
    2. Select the name of the secret to open its details page.

    3. Select Actions, then select Cancel Deletion.
    4. 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.
  • Use the oci vault secret cancel-secret-deletion command 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 CancelSecretDeletionAPI 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 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.