Moving Key References
Move a key reference from one compartment to another compartment.
You can move key reference from the existing compartment to another compartment in the same region.
Open a command prompt and run
oci kms management key change-compartment
to move key reference.ooci kms management key change-compartment --external-key-reference-id <target_key_id> --compartment-id <new_compartment_id>
Avoid entering confidential information.
For a complete list of flags and variable options for Vault CLI commands, see Command Line Reference.
Run the
ChangeKeyCompartment
operation to change compartment of the key reference.Note
Each region has a unique endpoint for create, update, and list operations for secrets. This endpoint is referred to as the control plane URL or secret management endpoint. Each region also has a unique endpoint for operations related to retrieving secret contents. This endpoint is known as the data plane URL or the secret retrieval 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.