Canceling a Master Encryption Key Deletion
Cancel deletion of a vault's master encryption key.
- Tip
You can cancel the deletion of a key only when it is in a Pending Deletion state. - Tip
You can only cancel the deletion of a key that's in a Pending Deletion state.Open a command prompt and run
oci kms management key cancel-deletion
to cancel a key's scheduled deletion:oci kms management key cancel-deletion --key-id <target_key_id> --endpoint <control_plane_url>
For example:
oci kms management key cancel-deletion --key-id ocid1.key.region1.sea.exampleaaacu2.examplesmtpsuqmoy4m5cvblugmizcoeu2nfc6b3zfaux2lmqz245gezevsq --endpoint https://exampleaaacu2-management.kms.us-ashburn-1.oraclecloud.com
For a complete list of parameters and values for CLI commands, see KMS CLI Command Reference.
Run the CancelKeyDeletion operation to cancel the deletion of a vault key using the KMSMANAGMENT endpoint.
Note
Each region uses the KMSMANAGMENT endpoint for managing keys. This endpoint is referred to as the control plane URL or vault management endpoint. For regional endpoints, see the API Documentation.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.