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. From the models page, select the name of the model. If you need help finding the list of models, see Listing Models.

      The model details page opens.

    2. Select More actions, and then select Move Resource.
    3. Select the new compartment for the model.
    4. 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.