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. On the Projects list page, select the project that contains the models that you want to work with. If you need help finding the list page or the project, see Listing Projects.
    2. On the project details page, select Models.
      All models in the selected project are displayed in a table, along with their model version sets.
    3. Find the model that you want to work with.
    4. From the Actions menu (three dots) for the model, select Move resource.
    5. In the Move resource panel, select the new compartment for the model.
    6. 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 parameters and values for CLI commands, see the CLI Command Reference.

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