Moving a Vault to a Different Compartment
Learn how to move an OCI vault to a different compartment.
- On the Vaults list page, find the vault that you want to work with. If you need help finding the list page, see Listing Vaults.
- From the for the vault, select Move Resource.
- Select the destination compartment and then select Move Resource.
Use the oci kms management vault change-compartment command and required parameters to move a vault to a different compartment:
oci kms management vault change-compartment --vault-id <target_vault_ocid> --compartment-id <new_compartment_ocid> [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Use the ChangeVaultCompartment API with the KMSVAULT API endpoint to move a vault to another compartment.
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.