Moving a Vault to a Different Compartment

Learn how to move an OCI vault to a different compartment.

    1. 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.
    2. From the Actions menu Actions Menu for the vault, select Move Resource.
    3. 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.