Moving an HSM Cluster Resource

Move a HSM cluster resource from one compartment to another.

    1. Open the Oracle Cloud Console navigation menu and click Identity & Security. Under key Management & Secret Management, click Dedicated Key Management.
    2. In the Dedicated Key Management home page, select a cluster from the summary table.
    3. In the HSM Cluster Details page, click Move Resource.
    4. Choose a compartment to which you want to move the resource.
    5. Click Move resource.

      The cluster resource is moved to the new compartment.

  • Open a command prompt and run change-compartment to change the compartment of HSM cluster resource.

    oci kms kms-hsm-cluster hsm-cluster change-compartment -compartment-id  

    For example:

    oci kms kms-hsm-cluster hsm-cluster change-compartment -compartment-id ocid1.compartment.oc1..example1example25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz --hsm-cluster-id ocid1.kmshsmcluster.region1.sea.example1.abzwkljsshsfywmfvqr2vxo3q75ifayb5yxbhj63czq47ft3fpi52zah5pdq

    For a complete list of parameters and values for CLI commands, see KMS CLI Command Reference.

  • Run the ChangeHsmClusterCompartment operation that uses the KMSHSMCLUSTER API endpoint.

    Note

    Each region uses the KMSHSMCLUSTER API endpoint for HSM cluster operations. For regional endpoints, see the API Endpoints.

    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.