Moving a Model Between Compartments

Move a model in Data Science to a different compartment.

For example, you might want to move a model to promote it from a development compartment to production compartment, or to change the visibility of the model.

    1. Use the Console to sign in to a tenancy with the necessary policies.
    2. Open the navigation menu and select Analytics & AI. Under Machine Learning, select Data Science.
    3. Select the compartment that contains the project that you want to use.

      All projects in the compartment are listed.

    4. Select the name of the project.

      The project details page opens and lists the notebook sessions.

    5. Under Resources, select Models.

      A tabular list of models in the compartment is displayed.

    6. Select the name of the model.

      The model details page opens.

    7. Select More actions, and then select Move Resource.
    8. Select the new compartment for the model.
    9. Select Move Resource.
    A notification is displayed indicating that the model resource is moved to the new compartment successfully. You might notice the model status change to Moving. After the move is completed successfully, the status changes back to Active.
  • Use the oci data-science model change-compartment command and required parameters to change the compartment:

    oci data-science model change-compartment --compartment-id <compartment-id>.-c [<text>] --model-id [<text>] .. [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Use the ChangeModelCompartment operation to change the compartment for the model.